|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 common contributor for all opened views. Contributes to global bars by it's contributions and by contribution of active IEditor. When focus is changed in EditorSite (active IEditor has changed) or in workbench page (another EditorSite has ben activated, ...) contribution are updated and actions are updated so. Action contributions must implement IMultiViewAction interface, must be held in global registry and must have unique id.
| 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. |
EditorSite |
getActiveEditorSite()
|
void |
setActiveEditorSite(EditorSite activeEditorSite)
|
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, 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 setActivePage(IEditorPart activeEditor)
setActivePage in class MultiPageEditorActionBarContributorpublic org.eclipse.gef.ui.actions.ActionRegistry getActionRegistry()
public void contributeToMenu(IMenuManager menuManager)
contributeToMenu in class EditorActionBarContributorpublic void contributeToStatusLine(IStatusLineManager statusLineManager)
contributeToStatusLine in class EditorActionBarContributorpublic void contributeToToolBar(IToolBarManager toolBarManager)
contributeToToolBar in class EditorActionBarContributorpublic void focusGained(IEditor editor)
IFocusListener
focusGained in interface IFocusListenereditor - which has acquired focuspublic void focusLost(IEditor editor)
IFocusListener
focusLost in interface IFocusListenereditor - which has lost focuspublic EditorSite getActiveEditorSite()
public void setActiveEditorSite(EditorSite activeEditorSite)
activeEditorSite - The activeEditorSite to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||