Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui
Interface IWorkbenchSite

All Superinterfaces:
IAdaptable, IServiceLocator, IShellProvider
All Known Subinterfaces:
IEditorSite, IIntroSite, IPageSite, IViewSite, IWorkbenchPartSite
All Known Implementing Classes:
MultiPageEditorSite, PageSite

public interface IWorkbenchSite
extends IAdaptable, IShellProvider, IServiceLocator

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

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:

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

Since:
2.0
See Also:
IWorkbenchPartSite, IPageSite
Restriction:
This interface is not intended to be implemented by clients.

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.
 
Methods inherited from interface org.eclipse.core.runtime. IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.ui.services. IServiceLocator
getService, hasService
 

Method Detail

getPage

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

Returns:
the page containing this workbench site

getSelectionProvider

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

Returns:
the selection provider, or null if none

getShell

Shell getShell()
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.

Specified by:
getShell in interface IShellProvider
Returns:
the shell for this workbench site

getWorkbenchWindow

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

Returns:
the workbench window containing this workbench site

setSelectionProvider

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

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire