org.eclipse.emf.examples.extlibrary.actions
Class RemoveLibraryCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.edit.command.AbstractOverrideableCommand
org.eclipse.emf.edit.command.RemoveCommand
org.eclipse.emf.examples.extlibrary.actions.RemoveLibraryCommand
- All Implemented Interfaces:
- Command, CommandActionDelegate, OverrideableCommand
public class RemoveLibraryCommand
- extends RemoveCommand
- implements CommandActionDelegate
The extended library example supports multi-rooted resources
and therefore this command will remove a library from the resource..
Method Summary |
java.lang.Object |
getImage()
This returns the decoration, if any, of the action. |
java.lang.String |
getText()
This returns the menu text, if any, of the action. |
java.lang.String |
getToolTipText()
This returns the tool tip text, if any, of the action. |
Methods inherited from class org.eclipse.emf.edit.command.RemoveCommand |
contains, containsExact, create, create, create, create, doExecute, doGetAffectedObjects, doGetResult, doRedo, doUndo, getCollection, getFeature, getIndices, getOwner, getOwnerList, merge, prepare, removeExact, toString |
Methods inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand |
canExecute, canUndo, dispose, doCanExecute, doCanUndo, doDispose, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo, updateEMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.command.Command |
chain |
RemoveLibraryCommand
public RemoveLibraryCommand(EditingDomain domain,
EList<?> list,
java.util.Collection<?> collection)
- Constructor
- Parameters:
domain
- the editing domainlist
- the list to modifycollection
- the objects to be removed
getImage
public java.lang.Object getImage()
- Description copied from interface:
CommandActionDelegate
- This returns the decoration, if any, of the action.
- Specified by:
getImage
in interface CommandActionDelegate
getText
public java.lang.String getText()
- Description copied from interface:
CommandActionDelegate
- This returns the menu text, if any, of the action.
- Specified by:
getText
in interface CommandActionDelegate
getToolTipText
public java.lang.String getToolTipText()
- Description copied from interface:
CommandActionDelegate
- This returns the tool tip text, if any, of the action.
- Specified by:
getToolTipText
in interface CommandActionDelegate