public class CopyToClipboardOverrideCommand extends CopyToClipboardCommand
AbstractCommand.NonDirtying| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<?> |
inputObjects
This is the collection of read-only (input) objects that don't need to actually be copied.
|
copyCommand, DESCRIPTION, LABEL, oldClipboard, sourceObjectsdomain, overrideCommanddescription, isExecutable, isPrepared, label| Constructor and Description |
|---|
CopyToClipboardOverrideCommand(MappingDomain domain,
java.util.Collection<?> nonInputObjects,
java.util.Collection<?> inputObjects)
This constructs a command that copies the given collections of objects to the clipboard.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
prepare()
Called at most once in
AbstractCommand.canExecute() to give the command an opportunity to ready itself for execution. |
create, create, doDispose, doExecute, doGetAffectedObjects, doGetResult, doRedo, doUndo, getSourceObjects, toStringcanExecute, canUndo, dispose, doCanExecute, doCanUndo, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo, updateEMapchain, setDescription, setLabelprotected java.util.Collection<?> inputObjects
public CopyToClipboardOverrideCommand(MappingDomain domain, java.util.Collection<?> nonInputObjects, java.util.Collection<?> inputObjects)
protected boolean prepare()
AbstractCommandAbstractCommand.canExecute() to give the command an opportunity to ready itself for execution.
The returned value is stored in AbstractCommand.canExecute().
In other words, you can override this method to initialize
and to yield a cached value for the all subsequent calls to canExecute.prepare in class CopyToClipboardCommand