|
Eclipse Platform Release 3.1 |
|||||||||||
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.texteditor.BasicTextEditorActionContributor
org.eclipse.ui.editors.text.TextEditorActionContributor
Manages the installation and de-installation of global actions for the default text editor.
If instantiated and used as-is, this contributor connects the following global actions:
Constructor Summary | |
---|---|
TextEditorActionContributor()
Creates a new contributor. |
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
contributeToCoolBar with bars ' cool bar
manager if IActionBars is of extended type IActionBars2
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 org.eclipse.ui.texteditor.BasicTextEditorActionContributor |
---|
contributeToMenu, contributeToStatusLine, getAction, getActiveEditorPart |
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor |
---|
contributeToCoolBar, contributeToToolBar, getActionBars, getPage, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextEditorActionContributor()
Method Detail |
public void setActiveEditor(IEditorPart part)
BasicTextEditorActionContributor
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.
setActiveEditor
in interface IEditorActionBarContributor
setActiveEditor
in class BasicTextEditorActionContributor
part
- public void dispose()
EditorActionBarContributor
EditorActionBarContributor
implementation of this
IEditorActionBarContributor
method does nothing,
subclasses may override.
dispose
in interface IEditorActionBarContributor
dispose
in class BasicTextEditorActionContributor
public void init(IActionBars bars)
EditorActionBarContributor
contributeToMenu
with bars
' menu managercontributeToToolBar
with bars
' tool bar
managercontributeToCoolBar
with bars
' cool bar
manager if IActionBars
is of extended type IActionBars2
contributeToStatusLine
with bars
' status line
managergetActionBars
.
init
in class EditorActionBarContributor
bars
- the action bars
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.