Package org.eclipse.sapphire.ui.swt.gef.commands

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


  @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

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.commands.ReconnectConnectionCommand

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.