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

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


   * Sets the else transition.
   *
   * @param theElse the else transition
   */
  public void setElseTransition(IIfTransition theElse) {
    IIfTransition oldValue = this.elseTransition;
    this.elseTransition = theElse;
    this.elseTransition.setThen(false);
    super.firePropertyChange(OUTPUTS, oldValue, theElse);
  }
View Full Code Here


   * Sets the then transition.
   *
   * @param then then transition
   */
  public void setThenTransition(IIfTransition then) {
    IIfTransition oldValue = this.thenTransition;
    this.thenTransition = then;
    this.thenTransition.setThen(true);
    super.firePropertyChange(OUTPUTS, oldValue, then);
  }
View Full Code Here

  /**
   * Removes the else transition.
   */
  public void removeElseTransition() {
    IIfTransition oldValue = this.elseTransition;
    this.elseTransition = null;
    super.firePropertyChange(OUTPUTS, oldValue, null);
  }
View Full Code Here

  /**
   * Removes the then transition.
   */
  public void removeThenTransition() {
    IIfTransition oldValue = this.thenTransition;
    this.thenTransition = null;
    super.firePropertyChange(OUTPUTS, oldValue, null);
  }
View Full Code Here

            }
          }
          if (s instanceof IDecisionState) {
            for (IIf i : ((IDecisionState) s).getIfs()) {
              if (i.getThenTransition() != null) {
                IIfTransition ifTrans = (IIfTransition) i.getThenTransition();
                if (state.getId().equals(ifTrans.getToStateId())) {
                  if (!((ITransitionableTo) state).getInputTransitions()
                      .contains(ifTrans)) {
                    ((IWebflowModelElement) ifTrans.getElementParent())
                        .fireStructureChange(OUTPUTS, ifTrans);
                    ((ITransitionableTo) state).addInputTransition(ifTrans);
                  }
                }
              }
              if (i.getElseTransition() != null) {
                IIfTransition ifTrans = (IIfTransition) i.getElseTransition();
                if (state.getId().equals(ifTrans.getToStateId())) {
                  if (!((ITransitionableTo) state).getInputTransitions()
                      .contains(ifTrans)) {
                    ((IWebflowModelElement) ifTrans.getElementParent())
                        .fireStructureChange(OUTPUTS, ifTrans);
                    ((ITransitionableTo) state).addInputTransition(ifTrans);
                  }
                }
              }
View Full Code Here

            .get(i);
        t.getToState().addInputTransition(t);
        t.getFromState().addOutputTransition(t);
      }
      else if (targetConnections.get(i) instanceof IIfTransition) {
        IIfTransition t = (IIfTransition) targetConnections.get(i);
        t.getToState().addInputTransition(t);
        if (t.isThen()) {
          t.getFromIf().setThenTransition(t);
        }
        else {
          t.getFromIf().setElseTransition(t);
        }
      }
    }
    targetConnections.clear();
  }
View Full Code Here

        t.setToState(null);
        t.getFromState().fireStructureChange(
            WebflowModelElement.OUTPUTS, t);
      }
      if (targetConnections.get(i) instanceof IIfTransition) {
        IIfTransition t = (IIfTransition) targetConnections.get(i);
        t.setToState(null);
        ((IWebflowModelElement) t.getElementParent()).fireStructureChange(
            WebflowModelElement.OUTPUTS, t);
      }
    }
  }
View Full Code Here

TOP

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

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.