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

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


   * @see ContainerEditPolicy#getCreateCommand(org.eclipse.gef.requests.CreateRequest)
   */
  @Override
  protected Command getCreateCommand(CreateRequest request) {
    StructuredActivity parent = (StructuredActivity) getHost().getParent().getModel();
    CreateAndAssignSourceCommand cmd = new CreateAndAssignSourceCommand(parent.getDiagram().getTextEditor());
    cmd.setParent(parent);
    cmd.setChild((Activity) request.getNewObject());
    cmd.setSource((Activity) getHost().getModel());
    return cmd;
  }
View Full Code Here

TOP

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

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.