|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.eclipse.ui.part.MultiPageEditorSite
Site for a nested editor within a multi-page editor. Selection is handled by forwarding the event to the multi-page editor's selection listeners; most other methods are forwarded to the multi-page editor's site.
The base implementation of MultiPageEditor.createSite creates
an instance of this class. This class may be instantiated or subclassed.
| Constructor Summary | |
MultiPageEditorSite(MultiPageEditorPart multiPageEditor,
IEditorPart editor)
Creates a site for the given editor nested within the given multi-page editor. |
|
| Method Summary | |
IEditorActionBarContributor |
getActionBarContributor()
The MultiPageEditorSite implementation of this
IEditorSite method returns null,
since nested editors do not have their own action bar contributor. |
ILabelDecorator |
getDecoratorManager()
Deprecated. use IWorkbench.getDecoratorManager() |
IEditorPart |
getEditor()
Returns the nested editor. |
String |
getId()
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns an empty string since the
nested editor is not created from the registry. |
IKeyBindingService |
getKeyBindingService()
Returns the key binding service in use. |
MultiPageEditorPart |
getMultiPageEditor()
Returns the multi-page editor. |
IWorkbenchPage |
getPage()
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor to
return the workbench page. |
String |
getPluginId()
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns an empty string since the
nested editor is not created from the registry. |
String |
getRegisteredName()
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns an empty string since the
nested editor is not created from the registry. |
ISelectionProvider |
getSelectionProvider()
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns the selection provider
set by setSelectionProvider. |
Shell |
getShell()
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor to
return the shell. |
IWorkbenchWindow |
getWorkbenchWindow()
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor to
return the workbench window. |
protected void |
handleSelectionChanged(SelectionChangedEvent event)
Handles a selection changed event from the nested editor. |
void |
registerContextMenu(MenuManager menuManager,
ISelectionProvider selectionProvider)
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor for
registration. |
void |
registerContextMenu(String menuID,
MenuManager menuMgr,
ISelectionProvider selProvider)
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor for
registration. |
void |
setSelectionProvider(ISelectionProvider provider)
The MultiPageEditorSite implementation of this
IWorkbenchPartSite method remembers the selection provider,
and also hooks a listener on it, which calls handleSelectionChanged
when a selection changed event occurs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiPageEditorSite(MultiPageEditorPart multiPageEditor,
IEditorPart editor)
multiPageEditor - the multi-page editoreditor - the nested editor| Method Detail |
public IEditorActionBarContributor getActionBarContributor()
MultiPageEditorSite implementation of this
IEditorSite method returns null,
since nested editors do not have their own action bar contributor.
getActionBarContributor in interface IEditorSitenull if none existspublic ILabelDecorator getDecoratorManager()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor to
return the decorator manager.
public IEditorPart getEditor()
public String getId()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns an empty string since the
nested editor is not created from the registry.
getId in interface IWorkbenchPartSite#getConfigurationElementpublic IKeyBindingService getKeyBindingService()
IEditorSiteThe editor part will access this service to register all of its actions, to set the active scope, and to forward key events.
getKeyBindingService in interface IEditorSitepublic MultiPageEditorPart getMultiPageEditor()
public IWorkbenchPage getPage()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor to
return the workbench page.
getPage in interface IWorkbenchSitepublic String getPluginId()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns an empty string since the
nested editor is not created from the registry.
getPluginId in interface IWorkbenchPartSiteIPluginDescriptor.getUniqueIdentifier()public String getRegisteredName()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns an empty string since the
nested editor is not created from the registry.
getRegisteredName in interface IWorkbenchPartSitepublic ISelectionProvider getSelectionProvider()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method returns the selection provider
set by setSelectionProvider.
getSelectionProvider in interface IWorkbenchSitenull if nonepublic Shell getShell()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor to
return the shell.
getShell in interface IWorkbenchSitepublic IWorkbenchWindow getWorkbenchWindow()
MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor to
return the workbench window.
getWorkbenchWindow in interface IWorkbenchSiteprotected void handleSelectionChanged(SelectionChangedEvent event)
fireSelectionChanged
on it (only if it is an instance of MultiPageSelectionProvider),
passing a new event object.
Subclasses may extend or reimplement this method.
event - the event
public void registerContextMenu(String menuID,
MenuManager menuMgr,
ISelectionProvider selProvider)
MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor for
registration.
registerContextMenu in interface IWorkbenchPartSitemenuID - the menu idmenuMgr - the menu managerselProvider - the selection provider
public void registerContextMenu(MenuManager menuManager,
ISelectionProvider selectionProvider)
MultiPageEditorSite implementation of this
IWorkbenchPartSite method forwards to the multi-page editor for
registration.
registerContextMenu in interface IWorkbenchPartSitemenuManager - the menu managerselectionProvider - the selection providerpublic void setSelectionProvider(ISelectionProvider provider)
MultiPageEditorSite implementation of this
IWorkbenchPartSite method remembers the selection provider,
and also hooks a listener on it, which calls handleSelectionChanged
when a selection changed event occurs.
setSelectionProvider in interface IWorkbenchSiteprovider - the selection provider, or null to clear ithandleSelectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||