|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICommonViewerWorkbenchSite
Provides a page, set of action bars, menu registration callback, and active window.
| Method Summary | |
|---|---|
IActionBars |
getActionBars()
Returns the action bars for this page site. |
IWorkbenchPage |
getPage()
Returns the page corresponding to this viewer site. |
IWorkbenchPart |
getPart()
|
IWorkbenchPartSite |
getSite()
|
IWorkbenchWindow |
getWorkbenchWindow()
|
void |
registerContextMenu(java.lang.String menuId,
MenuManager menuManager,
ISelectionProvider selectionProvider)
Registers a pop-up menu with a particular id for extension. |
| Methods inherited from interface org.eclipse.ui.navigator.ICommonViewerSite |
|---|
getId, getSelectionProvider, getShell, setSelectionProvider |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Method Detail |
|---|
IWorkbenchPage getPage()
void registerContextMenu(java.lang.String menuId,
MenuManager menuManager,
ISelectionProvider selectionProvider)
Within the workbench one plug-in may extend the pop-up menus for a view
or editor within another plug-in. In order to be eligible for extension,
the menu must be registered by calling registerContextMenu.
Once this has been done the workbench will automatically insert any
action extensions which exist.
A unique menu id must be provided for each registered menu. This id should be published in the Javadoc for the page.
Any pop-up menu which is registered with the workbench should also define
a GroupMarker in the registered menu with id
IWorkbenchActionConstants.MB_ADDITIONS. Other plug-ins
will use this group as a reference point for insertion. The marker should
be defined at an appropriate location within the menu for insertion.
menuId - the menu idmenuManager - the menu managerselectionProvider - the selection providerIActionBars getActionBars()
IWorkbenchWindow getWorkbenchWindow()
CommonViewerIWorkbenchPart getPart()
IWorkbenchPartSite getSite()
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.