Examples of ReconnectConnectionCommand


Examples of org.eclipse.sapphire.ui.swt.gef.commands.ReconnectConnectionCommand

  @Override
  protected Command getReconnectTargetCommand(ReconnectRequest request) {
    DiagramNodeModel newTarget = (DiagramNodeModel) getHost().getModel();
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)request.getConnectionEditPart();
    ReconnectConnectionCommand cmd = new ReconnectConnectionCommand(editPart.getCastedModel());
    cmd.setNewTarget(newTarget);
    return cmd;
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.commands.ReconnectConnectionCommand

  @Override
  protected Command getReconnectSourceCommand(ReconnectRequest request) {
    DiagramNodeModel newSource = (DiagramNodeModel) getHost().getModel();
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)request.getConnectionEditPart();
    ReconnectConnectionCommand cmd = new ReconnectConnectionCommand(editPart.getCastedModel());
    cmd.setNewSource(newSource);
    return cmd;
  }
View Full Code Here

Examples of org.gvt.command.ReconnectConnectionCommand

  /* (�� Javadoc)
   * @see org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy#getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest)
   */
  protected Command getReconnectTargetCommand(ReconnectRequest request)
  {
    ReconnectConnectionCommand command = new ReconnectConnectionCommand();
    command.setConnectionModel(request.getConnectionEditPart().getModel());
    command.setNewTarget(getHost().getModel());
    return command;

  }
View Full Code Here

Examples of org.gvt.command.ReconnectConnectionCommand

  /* (�� Javadoc)
   * @see org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy#getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest)
   */
  protected Command getReconnectSourceCommand(ReconnectRequest request)
  {
    ReconnectConnectionCommand command = new ReconnectConnectionCommand();
    command.setConnectionModel(request.getConnectionEditPart().getModel());
    command.setNewSource(getHost().getModel());
    return command;
  }
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.