| org.eclipse.ui.IWorkbenchSite
IWorkbenchSite | public interface IWorkbenchSite extends IAdaptable,IShellProvider,IServiceLocator(Code) | | The common interface between the workbench and its parts, including pages
within parts.
The workbench site supports a few
IServiceLocator 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:
This interface is not intended to be implemented or extended by clients.
See Also: org.eclipse.ui.IWorkbenchPartSite See Also: org.eclipse.ui.part.IPageSite since: 2.0 |
getPage | public IWorkbenchPage getPage()(Code) | | Returns the page containing this workbench site.
the page containing this workbench site |
getSelectionProvider | public ISelectionProvider getSelectionProvider()(Code) | | Returns the selection provider for this workbench site.
the selection provider, or null if none |
getShell | public Shell getShell()(Code) | | Returns the shell for this workbench site. Not intended to be called from
outside the UI thread. Clients should call IWorkbench.getDisplay() to
gain access to the display rather than calling getShell().getDisplay().
For compatibility, this method will not throw an exception if called from
outside the UI thread, but the returned Shell may be wrong.
the shell for this workbench site |
getWorkbenchWindow | public IWorkbenchWindow getWorkbenchWindow()(Code) | | Returns the workbench window containing this workbench site.
the workbench window containing this workbench site |
setSelectionProvider | public void setSelectionProvider(ISelectionProvider provider)(Code) | | Sets the selection provider for this workbench site.
Parameters: provider - the selection provider, or null to clear it |
|
|