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

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


  protected Command getOrphanChildrenCommand(GroupRequest request) {
    List parts = request.getEditParts();
    CompoundCommand result = new CompoundCommand();
    for (int i = 0; i < parts.size(); i++) {
      Activity child = (Activity) ((EditPart) parts.get(i)).getModel();
      OrphanChildCommand orphan = new OrphanChildCommand(child.getDiagram().getTextEditor());
      orphan.setChild(child);
      orphan.setParent((StructuredActivity) getHost().getModel());
      result.add(orphan);
    }
    return result.unwrap();
  }
View Full Code Here

TOP

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

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.