Eclipse Platform
2.0

org.eclipse.ui
Interface IWorkbenchSite

All Known Subinterfaces:
IEditorSite, IPageSite, IViewSite, IWorkbenchPartSite
All Known Implementing Classes:
MultiPageEditorSite, PageSite

public interface IWorkbenchSite

The common interface between the workbench and its parts, including pages within parts.

This interface is not intended to be implemented or extended by clients.

Since:
2.0
See Also:
IWorkbenchPartSite, IPageSite

Method Summary
 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.
 

Method Detail

getPage

public IWorkbenchPage getPage()
Returns the page containing this workbench site.

Returns:
the page containing this workbench site

getSelectionProvider

public ISelectionProvider getSelectionProvider()
Returns the selection provider for this workbench site.

Returns:
the selection provider, or null if none

getShell

public Shell getShell()
Returns the shell for this workbench site.

Returns:
the shell for this workbench site

getWorkbenchWindow

public IWorkbenchWindow getWorkbenchWindow()
Returns the workbench window containing this workbench site.

Returns:
the workbench window containing this workbench site

setSelectionProvider

public void setSelectionProvider(ISelectionProvider provider)
Sets the selection provider for this workbench site.

Parameters:
provider - the selection provider, or null to clear it

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.