Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.ui
Interface ISelectionListener

All Known Subinterfaces:
  INullSelectionListener, IPropertySheetPage

All Known Implementing Classes:
  PropertySheet, PropertySheetPage

public interface ISelectionListener

Interface for listening to selection changes.

This interface may be implemented by clients.

See Also:
  `ISelectionService.addSelectionListener(org.eclipse.ui.ISelectionListener)`, `INullSelectionListener`

Method Summary
`void` | `selectionChanged(IWorkbenchPart part, ISelection selection)` Notifies this listener that the selection has changed.

Method Detail

### selectionChanged

    public 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-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:
    `part` - the workbench part containing the selection
    `selection` - the current selection. This may be `null` if `INullSelectionListener` is implemented.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.