Method Summary |
|
public void | dispose() Disposes this action by removing it as a listener from the selection provider. |
public ISelection | getSelection() Returns the current selection in the selection provider. |
public ISelectionProvider | getSelectionProvider() Returns the selection provider that is the target of this action. |
public IStructuredSelection | getStructuredSelection() Returns the current structured selection in the selection provider, or an
empty selection if nothing is selected or if selection does not include
objects (for example, raw text). |
public void | selectionChanged(ISelection selection) Notifies this action that the given (non-structured) selection has changed
in the selection provider.
The SelectionProviderAction implementation of this method
does nothing. |
public void | selectionChanged(IStructuredSelection selection) Notifies this action that the given structured selection has changed
in the selection provider.
The SelectionProviderAction implementation of this method
does nothing. |
final public void | selectionChanged(SelectionChangedEvent event) The SelectionProviderAction implementation of this
ISelectionChangedListener method calls
selectionChanged(IStructuredSelection) if the selection is
a structured selection but selectionChanged(ISelection) if it is
not. |