public abstract class PageSwitcher extends Object
Constructor and Description |
---|
PageSwitcher(IWorkbenchPart part)
Register the handlers for page switching with this view or editor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
activatePage(Object page)
Displays the given page in the view.
|
int |
getCurrentPageIndex()
Returns the index of the currently active page.
|
abstract ImageDescriptor |
getImageDescriptor(Object page)
Returns an
ImageDescriptor for the page. |
abstract String |
getName(Object page)
Returns a readable name to identify the page.
|
abstract Object[] |
getPages()
Returns the pages available in the view.
|
public PageSwitcher(IWorkbenchPart part)
part
- The part to register against.public abstract void activatePage(Object page)
page
- the page to display, never null
.public abstract ImageDescriptor getImageDescriptor(Object page)
ImageDescriptor
for the page.page
- the page to retrieve an ImageDescriptor
ImageDescriptor
for the page, may be null
.public abstract String getName(Object page)
page
- the page to get the namepublic abstract Object[] getPages()
activatePage(Object)
.public int getCurrentPageIndex()
getPages()
, or an arbitrary value if
getPages()
is an empty array.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.