getStructuredSelection
) and provides a convenient place to monitor selection changes that could affect the availability of the action. Subclasses must implement the following IAction
method:
run
- to do the action's work Subclasses may extend the updateSelection
method to update the action determine its availability based on the current selection.
The object instantiating the subclass is responsible for registering the instance with a selection provider. Alternatively, the object can notify the subclass instance directly of a selection change using the methods:
selectionChanged(IStructuredSelection)
- passing the selectionselectionChanged(ISelectionChangedEvent)
- passing the selection change event
|
|