Package org.springframework.ide.eclipse.config.graph.model.commands

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


  @Override
  protected Command getCreateCommand(CreateRequest request) {
    StructuredActivity parent = (StructuredActivity) getHost().getModel();
    EditPartViewer viewer = getHost().getViewer();
    CreateCommand command = new CreateCommand(parent.getDiagram().getTextEditor(), viewer);
    command.setParent(parent);
    Activity child = (Activity) request.getNewObject();
    Point location = request.getLocation();
    command.setBounds(putActivityAtLocation(child, location));
    command.setChild(child);
    return command;
  }
View Full Code Here


   */
  @Override
  protected Command getCreateCommand(CreateRequest request) {
    StructuredActivity parent = (StructuredActivity) getHost().getModel();
    EditPartViewer viewer = getHost().getViewer();
    CreateCommand command = new CreateCommand(parent.getDiagram().getTextEditor(), viewer);
    command.setParent(parent);
    command.setChild((Activity) request.getNewObject());
    return command;
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.graph.model.commands.CreateCommand

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.