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

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


  @Override
  protected Command getAddCommand(GroupRequest request) {
    CompoundCommand cmd = new CompoundCommand();
    for (int i = 0; i < request.getEditParts().size(); i++) {
      StructuredActivity parent = (StructuredActivity) getHost().getParent().getModel();
      AddAndAssignSourceCommand add = new AddAndAssignSourceCommand(parent.getDiagram().getTextEditor());
      add.setParent(parent);
      add.setSource((Activity) getHost().getModel());
      add.setChild(((Activity) ((EditPart) request.getEditParts().get(i)).getModel()));
      cmd.add(add);
    }
    return cmd;
  }
View Full Code Here

TOP

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

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.