org.eclipse.emf.mapping.command
Class CopyToClipboardOverrideCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.edit.command.AbstractOverrideableCommand
org.eclipse.emf.edit.command.CopyToClipboardCommand
org.eclipse.emf.mapping.command.CopyToClipboardOverrideCommand
- All Implemented Interfaces:
- AbstractCommand.NonDirtying, Command, OverrideableCommand
- public class CopyToClipboardOverrideCommand
- extends CopyToClipboardCommand
This command overrides the CopyToClipboardCommand for cross-domain copies.
Field Summary |
protected Collection |
inputObjects
This is the collection of read-only (input) objects that don't need to actually be copied. |
Methods inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand |
canExecute, canUndo, dispose, doCanExecute, doCanUndo, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo |
Methods inherited from interface org.eclipse.emf.common.command.Command |
chain |
inputObjects
protected Collection inputObjects
- This is the collection of read-only (input) objects that don't need to actually be copied.
CopyToClipboardOverrideCommand
public CopyToClipboardOverrideCommand(MappingDomain domain,
Collection nonInputObjects,
Collection inputObjects)
- This constructs a command that copies the given collections of objects to the clipboard.
prepare
protected boolean prepare()
- Description copied from class:
AbstractCommand
- Called at most once in
AbstractCommand.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.
- Overrides:
prepare
in class CopyToClipboardCommand