Package org.eclipse.ui
Interface ISelectionListener
-
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
INullSelectionListener,IPropertySheetPage
- All Known Implementing Classes:
PropertySheet,PropertySheetPage,TabbedPropertySheetPage
public interface ISelectionListener extends EventListener
Interface for listening to selection changes.This interface may be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidselectionChanged(IWorkbenchPart part, ISelection selection)Notifies this listener that the selection has changed.
-
-
-
Method Detail
-
selectionChanged
void selectionChanged(IWorkbenchPart part, ISelection selection)
Notifies this listener that the selection has changed.This method is called when the selection changes from one to a
non-nullvalue, but not when the selection changes tonull. If there is a requirement to be notified in the latter scenario, implementINullSelectionListener. The event will be posted through this method.- Parameters:
part- the workbench part containing the selectionselection- the current selection. This may benullifINullSelectionListeneris implemented.
-
-