@Override public Collection<?> getAffectedObjects() { return dropCommand != null ? dropCommand.getAffectedObjects() : super.getAffectedObjects(); }
public void performExecution() { if (compoundCommand != null) { try { actualCommandStack.execute(compoundCommand); } finally { compoundCommand = null; } } }
/** * Delegates to the execute method of the command. */ public void execute() { if (command != null) { command.execute(); } }
public void redo() { if (removeCommand != null) { removeCommand.redo(); } }
@Override public void undo() { //domain.getMappingRoot().removeMapping(newMapping); subcommand.undo(); }
/** * Returns whether the comamad is valid to <code>execute</code>. The * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>. * * @return whether the comamad is valid to <code>execute</code>. */ public boolean canExecute() { return super.canExecute(); }
/** * Return the CommandStack. */ protected BasicCommandStack createCommandStack() { BasicCommandStack stack = new BasicCommandStack(); return stack; }
@Override public Collection<?> doGetResult() { return command.getResult(); }