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 TypeMethodDescriptionvoid
contributeToMenu
(IMenuManager menuManager) Contributes to the given menu.void
Contributes to the given tool bar.void
dispose()
TheEditorActionBarContributor
implementation of thisIEditorActionBarContributor
method does nothing, subclasses may override.void
setActiveEditor
(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:EditorActionBarContributor
Contributes to the given tool bar.The
EditorActionBarContributor
implementation of this method does nothing. Subclasses may reimplement to add to the tool bar portion of this contribution.- Overrides:
contributeToToolBar
in classEditorActionBarContributor
- Parameters:
tbm
- the manager that controls the workbench tool bar
-
contributeToMenu
Description copied from class:EditorActionBarContributor
Contributes to the given menu.The
EditorActionBarContributor
implementation of this method does nothing. Subclasses may reimplement to add to the menu portion of this contribution.- Overrides:
contributeToMenu
in classEditorActionBarContributor
- Parameters:
menuManager
- the manager that controls the menu
-
setActiveEditor
Description copied from class:EditorActionBarContributor
Sets the active editor for the contributor.The
EditorActionBarContributor
implementation 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:
setActiveEditor
in interfaceIEditorActionBarContributor
- Overrides:
setActiveEditor
in classEditorActionBarContributor
- Parameters:
targetEditor
- the new target editor
-
dispose
public void dispose()Description copied from class:EditorActionBarContributor
TheEditorActionBarContributor
implementation of thisIEditorActionBarContributor
method does nothing, subclasses may override.- Specified by:
dispose
in interfaceIEditorActionBarContributor
- Overrides:
dispose
in classEditorActionBarContributor
-