| org.eclipse.ui.texteditor.ResourceAction org.eclipse.ui.texteditor.TextEditorAction org.eclipse.ui.texteditor.ContentAssistAction
ContentAssistAction | final public class ContentAssistAction extends TextEditorAction (Code) | | A content assist action which gets its target from its text editor.
The action is initially associated with a text editor via the constructor,
but can subsequently be changed using setEditor .
If this class is used as is, it works by asking the text editor for its text operation target
(using getAdapter(ITextOperationTarget.class) and runs the content assist
operation on this target.
since: 2.0 |
Method Summary | |
public void | run() Runs the content assist operation on the editor's text operation target. | public void | setEditor(ITextEditor editor) | public void | update() The ContentAssistAction implementation of this
IUpdate method discovers the operation through the current
editor's ITextOperationTarget adapter, and sets the
enabled state accordingly. |
ContentAssistAction | public ContentAssistAction(ResourceBundle bundle, String prefix, ITextEditor editor)(Code) | | Creates and initializes the action for the given text editor.
The action configures its visual representation from the given resource
bundle. The action works by asking the text editor at the time for its
text operation target adapter (using
getAdapter(ITextOperationTarget.class) . The action runs the
content assist operation on this target.
Parameters: bundle - the resource bundle Parameters: prefix - a prefix to be prepended to the various resource keys(described in ResourceAction constructor), ornull if none Parameters: editor - the text editor See Also: ResourceAction.ResourceAction(ResourceBundleString) |
run | public void run()(Code) | | Runs the content assist operation on the editor's text operation target.
|
update | public void update()(Code) | | The ContentAssistAction implementation of this
IUpdate method discovers the operation through the current
editor's ITextOperationTarget adapter, and sets the
enabled state accordingly.
|
|
|