org.eclipse.ui.editors.text
Class TextEditorActionContributor
java.lang.Object
|
+--org.eclipse.ui.part.EditorActionBarContributor
|
+--org.eclipse.ui.texteditor.BasicTextEditorActionContributor
|
+--org.eclipse.ui.editors.text.TextEditorActionContributor
- All Implemented Interfaces:
- IEditorActionBarContributor
- public class TextEditorActionContributor
- extends BasicTextEditorActionContributor
Manages the installation and deinstallation of global actions for the default text editor.
If instantiated and used as-is, this contributor connects global actions and adds actions
for line delimiter conversion and encoding support.
- Since:
- 2.0
Method Summary |
void |
dispose()
The EditorActionBarContributor implementation of this
IEditorActionBarContributor method does nothing,
subclasses may override. |
void |
init(IActionBars bars)
This method calls:
contributeToMenu with bars ' menu manager
contributeToToolBar with bars ' tool bar
manager
contributeToStatusLine with bars ' status line
manager
The given action bars are also remembered and made accessible via
getActionBars . |
void |
setActiveEditor(IEditorPart part)
The BasicTextEditorActionContributor implementation of this
IEditorActionBarContributor method installs the global
action handler for the given text editor by calling a private helper
method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextEditorActionContributor
public TextEditorActionContributor()
- Creates a new contributor.
setActiveEditor
public void setActiveEditor(IEditorPart part)
- Description copied from class:
BasicTextEditorActionContributor
- The
BasicTextEditorActionContributor
implementation of this
IEditorActionBarContributor
method installs the global
action handler for the given text editor by calling a private helper
method.
Subclasses may extend.
- Overrides:
setActiveEditor
in class BasicTextEditorActionContributor
- Following copied from class:
org.eclipse.ui.part.EditorActionBarContributor
- Parameters:
targetEditor
- the new target editor
init
public void init(IActionBars bars)
- Description copied from class:
EditorActionBarContributor
- This method calls:
contributeToMenu
with bars
' menu manager
contributeToToolBar
with bars
' tool bar
manager
contributeToStatusLine
with bars
' status line
manager
The given action bars are also remembered and made accessible via
getActionBars
.
- Overrides:
init
in class EditorActionBarContributor
- Following copied from class:
org.eclipse.ui.part.EditorActionBarContributor
- Parameters:
bars
- the action bars
dispose
public void dispose()
- Description copied from class:
EditorActionBarContributor
- The
EditorActionBarContributor
implementation of this
IEditorActionBarContributor
method does nothing,
subclasses may override.
- Overrides:
dispose
in class BasicTextEditorActionContributor
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.