/** * This creates a command that deletes the given object. */ public static Command create(EditingDomain domain, Object object) { return create(domain, Collections.singleton(object)); }
@Override protected void doRemove(EObject object) throws ModelManipulationException { Command removeCommand = DeleteCommand.create(domain, object); executeCommand(removeCommand); }