Package org.eclipse.gef.examples.logicdesigner.model.commands

Examples of org.eclipse.gef.examples.logicdesigner.model.commands.OrphanChildCommand


public Command getOrphanChildrenCommand(GroupRequest request) {
  List parts = request.getEditParts();
  CompoundCommand result =
    new CompoundCommand(LogicMessages.LogicContainerEditPolicy_OrphanCommandLabelText);
  for (int i = 0; i < parts.size(); i++) {
    OrphanChildCommand orphan = new OrphanChildCommand();
    orphan.setChild((LogicSubpart)((EditPart)parts.get(i)).getModel());
    orphan.setParent((LogicDiagram)getHost().getModel());
    orphan.setLabel(LogicMessages.LogicElementEditPolicy_OrphanCommandLabelText);
    result.add(orphan);
  }
  return result.unwrap();
}
View Full Code Here

TOP

Related Classes of org.eclipse.gef.examples.logicdesigner.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.