Method Summary |
|
abstract protected IPage | createDefaultPage(PageBook book) Creates and returns the default page for this view. |
public void | createPartControl(Composite parent) The PageBookView implementation of this
IWorkbenchPart method creates a PageBook
control with its default page showing. |
public void | dispose() The PageBookView implementation of this
IWorkbenchPart method cleans up all the pages. |
abstract protected PageRec | doCreatePage(IWorkbenchPart part) Creates a new page in the pagebook for a particular part. |
abstract protected void | doDestroyPage(IWorkbenchPart part, PageRec pageRecord) Destroys a page in the pagebook for a particular part. |
protected boolean | doesPageExist(IPage page) Returns true if the page has already been created. |
public Object | getAdapter(Class key) The PageBookView implementation of this
IAdaptable method delegates to the current page, if it
implements IAdaptable . |
abstract protected IWorkbenchPart | getBootstrapPart() Returns the active, important workbench part for this view.
When the page book view is created it has no idea which part within the
workbook should be used to generate the first page. |
protected IWorkbenchPart | getCurrentContributingPart() Returns the part which contributed the current page to this view. |
public IPage | getCurrentPage() Returns the currently visible page for this view or null
if no page is currently visible. |
public IPage | getDefaultPage() Returns the default page for this view. |
protected PageBook | getPageBook() Returns the pagebook control for this view. |
protected PageRec | getPageRec(IWorkbenchPart part) Returns the page record for the given part. |
protected PageRec | getPageRec(IPage page) Returns the page record for the given page of this view. |
protected PageSite | getPageSite(IPage page) Returns the view site for the given page of this view. |
protected SelectionProvider | getSelectionProvider() Returns the selectionProvider for this page book view. |
protected Object | getViewAdapter(Class adapter) Returns an adapter of the specified type, as provided by this view (not
the current page), or null if this view does not provide
an adapter of the specified adapter.
The default implementation returns null . |
public void | init(IViewSite site) |
protected void | initPage(IPageBookViewPage page) Initializes the given page with a page site. |
abstract protected boolean | isImportant(IWorkbenchPart part) Returns whether the given part should be added to this view. |
public void | partActivated(IWorkbenchPart part) The PageBookView implementation of this
IPartListener method shows the page when the given part is
activated. |
public void | partBroughtToTop(IWorkbenchPart part) The PageBookView implementation of this
IPartListener method does nothing. |
public void | partClosed(IWorkbenchPart part) The PageBookView implementation of this
IPartListener method deal with the closing of the active
part. |
public void | partDeactivated(IWorkbenchPart part) The PageBookView implementation of this
IPartListener method does nothing. |
public void | partOpened(IWorkbenchPart part) |
public void | setFocus() |
protected void | showPageRec(PageRec pageRec) Shows page contained in the given page record in this view. |