/** * This creates a command that deletes the given object. */ public static Command create(EditingDomain domain, Object object) { return create(domain, Collections.singleton(object)); }
protected void prepareCommand() { append(RemoveCommand.create(domain, collection)); }
@Override protected boolean prepare() { prepareCommand(); return super.prepare(); }
Map<EObject, Collection<EStructuralFeature.Setting>> usages = findReferences(eObjects); appendAndExecute(RemoveCommand.create(domain, referencingEObject, eStructuralFeature, eObject)); appendAndExecute(SetCommand.create(domain, referencingEObject, eStructuralFeature, SetCommand.UNSET_VALUE));
return new DeleteCommand(this, commandParameter.getCollection());
@Override protected void doRemove(EObject object) throws ModelManipulationException { Command removeCommand = DeleteCommand.create(domain, object); executeCommand(removeCommand); }