org.eclipse.emf.examples.extlibrary.actions
Class AddLibraryCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.edit.command.AbstractOverrideableCommand
org.eclipse.emf.edit.command.AddCommand
org.eclipse.emf.examples.extlibrary.actions.AddLibraryCommand
- All Implemented Interfaces:
- Command, CommandActionDelegate, OverrideableCommand
public class AddLibraryCommand
- extends AddCommand
- implements CommandActionDelegate
The extended library example supports multi-rooted resources
and therefore this command will add a library to 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.AddCommand |
create, create, create, create, doExecute, doGetAffectedObjects, doGetResult, doRedo, doUndo, getCollection, getFeature, getIndex, getOwner, getOwnerList, isUserElement, prepare, 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 |
AddLibraryCommand
public AddLibraryCommand(EditingDomain domain,
EList<?> list,
java.lang.Object value)
- Constructor
- Parameters:
domain
- the editing domainlist
- the list to add tovalue
- the value to add
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