Package org.eclipse.compare.internal
Class CompareEditorContributor
java.lang.Object
org.eclipse.ui.part.EditorActionBarContributor
org.eclipse.compare.internal.CompareEditorContributor
- All Implemented Interfaces:
IEditorActionBarContributor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontributeToMenu(IMenuManager menuManager) Contributes to the given menu.voidContributes to the given tool bar.voiddispose()TheEditorActionBarContributorimplementation of thisIEditorActionBarContributormethod does nothing, subclasses may override.voidsetActiveEditor(IEditorPart targetEditor) Sets the active editor for the contributor.Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToStatusLine, getActionBars, getPage, init, init
-
Field Details
-
FILTER_SEPARATOR
- See Also:
-
BUILTIN_SEPARATOR
- See Also:
-
-
Constructor Details
-
CompareEditorContributor
public CompareEditorContributor()
-
-
Method Details
-
contributeToToolBar
Description copied from class:EditorActionBarContributorContributes to the given tool bar.The
EditorActionBarContributorimplementation of this method does nothing. Subclasses may reimplement to add to the tool bar portion of this contribution.- Overrides:
contributeToToolBarin classEditorActionBarContributor- Parameters:
tbm- the manager that controls the workbench tool bar
-
contributeToMenu
Description copied from class:EditorActionBarContributorContributes to the given menu.The
EditorActionBarContributorimplementation of this method does nothing. Subclasses may reimplement to add to the menu portion of this contribution.- Overrides:
contributeToMenuin classEditorActionBarContributor- Parameters:
menuManager- the manager that controls the menu
-
setActiveEditor
Description copied from class:EditorActionBarContributorSets the active editor for the contributor.The
EditorActionBarContributorimplementation of this method does nothing. Subclasses may reimplement. This generally entails disconnecting from the old editor, connecting to the new editor, and updating the actions to reflect the new editor.- Specified by:
setActiveEditorin interfaceIEditorActionBarContributor- Overrides:
setActiveEditorin classEditorActionBarContributor- Parameters:
targetEditor- the new target editor
-
dispose
public void dispose()Description copied from class:EditorActionBarContributorTheEditorActionBarContributorimplementation of thisIEditorActionBarContributormethod does nothing, subclasses may override.- Specified by:
disposein interfaceIEditorActionBarContributor- Overrides:
disposein classEditorActionBarContributor
-