Examples of ITransitionableTo


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

   * Sets the to state.
   * @param state the to state
   */
  @Override
  public void setToState(ITransitionableTo state) {
    ITransitionableTo newTargetState = null;
    if (state != null) {
      newTargetState = (ITransitionableTo) WebflowModelXmlUtils
          .getStateById(webflowState, state.getId());
    }
    if (newTargetState != null && !newTargetState.equals(newTargetState)) {
      if (targetState != null) {
        targetState.removeInputTransition(this);
      }
      if (isThen) {
        setAttribute(this.parent.getNode(), "then", state.getId());
View Full Code Here

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

  /**
   * Sets the to state.
   * @param state the to state
   */
  public void setToState(ITransitionableTo state) {
    ITransitionableTo newTargetState = null;
    if (state != null) {
      newTargetState = (ITransitionableTo) WebflowModelXmlUtils
          .getStateById(webflowState, state.getId());
    }
    if (newTargetState != null && !newTargetState.equals(targetState)) {
      if (targetState != null) {
        targetState.removeInputTransition(this);
      }
      setAttribute("to", state.getId());
      super.fireStructureChange(OUTPUTS, state);
View Full Code Here

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

                  + "' has at least one if criteria. \n\nPlease delete all if criterias before deleting the decision state.");
      this.undo = false;
      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

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

        if (request.getNewObject() instanceof IStateTransition) {
            if (getHost().getModel() instanceof ITransitionableTo) {
                StateTransitionCreateCommand cmd = (StateTransitionCreateCommand) request
                        .getStartCommand();
                IState source = cmd.getSource();
                ITransitionableTo target = (ITransitionableTo) getState();
                if (!(target instanceof IInlineFlowState) && source.getElementParent().equals(target.getElementParent())) {
                  cmd.setTarget((ITransitionableTo) getState());
                  return cmd;
                }
                else {
                  return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.