/** * 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(); }
@Override public void dispose() { changeRecorder = null; notifier = null; notifiers = null; changeDescription = null; super.dispose(); }
@Override public final String getDescription() { return super.getDescription(); }
@Override public String toString() { StringBuffer result = new StringBuffer(super.toString()); result.append(" (command: " + command + ")"); return result.toString(); } }
@Override public final Collection<?> getAffectedObjects() { return super.getAffectedObjects(); }
@Override public final String getLabel() { return super.getLabel(); }
/** * Returns a collection of things which this command wishes to present as it's result. The * result of calling this before an <code>execute</code> or <code>redo</code>, or after an * <code>undo</code>, is undefined. * * @return a collection of things which this command wishes to present as it's result. */ public Collection getResult() { return super.getResult(); }
@Override public Command chain(Command command) { if (command instanceof ICreationCommand) { return super.chain(command); } throw new IllegalArgumentException("command must an ICreationCommand"); }
@Override public final void setLabel(String label) { super.setLabel(label); }
@Override public final boolean canUndo() { return super.canUndo(); }
/** * This gives an abbreviated name using this object's own class' name, without package qualification, * followed by a space separated list of <tt>field:value</tt> pairs. */ @Override public String toString() { StringBuffer result = new StringBuffer(super.toString()); result.append(" (domain: " + domain + ")"); result.append(" (removeCommand: " + removeCommand + ")"); return result.toString(); } }
public Collection<?> doGetAffectedObjects() { return super.getAffectedObjects(); }
public String doGetLabel() { return super.getLabel(); }
/** * Returns a collection of things which this command wishes to present as it's result. The * result of calling this before an <code>execute</code> or <code>redo</code>, or after an * <code>undo</code>, is undefined. * * @return a collection of things which this command wishes to present as it's result. */ public Collection getResult() { return super.getResult(); }
return super.chain(command);
/** * Return an AddCommand that will be executed by a CommandStack. */ protected Command createAddCommand(ModifierHelper aHelper) { Object value = getValue(aHelper); Command command = null; if (valueChanged(aHelper.getOwner(), aHelper.getFeature(), value, false)) { command = AddCommand.create(getEditingDomain(), aHelper.getOwner(), aHelper.getFeature(), value); ((AbstractCommand) command).setLabel(createCommandLabel(ADD_PATTERN, aHelper.getFeature())); setStatus(VALUE_CHANGE); } else { setStatus(NO_VALUE_CHANGE); } return command; }
public boolean doCanUndo() { return super.canUndo(); }
/** * 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(); }
/** * This gives an abbreviated name using this object's own class' name, without package qualification, * followed by a space separated list of <tt>field:value</tt> pairs. */ @Override public String toString() { StringBuffer result = new StringBuffer(super.toString()); result.append(" (mappingDomain: " + mappingDomain + ")"); result.append(" (mapCommand: " + mapCommand + ")"); return result.toString(); } }
public void doDispose() { super.dispose(); }