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

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


  @Override
  protected Command createAddCommand(EditPart child, Object constraint) {
    Activity activity = (Activity) child.getModel();
    EditPartViewer viewer = getHost().getViewer();
    AddCommand add = new AddCommand(activity.getDiagram().getTextEditor(), viewer);
    add.setParent((StructuredActivity) getHost().getModel());
    add.setChild(activity);
    return add;
  }
View Full Code Here


public class StructuredActivityLayoutEditPolicy extends LayoutEditPolicy {

  protected Command createAddCommand(EditPart child) {
    Activity activity = (Activity) child.getModel();
    EditPartViewer viewer = getHost().getViewer();
    AddCommand add = new AddCommand(activity.getDiagram().getTextEditor(), viewer);
    add.setParent((StructuredActivity) getHost().getModel());
    add.setChild(activity);
    return add;
  }
View Full Code Here

TOP

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

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.