| org.eclipse.ui.IEditorSite
All known Subclasses: org.eclipse.ui.internal.EditorSite, org.eclipse.ui.part.MultiPageEditorSite,
IEditorSite | public interface IEditorSite extends IWorkbenchPartSite(Code) | | The primary interface between an editor part and the workbench.
The workbench exposes its implemention of editor part sites via this
interface, which is not intended to be implemented or extended by clients.
|
getActionBarContributor | public IEditorActionBarContributor getActionBarContributor()(Code) | | Returns the action bar contributor for this editor.
An action contributor is responsable for the creation of actions.
By design, this contributor is used for one or more editors of the same type.
Thus, the contributor returned by this method is not owned completely
by the editor - it is shared.
the editor action bar contributor, or null if none exists |
getActionBars | public IActionBars getActionBars()(Code) | | Returns the action bars for this part site. Editors of the same type (and
in the same window) share the same action bars. Contributions to the
action bars are done by the IEditorActionBarContributor .
the action bars since: 2.1 |
registerContextMenu | public void registerContextMenu(MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput)(Code) | |
Registers a pop-up menu with the default id for extension. The default id
is defined as the part id.
By default, context menus include object contributions based on the
editor input for the current editor. It is possible to override this
behaviour by calling this method with includeEditorInput
as false . This might be desirable for editors that
present a localized view of an editor input (e.g., a node in a model
editor).
For a detailed description of context menu registration see
IWorkbenchPartSite.registerContextMenu(MenuManagerISelectionProvider)
Parameters: menuManager - the menu manager; must not be null . Parameters: selectionProvider - the selection provider; must not be null . Parameters: includeEditorInput - Whether the editor input should be included when adding objectcontributions to this context menu. See Also: IWorkbenchPartSite.registerContextMenu(MenuManagerISelectionProvider) since: 3.1 |
registerContextMenu | public void registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput)(Code) | |
Registers a pop-up menu with a particular id for extension. This method
should only be called if the target part has more than one context menu
to register.
By default, context menus include object contributions based on the
editor input for the current editor. It is possible to override this
behaviour by calling this method with includeEditorInput
as false . This might be desirable for editors that
present a localized view of an editor input (e.g., a node in a model
editor).
For a detailed description of context menu registration see
IWorkbenchPartSite.registerContextMenu(MenuManagerISelectionProvider)
Parameters: menuId - the menu id; must not be null . Parameters: menuManager - the menu manager; must not be null . Parameters: selectionProvider - the selection provider; must not be null . Parameters: includeEditorInput - Whether the editor input should be included when adding objectcontributions to this context menu. See Also: IWorkbenchPartSite.registerContextMenu(MenuManagerISelectionProvider) since: 3.1 |
|
|