org.eclipse.emf.mapping.action
Class CreateOneSidedMappingAction
java.lang.Object
org.eclipse.emf.edit.ui.action.CommandAction
org.eclipse.emf.mapping.action.CreateOneSidedMappingAction
- All Implemented Interfaces:
- CommandStackListener, IActionDelegate, IEditorActionDelegate
- public class CreateOneSidedMappingAction
- extends CommandAction
- implements CommandStackListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateOneSidedMappingAction
public CreateOneSidedMappingAction()
setActiveEditor
public void setActiveEditor(IAction action,
IEditorPart editorPart)
- Description copied from class:
CommandAction
- The framework calls this so that we can register against this editor.
We use this as an opportunity to record the action and the editor part for later use.
- Specified by:
setActiveEditor
in interface IEditorActionDelegate
- Overrides:
setActiveEditor
in class CommandAction
commandStackChanged
public void commandStackChanged(EventObject event)
- Description copied from interface:
CommandStackListener
- Called when the
CommandStack
's state has changed.
- Specified by:
commandStackChanged
in interface CommandStackListener
- Parameters:
event
- the event.
getDefaultImage
protected Object getDefaultImage()
- This returns the image that is used if the command does not provide an override.
objectToImageDescriptor
protected ImageDescriptor objectToImageDescriptor(Object object)
- Overrides:
objectToImageDescriptor
in class CommandAction
createActionCommand
protected Command createActionCommand(EditingDomain editingDomain,
Collection collection)
- Create the command for this action
- Overrides:
createActionCommand
in class CommandAction