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

Examples of org.springframework.ide.eclipse.config.graph.model.commands.ReconnectFixedSourceCommand


  protected abstract FixedConnectionCreateCommand getConnectionCreateCommand(ITextEditor textEditor, int style);

  @Override
  protected Command getReconnectSourceCommand(ReconnectRequest request) {
    Activity source = getActivity();
    ReconnectFixedSourceCommand cmd = new ReconnectFixedSourceCommand(source.getDiagram().getTextEditor());
    ConnectionAnchor anchor = getActivityPart().getSourceConnectionAnchor(request);
    if (anchor instanceof FixedConnectionAnchor) {
      FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
      cmd.setSourceAnchor(fixedAnchor);
    }
    cmd.setTransition((Transition) request.getConnectionEditPart().getModel());
    cmd.setSource(source);
    return cmd;
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.graph.model.commands.ReconnectFixedSourceCommand

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.