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();
}