|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.edit.ui.action.CommandAction
org.eclipse.emf.mapping.action.AddRootTopAction
This adds new root inputs to the mapping domain's root mapping.
Field Summary |
Fields inherited from class org.eclipse.emf.edit.ui.action.CommandAction |
action, collection, command, editingDomain, editorPart |
Constructor Summary | |
AddRootTopAction()
|
Method Summary | |
protected Collection |
getTopsToAdd()
This method should be overriden with a domain-specific implementation that returns the inputs to be added, e.g., by querying the user with a dialog. |
void |
run(IAction action)
The action must have been enabled for this to have been called, so we must have stored the selection already by this point. |
void |
selectionChanged(IAction action,
ISelection selection)
This action ignores the selection. |
void |
setActiveEditor(IAction action,
IEditorPart editorPart)
The framework calls this so that we can register against this editor. |
Methods inherited from class org.eclipse.emf.edit.ui.action.CommandAction |
createActionCommand, getDefaultImageDescriptor, objectToImageDescriptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AddRootTopAction()
Method Detail |
protected Collection getTopsToAdd()
public void selectionChanged(IAction action, ISelection selection)
selectionChanged
in interface IActionDelegate
selectionChanged
in class CommandAction
public void run(IAction action)
CommandAction
run
in interface IActionDelegate
run
in class CommandAction
public void setActiveEditor(IAction action, IEditorPart editorPart)
CommandAction
setActiveEditor
in interface IEditorActionDelegate
setActiveEditor
in class CommandAction
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |