|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPageService
A page service tracks the page and perspective lifecycle events within a workbench window.
This service can be acquired from your service locator:
IPageService service = (IPageService) getSite().getService(IPageService.class);
IWorkbenchWindow,
IPageListener,
IPerspectiveListener,
IServiceLocator.getService(Class)| Method Summary | |
|---|---|
void |
addPageListener(IPageListener listener)
Adds the given listener for page lifecycle events. |
void |
addPerspectiveListener(IPerspectiveListener listener)
Adds the given listener for a page's perspective lifecycle events. |
IWorkbenchPage |
getActivePage()
Returns the active page. |
void |
removePageListener(IPageListener listener)
Removes the given page listener. |
void |
removePerspectiveListener(IPerspectiveListener listener)
Removes the given page's perspective listener. |
| Method Detail |
|---|
void addPageListener(IPageListener listener)
Note: listeners should be removed when no longer necessary. If not, they will be removed when the IServiceLocator used to acquire this service is disposed.
listener - a page listenerremovePageListener(IPageListener)void addPerspectiveListener(IPerspectiveListener listener)
Note: listeners should be removed when no longer necessary. If not, they will be removed when the IServiceLocator used to acquire this service is disposed.
listener - a perspective listenerremovePerspectiveListener(IPerspectiveListener)IWorkbenchPage getActivePage()
null if no page is currently activevoid removePageListener(IPageListener listener)
listener - a page listenervoid removePerspectiveListener(IPerspectiveListener listener)
listener - a perspective listener
|
Eclipse Platform Release 3.6 |
|||||||||
| 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, 2010. All rights reserved.