| java.lang.Object org.eclipse.ui.examples.readmetool.EditorActionDelegate
EditorActionDelegate | public class EditorActionDelegate implements IEditorActionDelegate(Code) | | This class is used to demonstrate editor action extensions.
An extension should be defined in the readme plugin.xml.
|
Method Summary | |
public void | run(IAction action) | public void | selectionChanged(IAction action, ISelection selection) The EditorActionDelegate implementation of this
IActionDelegate method does nothing.
Selection in the workbench has changed. | public void | setActiveEditor(IAction action, IEditorPart editor) The EditorActionDelegate implementation of this
IEditorActionDelegate method remembers the active editor.
The matching editor has been activated. |
EditorActionDelegate | public EditorActionDelegate()(Code) | | Creates a new EditorActionDelegate.
|
run | public void run(IAction action)(Code) | | |
selectionChanged | public void selectionChanged(IAction action, ISelection selection)(Code) | | The EditorActionDelegate implementation of this
IActionDelegate method does nothing.
Selection in the workbench has changed. Plugin provider
can use it to change the availability of the action
or to modify other presentation properties.
Action delegate cannot be notified about
selection changes before it is loaded. For that reason,
control of action's enable state should also be performed
through simple XML rules defined for the extension
point. These rules allow enable state control before
the delegate has been loaded.
|
setActiveEditor | public void setActiveEditor(IAction action, IEditorPart editor)(Code) | | The EditorActionDelegate implementation of this
IEditorActionDelegate method remembers the active editor.
The matching editor has been activated. Notification
guarantees that only editors that match the type for which
this action has been registered will be tracked.
Parameters: action - action proxy that represents this delegate in the workbench Parameters: editor - the matching editor that has been activated |
|
|