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

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


  Rectangle rec;

  @Override
  protected Command getConnectionCompleteCommand(CreateConnectionRequest request) {
    CreateConnectionCommand cmd = (CreateConnectionCommand) request.getStartCommand();
    cmd.setTarget((DiagramNodeModel) getHost().getModel());
    return cmd;
  }
View Full Code Here


  @Override
  protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
    DiagramNodeModel source = (DiagramNodeModel) getHost().getModel();
    Object def = request.getNewObjectType();
    CreateConnectionCommand cmd = new CreateConnectionCommand(source, (IDiagramConnectionDef)def);
    request.setStartCommand(cmd);
    return cmd;
  }
View Full Code Here

TOP

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

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.