Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryISelectionListener.h>
Classes | |
struct | Events |
Public Member Functions | |
virtual | ~ISelectionListener () |
virtual void | SelectionChanged (const IWorkbenchPart::Pointer &part, const ISelection::ConstPointer &selection)=0 |
Interface for listening to selection changes.
This interface may be implemented by clients.
Definition at line 42 of file berryISelectionListener.h.
|
virtual |
Definition at line 39 of file berryISelectionListener.cpp.
|
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.
part | the workbench part containing the selection |
selection | the current selection. This may be null if INullSelectionListener is implemented. |
Implemented in berry::SelectionChangedAdapter< R >, and berry::NullSelectionChangedAdapter< R >.
Referenced by berry::ISelectionListener::Events::AddListener(), and berry::ISelectionListener::Events::RemoveListener().