| java.lang.Object org.eclipse.ui.internal.AbstractPartSelectionTracker
All known Subclasses: org.eclipse.ui.internal.WindowPartSelectionTracker, org.eclipse.ui.internal.PagePartSelectionTracker,
AbstractPartSelectionTracker | abstract public class AbstractPartSelectionTracker (Code) | | Provides per-part selection tracking for the selection service.
|
AbstractPartSelectionTracker | public AbstractPartSelectionTracker(String partId)(Code) | | Constructs a part selection tracker for the part with the given id.
Parameters: id - part identifier |
addPostSelectionListener | public void addPostSelectionListener(ISelectionListener listener)(Code) | | Adds a post selection listener to this tracker
Parameters: listener - the listener to add |
addSelectionListener | public void addSelectionListener(ISelectionListener listener)(Code) | | Adds a selection listener to this tracker
Parameters: listener - the listener to add |
dispose | public void dispose()(Code) | | Disposes this selection tracker. This removes all listeners currently registered.
|
firePostSelection | protected void firePostSelection(IWorkbenchPart part, ISelection sel)(Code) | | Fires a post selection event to the listeners.
Parameters: part - the part or null if no active part Parameters: sel - the selection or null if no active selection Parameters: listeners - the list of listeners to notify |
fireSelection | protected void fireSelection(IWorkbenchPart part, ISelection sel)(Code) | | Fires a selection event to the listeners.
Parameters: part - the part or null if no active part Parameters: sel - the selection or null if no active selection Parameters: listeners - the list of listeners to notify |
getPartId | protected String getPartId()(Code) | | Returns the id of the part that this tracks.
part identifier |
getSelection | abstract public ISelection getSelection()(Code) | | Returns the selection from the part being tracked,
or null if the part is closed or has no selection.
|
removePostSelectionListener | public void removePostSelectionListener(ISelectionListener listener)(Code) | | Removes a post selection listener from this tracker.
Parameters: listener - the listener to remove |
removeSelectionListener | public void removeSelectionListener(ISelectionListener listener)(Code) | | Removes a selection listener from this tracker.
Parameters: listener - the listener to remove |
|
|