Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berry::ISelectionListener Struct Referenceabstract

#include <berryISelectionListener.h>

Inheritance diagram for berry::ISelectionListener:

Classes

struct  Events
 

Public Member Functions

virtual ~ISelectionListener ()
 
virtual void SelectionChanged (const IWorkbenchPart::Pointer &part, const ISelection::ConstPointer &selection)=0
 

Detailed Description

Interface for listening to selection changes.

This interface may be implemented by clients.

See also
ISelectionService::AddSelectionListener(ISelectionListener::Pointer)
ISelectionService::AddSelectionListener(const QString&, ISelectionListener::Pointer)
INullSelectionListener

Definition at line 38 of file berryISelectionListener.h.

Constructor & Destructor Documentation

◆ ~ISelectionListener()

virtual berry::ISelectionListener::~ISelectionListener ( )
virtual

Member Function Documentation

◆ SelectionChanged()

virtual void berry::ISelectionListener::SelectionChanged ( const IWorkbenchPart::Pointer part,
const ISelection::ConstPointer selection 
)
pure virtual

Notifies this listener that the selection has changed.

This method is called when the selection changes from one to a non-null value, but not when the selection changes to null. If there is a requirement to be notified in the latter scenario, implement INullSelectionListener. The event will be posted through this method.

Parameters
partthe workbench part containing the selection
selectionthe current selection. This may be null if INullSelectionListener is implemented.

Implemented in berry::SelectionChangedAdapter< R >, and berry::NullSelectionChangedAdapter< R >.


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