Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::IPartService Struct Referenceabstract

#include <berryIPartService.h>

Inheritance diagram for berry::IPartService:

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
 

Detailed Description

A part service tracks the creation and activation of parts within a workbench page.

This interface is not intended to be implemented by clients.

See also
IWorkbenchPage

Definition at line 39 of file berryIPartService.h.

Constructor & Destructor Documentation

berry::IPartService::~IPartService ( )
virtual

Definition at line 22 of file berryIPartService.cpp.

Member Function Documentation

virtual void berry::IPartService::AddPartListener ( IPartListener listener)
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.

Parameters
listenera part listener
See also
#removePartListener(IPartListener)
virtual IWorkbenchPart::Pointer berry::IPartService::GetActivePart ( )
pure virtual

Returns the active part.

Returns
the active part, or null if no part is currently active
virtual IWorkbenchPartReference::Pointer berry::IPartService::GetActivePartReference ( )
pure virtual

Returns the active part reference.

Returns
the active part reference, or null if no part is currently active
virtual void berry::IPartService::RemovePartListener ( IPartListener listener)
pure virtual

Removes the given part listener. Has no affect if an identical listener is not registered.

Parameters
listenera part listener

The documentation for this struct was generated from the following files: