Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jface.viewers
Interface ISelectionProvider  view ISelectionProvider download ISelectionProvider.java

All Known Subinterfaces:
IInputSelectionProvider, IPostSelectionProvider
All Known Implementing Classes:
StructuredViewer, Viewer

public interface ISelectionProvider

Interface common to all objects that provide a selection.


Method Summary
 void addSelectionChangedListener(ISelectionChangedListener listener)
          Adds a listener for selection changes in this selection provider.
 ISelection getSelection()
          Returns the current selection for this provider.
 void removeSelectionChangedListener(ISelectionChangedListener listener)
          Removes the given selection change listener from this selection provider.
 void setSelection(ISelection selection)
          Sets the current selection for this selection provider.
 

Method Detail

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.


getSelection

public ISelection getSelection()
Returns the current selection for this provider.


removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)
Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.


setSelection

public void setSelection(ISelection selection)
Sets the current selection for this selection provider.