Package net.sf.graphiti.ui.commands

Examples of net.sf.graphiti.ui.commands.EdgeReconnectCommand


    return command;
  }

  @Override
  protected Command getReconnectSourceCommand(ReconnectRequest request) {
    EdgeReconnectCommand command = new EdgeReconnectCommand();
    command.setOriginalEdge((Edge) request.getConnectionEditPart()
        .getModel());
    VertexEditPart vertexEditPart = (VertexEditPart) getHost();
    command.setSource((Vertex) vertexEditPart.getModel());
    return command;
  }
View Full Code Here


    return command;
  }

  @Override
  protected Command getReconnectTargetCommand(ReconnectRequest request) {
    EdgeReconnectCommand command = new EdgeReconnectCommand();
    command.setOriginalEdge((Edge) request.getConnectionEditPart()
        .getModel());
    VertexEditPart vertexEditPart = (VertexEditPart) getHost();
    command.setTarget((Vertex) vertexEditPart.getModel());
    return command;
  }
View Full Code Here

TOP

Related Classes of net.sf.graphiti.ui.commands.EdgeReconnectCommand

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.