public interface IEditorActionBarContributor
Within the workbench there may be more than one open editor of a particular type. For instance, there may be 1 or more open Java Editors. To avoid the creation of duplicate actions and action images the editor concept has been split into two. An action contributor is responsible for the creation of actions. The editor is responsible for action implementation. Furthermore, the contributor is shared by each open editor. As a result of this design there is only 1 set of actions for 1 or more open editors.
The relationship between editor and contributor is defined by the
org.eclipse.ui.editors extension point in the plugin registry.
This interface should not be implemented directly. An implementation of this
interface has been created in
Implementors should subclass this and specialize as required.
|Modifier and Type||Method and Description|
Disposes this contributor.
Initializes this contributor, which is expected to add contributions as required to the given action bars and global action handlers.
Sets the active editor for the contributor.
void init(IActionBars bars, IWorkbenchPage page)
The page is passed to support the use of
the contributor. In this case the init method implementors should:
nullcall partActivated on the retarget actions
And in the dispose method the retarget actions should be removed as part listeners.
bars- the action bars
page- the workbench page for this contributor
void setActiveEditor(IEditorPart targetEditor)
targetEditor- the new editor target
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.