Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryIPartService.h>
Public Member Functions | |
virtual | ~IPartService () |
virtual void | AddPartListener (IPartListener *listener)=0 |
virtual IWorkbenchPart::Pointer | GetActivePart ()=0 |
virtual IWorkbenchPartReference::Pointer | GetActivePartReference ()=0 |
virtual void | RemovePartListener (IPartListener *listener)=0 |
A part service tracks the creation and activation of parts within a workbench page.
This interface is not intended to be implemented by clients.
Definition at line 35 of file berryIPartService.h.
|
virtual |
|
pure virtual |
Adds the given observer for part 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 part listener |
|
pure virtual |
Returns the active part.
null
if no part is currently active
|
pure virtual |
Returns the active part reference.
null
if no part is currently active
|
pure virtual |
Removes the given part listener. Has no affect if an identical listener is not registered.
listener | a part listener |