Package org.springframework.ide.eclipse.config.graph.model

Examples of org.springframework.ide.eclipse.config.graph.model.Transition


      Activity model = part.getModelElement();
      return mapType(model.getInput());
    }
    if (object instanceof TransitionPart) {
      TransitionPart part = (TransitionPart) object;
      Transition trans = (Transition) part.getModel();
      return mapType(trans.getInput());
    }
    return super.mapType(object);
  }
View Full Code Here


      return false;
    }

    List<Transition> transitions = source.getOutgoingTransitions();
    for (int i = 0; i < transitions.size(); i++) {
      Transition trans = ((transitions.get(i)));
      if (trans.target.equals(target) && !trans.target.equals(oldTarget)) {
        return false;
      }
    }
    return true;
View Full Code Here

        deleteConnections(children.get(i));
      }
    }
    sourceConnections.addAll(a.getIncomingTransitions());
    for (int i = 0; i < sourceConnections.size(); i++) {
      Transition t = sourceConnections.get(i);
      t.source.removeOutgoing(t);
      a.removeIncoming(t);
    }
    targetConnections.addAll(a.getOutgoingTransitions());
    for (int i = 0; i < targetConnections.size(); i++) {
      Transition t = targetConnections.get(i);
      t.target.removeIncoming(t);
      a.removeOutgoing(t);
    }
  }
View Full Code Here

  @Override
  public void execute() {
    oldSource.removeOutgoing(transition);
    oldTarget.removeIncoming(transition);
    parent.addChild(newActivity);
    new Transition(oldSource, newActivity);
    new Transition(newActivity, oldTarget);
  }
View Full Code Here

   * @see org.eclipse.gef.commands.Command#execute()
   */
  @Override
  public void execute() {
    parent.addChild(child);
    new Transition(source, child);
  }
View Full Code Here

   * @see org.eclipse.gef.commands.Command#execute()
   */
  @Override
  public void execute() {
    parent.addChild(child);
    new Transition(source, child);
  }
View Full Code Here

      return false;
    }

    List<Transition> transitions = source.getOutgoingTransitions();
    for (int i = 0; i < transitions.size(); i++) {
      Transition trans = ((transitions.get(i)));
      if (trans.target.equals(target) && !trans.source.equals(oldSource)) {
        return false;
      }
    }
    return true;
View Full Code Here

        if (channel != null && channel.trim().length() > 0) {
          Node channelRef = getDiagram().getReferencedNode(channel);
          if (channelRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(channelRef)) {
                Transition trans = new Transition(activity, this, method);
                list.add(trans);
              }
            }
          }
        }
View Full Code Here

        if (channel != null && channel.trim().length() > 0) {
          Node channelRef = getDiagram().getReferencedNode(channel);
          if (channelRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(channelRef)) {
                Transition trans = new Transition(this, activity, method);
                list.add(trans);
              }
            }
          }
        }
View Full Code Here

  /**
   * @see ConnectionEditPolicy#getDeleteCommand(org.eclipse.gef.requests.GroupRequest)
   */
  @Override
  protected Command getDeleteCommand(GroupRequest request) {
    Transition transition = (Transition) getHost().getModel();
    Activity source = transition.source;
    DeleteConnectionCommand cmd = new DeleteConnectionCommand(source.getDiagram().getTextEditor());
    cmd.setTransition(transition);
    cmd.setSource(source);
    cmd.setTarget(transition.target);
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.graph.model.Transition

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.