org.eclipse.emf.examples.extlibrary.actions
Class EXTLibraryExtendedActionBarContributor
java.lang.Object
org.eclipse.ui.part.EditorActionBarContributor
org.eclipse.ui.part.MultiPageEditorActionBarContributor
org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
org.eclipse.emf.examples.extlibrary.presentation.EXTLibraryActionBarContributor
org.eclipse.emf.examples.extlibrary.actions.EXTLibraryExtendedActionBarContributor
- All Implemented Interfaces:
- IMenuListener, ISelectionChangedListener, IEditorActionBarContributor, IPropertyListener
public class EXTLibraryExtendedActionBarContributor
- extends EXTLibraryActionBarContributor
Extension to the generated action bar contributor to handle creation of
multi-rooted resources.
Fields inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor |
activeEditor, ADDITIONS_LAST_STYLE, controlAction, copyAction, cutAction, deleteAction, loadResourceAction, pasteAction, redoAction, style, undoAction, validateAction |
Methods inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor |
activate, contributeToStatusLine, createCopyAction, createCutAction, createDeleteAction, createPasteAction, createRedoAction, createUndoAction, deactivate, getActiveEditor, propertyChanged, setActivePage, setActiveView, shareGlobalActions, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTLibraryExtendedActionBarContributor
public EXTLibraryExtendedActionBarContributor()
- Constructor
generateCreateChildActions
protected java.util.Collection<IAction> generateCreateChildActions(java.util.Collection<?> descriptors,
ISelection selection)
- Description copied from class:
EXTLibraryActionBarContributor
- This generates a
CreateChildAction
for each object in descriptors
,
and returns the collection of these actions.
- Overrides:
generateCreateChildActions
in class EXTLibraryActionBarContributor
generateCreateSiblingActions
protected java.util.Collection<IAction> generateCreateSiblingActions(java.util.Collection<?> descriptors,
ISelection selection)
- Description copied from class:
EXTLibraryActionBarContributor
- This generates a
CreateSiblingAction
for each object in descriptors
,
and returns the collection of these actions.
- Overrides:
generateCreateSiblingActions
in class EXTLibraryActionBarContributor
generateResourceAction
protected Action generateResourceAction(Resource resource)
- Generates a library action for a given resource
- Parameters:
resource
- the containing resource
- Returns:
- the action
init
public void init(IActionBars actionBars)
- Overrides:
init
in class EditingDomainActionBarContributor