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);
-
This service is not available globally, only from the workbench window level down.
- See also
- IWorkbenchWindow
-
IPageListener
-
IPerspectiveListener
-
org.blueberry.ui.services.IServiceLocator::getService(Class) This interface is not intended to be implemented by clients.
Definition at line 48 of file berryIPageService.h.
Adds the given listener for page lifecycle events. Has no effect if an identical listener is already registered.
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.
- Parameters
-
- See also
- #removePageListener(IPageListener) Adds the given listener for a page's perspective lifecycle events. Has no effect if an identical listener is already registered.
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.
- Parameters
-
listener | a perspective listener |
- See also
- #removePerspectiveListener(IPerspectiveListener)