public interface IWorkbenchSite extends IAdaptable, IShellProvider, IServiceLocator
The workbench site supports a few services
by
default. If these services are used to allocate resources, it is important to
remember to clean up those resources after you are done with them. Otherwise,
the resources will exist until the workbench site is disposed. The supported
services are:
ICommandService
IContextService
IHandlerService
IBindingService
. Resources allocated through this service will
not be cleaned up until the workbench shuts down.This interface is not intended to be implemented or extended by clients.
IWorkbenchPartSite
,
IPageSite
Modifier and Type | Method and Description |
---|---|
IWorkbenchPage |
getPage()
Returns the page containing this workbench site.
|
ISelectionProvider |
getSelectionProvider()
Returns the selection provider for this workbench site.
|
Shell |
getShell()
Returns the shell for this workbench site.
|
IWorkbenchWindow |
getWorkbenchWindow()
Returns the workbench window containing this workbench site.
|
void |
setSelectionProvider(ISelectionProvider provider)
Sets the selection provider for this workbench site.
|
getAdapter
getService, hasService
IWorkbenchPage getPage()
ISelectionProvider getSelectionProvider()
null
if noneShell getShell()
For compatibility, this method will not throw an exception if called from outside the UI thread, but the returned Shell may be wrong.
getShell
in interface IShellProvider
IWorkbenchWindow getWorkbenchWindow()
void setSelectionProvider(ISelectionProvider provider)
provider
- the selection provider, or null
to clear it
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.