public interface IHistoryPageSite
IWorkbenchSite
instances but is provided as a separate
objects to allow clients to access the different site types
(view, editor, dialog) using a common interface. This interface also provides
access to the part for the site because this is required by some UI
components. Clients should not need to access the part.
Clients can determine the type of workbench site by doing instanceof
checks on the object returned by getWorkbenchSite
. Similar
instanceof
checks can be done with the part.
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
IWorkbenchPart |
getPart()
Return the workbench part for the page or
null if a
workbench part is not available (e.g. if the page is being shown in a
dialog). |
ISelectionProvider |
getSelectionProvider()
Get the selection provider that gives access to the selection
of the synchronize page associated with this page site.
|
Shell |
getShell()
Returns the shell for this site.
|
IToolBarManager |
getToolBarManager()
Returns the toolbar manager for this site or
null
it there is no toolbar. |
IPageSite |
getWorkbenchPageSite()
Return the workbench page site for the page or
null if a
workbench page site is not available (e.g. if the page is being shown in
a dialog). |
boolean |
isModal()
Returns whether this site is modal.
|
void |
setFocus()
Give the page focus.
|
void |
setSelectionProvider(ISelectionProvider provider)
Sets the selection provider for this workbench site.
|
IPageSite getWorkbenchPageSite()
null
if a
workbench page site is not available (e.g. if the page is being shown in
a dialog).null
IWorkbenchPart getPart()
null
if a
workbench part is not available (e.g. if the page is being shown in a
dialog).null
Shell getShell()
ISelectionProvider getSelectionProvider()
void setSelectionProvider(ISelectionProvider provider)
provider
- the selection provider, or null
to clear itvoid setFocus()
IToolBarManager getToolBarManager()
null
it there is no toolbar. For sites which have a corresponding
workbench site, the toolbar manager will come from the action
bars.boolean isModal()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.