Examples of FixedConnectionCreateCommand


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

  }

  @Override
  protected Command getConnectionCompleteCommand(CreateConnectionRequest request) {
    if (request.getStartCommand() instanceof FixedConnectionCreateCommand) {
      FixedConnectionCreateCommand cmd = (FixedConnectionCreateCommand) request.getStartCommand();
      ConnectionAnchor anchor = getActivityPart().getTargetConnectionAnchor(request);
      if (anchor instanceof FixedConnectionAnchor) {
        FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
        cmd.setTargetAnchor(fixedAnchor);
      }
      else {
        cmd.setTargetAnchor(null);
      }
      cmd.setTarget(getActivity());
      return cmd;
    }
    return super.getConnectionCompleteCommand(request);
  }
View Full Code Here

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

  @Override
  protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
    int style = ((Integer) request.getNewObjectType()).intValue();
    Activity source = getActivity();
    FixedConnectionCreateCommand cmd = getConnectionCreateCommand(source.getDiagram().getTextEditor(), style);
    if (cmd != null) {
      ConnectionAnchor anchor = getActivityPart().getSourceConnectionAnchor(request);
      if (anchor instanceof FixedConnectionAnchor) {
        FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
        cmd.setSourceAnchor(fixedAnchor);
      }
      cmd.setSource(source);
      request.setStartCommand(cmd);
    }
    return cmd;
  }
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.