|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BasicTextEditorActionContributor com.ibm.lpex.alef.LpexContextContributor
public class LpexContextContributor
Basic LPEX contributions to the Eclipse context.
Solution plugins using the LPEX plugin must extend this class
in order to add their own Eclipse contributions.
An LPEX-based editor plugin that has no contributions of its own
must still use this class (or a class extending it) as the
contributorClass
in its plugin.xml (the editor
definition of the "org.eclipse.ui.editors" extension point) in order to have
the LPEX contributions appear in the workbench.
Subclasses may extend the following methods:
contributeToMenu
- extend to contribute to menu
contributeToToolBar
- extend to contribute to toolbar
contributeToStatusLine
- extend to contribute to status line
setActiveEditor
- extend to react to editor changes
super.
equivalent.
Constructor Summary | |
---|---|
LpexContextContributor()
|
Method Summary | |
---|---|
protected void |
activeWindowChanged()
Notification from LpexAbstractTextEditor that a new LPEX window in the multiwindow of our active editor's viewer has become active. |
void |
contributeToMenu(IMenuManager menu)
Adds the menus portion of this contribution. |
void |
contributeToToolBar(IToolBarManager tbm)
Adds the tool bar portion of this contribution. |
void |
dispose()
Disposes this contributor. |
void |
init(IActionBars bars)
Initializes our common actions, calls all the contributeToXxx() methods. |
void |
setActiveEditor(IEditorPart targetEditor)
Sets the active editor for the contributor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LpexContextContributor()
Method Detail |
---|
protected void activeWindowChanged()
This method updates our own record of the active LPEX view (it being the new subject view of our listeners), and updates the accelerators for those LPEX actions that we contribute in here.
public void init(IActionBars bars)
public void contributeToMenu(IMenuManager menu)
menu
- the manager that controls the menupublic void contributeToToolBar(IToolBarManager tbm)
tbm
- the manager that controls the workbench tool barpublic void setActiveEditor(IEditorPart targetEditor)
targetEditor
- the new editor targetIEditorActionBarContributor
public void dispose()
IEditorActionBarContributor
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |