Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
#include <berryIPageService.h>
Public Member Functions | |
virtual | ~IPageService () |
virtual void | AddPerspectiveListener (IPerspectiveListener *listener)=0 |
virtual SmartPointer< IWorkbenchPage > | GetActivePage () const =0 |
virtual void | RemovePerspectiveListener (IPerspectiveListener *listener)=0 |
virtual IPerspectiveListener::Events & | GetPerspectiveEvents ()=0 |
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);
Definition at line 44 of file berryIPageService.h.
|
virtual |
|
pure virtual |
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.
listener | a perspective listener |
|
pure virtual |
Returns the active page.
null
if no page is currently active Implemented in berry::IWorkbenchWindow.
|
pure virtual |
|
pure virtual |
Removes the given page's perspective listener. Has no affect if an identical listener is not registered.
listener | a perspective listener |