|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.part.EditorActionBarContributor org.eclipse.ui.part.MultiPageEditorActionBarContributor sk.uniba.euromath.editor.actions.MultiViewActionContributor
public class MultiViewActionContributor
MultiViewActionContributor is contributor for special IEditorPart -
MutliViewXMLEditor. It is contributor for all opened documents and views
(from that name multi view). Contributes to global bars by own contributions
and by contributions of active IEditor. When focus is changed in EditorSite
(active IEditor has changed) or in workbench page (another EditorSite has
been activated, it means another view) contributions are updated.
EditorSite
) and one view is composed of many
IEditor
s with IActionContributor
s corresponding to rendered
namespaces in view.IEditor
's IActionContributor
IEditor
is activated, its associated IActionContributor
is asked to contribute and when is deactivated its contributions are removed.IEditor
can be shared by it instances in all
opened views. This is action sharing is implemented in views over opened
document. Such shareable action contributed by IActionContributor
must implement IMultiViewAction
and must have unique id. Its context
is changed by
IMultiViewAction.setWorkbenchPart(org.eclipse.ui.IWorkbenchPart)
.
Constructor Summary | |
---|---|
MultiViewActionContributor()
Constructor. |
Method Summary | |
---|---|
void |
contributeToMenu(IMenuManager menuManager)
|
void |
contributeToStatusLine(IStatusLineManager statusLineManager)
|
void |
contributeToToolBar(IToolBarManager toolBarManager)
|
void |
focusGained(IEditor editor)
Sent when IEditor gets focus. |
void |
focusLost(IEditor editor)
Sent when IEditor loses focus. |
org.eclipse.gef.ui.actions.ActionRegistry |
getActionRegistry()
This contributor's action registry. |
void |
init(IActionBars bars)
|
void |
setActivePage(IEditorPart activeEditor)
|
Methods inherited from class org.eclipse.ui.part.MultiPageEditorActionBarContributor |
---|
setActiveEditor |
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor |
---|
contributeToCoolBar, dispose, getActionBars, getPage, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiViewActionContributor()
Method Detail |
---|
public void init(IActionBars bars)
init
in class EditorActionBarContributor
public void setActivePage(IEditorPart activeEditor)
setActivePage
in class MultiPageEditorActionBarContributor
public org.eclipse.gef.ui.actions.ActionRegistry getActionRegistry()
public void contributeToMenu(IMenuManager menuManager)
contributeToMenu
in class EditorActionBarContributor
public void contributeToStatusLine(IStatusLineManager statusLineManager)
contributeToStatusLine
in class EditorActionBarContributor
public void contributeToToolBar(IToolBarManager toolBarManager)
contributeToToolBar
in class EditorActionBarContributor
public void focusGained(IEditor editor)
IFocusListener
focusGained
in interface IFocusListener
editor
- which has acquired focuspublic void focusLost(IEditor editor)
IFocusListener
focusLost
in interface IFocusListener
editor
- which has lost focus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |