1819202122232425262728
*/ protected Command getDestroyElementCommand(DestroyElementRequest req) { CompoundCommand cc = getDestroyEdgesCommand(); addDestroyShortcutsCommand(cc); cc.add(getGEFWrapper(new DestroyElementCommand(req))); return cc.unwrap(); } /** * @generated */
2829303132333435363738
View view = (View) getHost().getModel(); if (view.getEAnnotation("Shortcut") != null) { //$NON-NLS-1$ req.setElementToDestroy(view); } cc.add(getGEFWrapper(new DestroyElementCommand(req))); return cc.unwrap(); } /** * @generated */
1920212223242526272829
2324252627282930313233
114115116117118119120121122123124
command.add(createAddCommand(generic, childPart, translateToModelConstraint(constraint))); } return command.unwrap(); } protected Command getCreateCommand(CreateRequest request) { CreateCommand create = new CreateCommand(
3637383940414243
orphan.setChild((NodeModel)((EditPart)parts.get(i)).getModel()); orphan.setParent((CompoundModel)getHost().getModel()); result.add(orphan); } return result.unwrap(); } }