|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.part.PageSwitcher
Provides the implementation for switching pages in a view. A view may track pages however it wishes. The view should subclass PageSwitcher to provide the abstract methods, and then instantiate their page switcher once.
Constructor Summary | |
PageSwitcher(IWorkbenchPart part)
Register the handlers for page switching with this view or editor. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PageSwitcher(IWorkbenchPart part)
part
- The part to register against.Method Detail |
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 name
public abstract Object[] getPages()
activatePage(Object)
.
public int getCurrentPageIndex()
getPages()
, or an arbitrary value if
getPages()
is an empty array.
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.