|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelActionBarContributor
This is the action bar contributor for the GenModel model editor.
Inner Class Summary | |
protected class |
GenModelActionBarContributor.GenerateAction
This is a base class for the "Generate..." actions. |
protected class |
GenModelActionBarContributor.ReloadAction
|
Field Summary | |
protected org.eclipse.ui.IEditorPart |
activeEditorPart
This keeps track of the active editor. |
protected org.eclipse.jface.action.Action |
generateAction
|
protected org.eclipse.jface.action.Action |
generateAllAction
|
protected org.eclipse.jface.action.Action |
generateEditAction
|
protected org.eclipse.jface.action.Action |
generateEditorAction
|
protected org.eclipse.jface.action.IMenuManager |
generateMenuManager
This is the menu manager for the "Generate" menu. |
protected org.eclipse.jface.action.Action |
reloadAction
|
protected org.eclipse.jface.viewers.ISelectionProvider |
selectionProvider
This keeps track of the current selection provider. |
Constructor Summary | |
GenModelActionBarContributor()
This creates an instance of the contributor. |
Method Summary | |
void |
contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
This adds menu contributions for the generate actions. |
void |
contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
This adds Separators for editor additions to the tool bar. |
protected org.eclipse.jface.viewers.ISelection |
getActiveEditorSelection()
This gets the selection from the active editor. |
void |
menuAboutToShow(org.eclipse.jface.action.IMenuManager menuManager)
This populates the pop-up menu before it appears. |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
This implements ISelectionChangedListener , refreshing the
"Generate..." action contribution managers in the pull-down menu. |
void |
setActiveEditor(org.eclipse.ui.IEditorPart part)
When the active editor changes, this remembers the change, |
Field Detail |
protected org.eclipse.ui.IEditorPart activeEditorPart
protected org.eclipse.jface.viewers.ISelectionProvider selectionProvider
protected org.eclipse.jface.action.IMenuManager generateMenuManager
protected org.eclipse.jface.action.Action reloadAction
protected org.eclipse.jface.action.Action generateAction
protected org.eclipse.jface.action.Action generateEditAction
protected org.eclipse.jface.action.Action generateEditorAction
protected org.eclipse.jface.action.Action generateAllAction
Constructor Detail |
public GenModelActionBarContributor()
Method Detail |
protected org.eclipse.jface.viewers.ISelection getActiveEditorSelection()
public void contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
public void setActiveEditor(org.eclipse.ui.IEditorPart part)
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
ISelectionChangedListener
, refreshing the
"Generate..." action contribution managers in the pull-down menu.public void menuAboutToShow(org.eclipse.jface.action.IMenuManager menuManager)
|
Copyright 2001-2002 IBM Corporation and others. All Rights Reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |