public class GenModelActionBarContributor extends EditingDomainActionBarContributor
Modifier and Type | Class and Description |
---|---|
protected class |
GenModelActionBarContributor.CreateAction |
protected class |
GenModelActionBarContributor.GenerateAction
This implements the "Generate..." actions.
|
protected static class |
GenModelActionBarContributor.OpenEObjectEditorAction |
protected static class |
GenModelActionBarContributor.ProjectType |
Modifier and Type | Field and Description |
---|---|
protected IEditorPart |
activeEditorPart
This keeps track of the active editor.
|
protected GenModelActionBarContributor.CreateAction |
addDetailAction |
protected GenModelActionBarContributor.CreateAction |
annotateAction |
protected IAction |
generateAllAction |
protected IAction |
generateEditAction |
protected IAction |
generateEditorAction |
protected IMenuManager |
generateMenuManager
This is the menu manager for the "Generate" menu.
|
protected IAction |
generateModelAction |
protected IAction |
generateTestsAction |
protected GenModelActionBarContributor.OpenEObjectEditorAction |
openEcoreAction |
protected GenModelActionBarContributor.OpenEObjectEditorAction |
openGenModelAction |
protected IAction |
refreshViewerAction
This action refreshes the viewer of the current editor if the editor
implements
IViewerProvider |
protected ISelectionProvider |
selectionProvider
This keeps track of the current selection provider.
|
protected ViewerFilterAction |
showGenAnnotationsAction |
protected IAction |
showPropertiesViewAction
This action opens the Properties view
|
activeEditor, ADDITIONS_LAST_STYLE, controlAction, copyAction, cutAction, deleteAction, liveValidationAction, loadResourceAction, pasteAction, redoAction, style, undoAction, validateAction
Constructor and Description |
---|
GenModelActionBarContributor()
This creates an instance of the contributor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addGlobalActions(IMenuManager menuManager)
This inserts global actions before the "additions-end" separator
|
void |
contributeToMenu(IMenuManager menuManager)
This adds menu contributions for the generate actions.
|
void |
contributeToToolBar(IToolBarManager toolBarManager)
This adds Separators for editor additions to the tool bar.
|
void |
dispose() |
protected ISelection |
getActiveEditorSelection()
This gets the selection from the active editor.
|
void |
menuAboutToShow(IMenuManager menuManager)
This populates the pop-up menu before it appears.
|
void |
selectionChanged(SelectionChangedEvent event)
This implements
ISelectionChangedListener , refreshing the
"Generate..." action contribution managers in the pull-down menu. |
void |
setActiveEditor(IEditorPart part)
When the active editor changes, this remembers the change,
|
activate, contributeToStatusLine, createCopyAction, createCutAction, createDeleteAction, createPasteAction, createRedoAction, createUndoAction, deactivate, getActiveEditor, init, propertyChanged, removeAllReferencesOnDelete, setActivePage, setActiveView, shareGlobalActions, update
protected IEditorPart activeEditorPart
protected ISelectionProvider selectionProvider
protected IAction showPropertiesViewAction
protected IAction refreshViewerAction
IViewerProvider
.
protected IMenuManager generateMenuManager
protected IAction generateModelAction
protected IAction generateEditAction
protected IAction generateEditorAction
protected IAction generateTestsAction
protected IAction generateAllAction
protected ViewerFilterAction showGenAnnotationsAction
protected GenModelActionBarContributor.CreateAction annotateAction
protected GenModelActionBarContributor.CreateAction addDetailAction
protected GenModelActionBarContributor.OpenEObjectEditorAction openEcoreAction
protected GenModelActionBarContributor.OpenEObjectEditorAction openGenModelAction
public GenModelActionBarContributor()
protected ISelection getActiveEditorSelection()
public void dispose()
public void contributeToMenu(IMenuManager menuManager)
contributeToMenu
in class EditingDomainActionBarContributor
public void contributeToToolBar(IToolBarManager toolBarManager)
contributeToToolBar
in class EditingDomainActionBarContributor
public void setActiveEditor(IEditorPart part)
setActiveEditor
in class EditingDomainActionBarContributor
public void selectionChanged(SelectionChangedEvent event)
ISelectionChangedListener
, refreshing the
"Generate..." action contribution managers in the pull-down menu.public void menuAboutToShow(IMenuManager menuManager)
menuAboutToShow
in class EditingDomainActionBarContributor
protected void addGlobalActions(IMenuManager menuManager)
addGlobalActions
in class EditingDomainActionBarContributor