org.eclipse.emf.mapping.action
Class NameMatchMappingAction
java.lang.Object
|
+--org.eclipse.emf.edit.ui.action.CommandAction
|
+--org.eclipse.emf.mapping.action.NameMatchMappingAction
- All Implemented Interfaces:
- CommandStackListener, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate
- public class NameMatchMappingAction
- extends CommandAction
- implements CommandStackListener
Method Summary |
void |
commandStackChanged(java.util.EventObject event)
Called when the CommandStack 's state has changed. |
protected Command |
createActionCommand(EditingDomain editingDomain,
java.util.Collection collection)
Match the command for this action |
protected java.lang.Object |
getDefaultImage()
This returns the image that is used if the command does not provide an override. |
protected org.eclipse.jface.resource.ImageDescriptor |
objectToImageDescriptor(java.lang.Object object)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
This is invoked by the framework so that the action state can be updated. |
void |
setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart editorPart)
The framework calls this so that we can register against this editor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameMatchMappingAction
public NameMatchMappingAction()
setActiveEditor
public void setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.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.
- Overrides:
setActiveEditor
in class CommandAction
commandStackChanged
public void commandStackChanged(java.util.EventObject event)
- Description copied from interface:
CommandStackListener
- Called when the
CommandStack
's state has changed.
- Specified by:
commandStackChanged
in interface CommandStackListener
- Following copied from interface:
org.eclipse.emf.common.command.CommandStackListener
- Parameters:
event
- the event.
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
- Description copied from class:
CommandAction
- This is invoked by the framework so that the action state can be updated.
- Overrides:
selectionChanged
in class CommandAction
getDefaultImage
protected java.lang.Object getDefaultImage()
- This returns the image that is used if the command does not provide an override.
objectToImageDescriptor
protected org.eclipse.jface.resource.ImageDescriptor objectToImageDescriptor(java.lang.Object object)
- Overrides:
objectToImageDescriptor
in class CommandAction
createActionCommand
protected Command createActionCommand(EditingDomain editingDomain,
java.util.Collection collection)
- Match the command for this action
- Overrides:
createActionCommand
in class CommandAction