Package org.springframework.ide.eclipse.webflow.core.model

Examples of org.springframework.ide.eclipse.webflow.core.model.ITransition


    }
    if (a instanceof ITransitionableFrom) {
      sourceConnections.addAll(((ITransitionableFrom) a)
          .getOutputTransitions());
      for (int i = 0; i < sourceConnections.size(); i++) {
        ITransition t = (ITransition) sourceConnections.get(i);
        ((ITransitionableFrom) a).removeOutputTransition(t);
        t.getToState().removeInputTransition(t);
      }
    }
    if (a instanceof ITransitionableTo)
      targetConnections.addAll(((ITransitionableTo) a)
          .getInputTransitions());
    for (int i = 0; i < targetConnections.size(); i++) {
      if (targetConnections.get(i) instanceof IStateTransition) {
        IStateTransition t = (IStateTransition) targetConnections
            .get(i);
        t.getFromState().removeOutputTransition(t);
        ((ITransitionableTo) a).removeInputTransition(t);
      }
      else if (targetConnections.get(i) instanceof IfTransition) {
        IfTransition t = (IfTransition) targetConnections.get(i);
        if (t.isThen()) {
          t.getFromIf().removeThenTransition();
        }
        else {
          t.getFromIf().removeElseTransition();
        }
        ((ITransitionableTo) a).removeInputTransition(t);
      }
    }
  }
View Full Code Here


      return;
    }
    if (this.child instanceof ITransitionableTo) {
      ITransitionableTo to = (ITransitionableTo) this.child;
      for (int i = 0; i < to.getInputTransitions().size(); i++) {
        ITransition tran = (ITransition) to.getInputTransitions()
            .get(i);
        if (tran instanceof IIfTransition
            && ((IIfTransition) tran).isThen()) {
          MessageDialog
              .openError(
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.core.model.ITransition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.