Class ContentAssistAction

  • All Implemented Interfaces:
    IAction, IUpdate

    public final class ContentAssistAction
    extends TextEditorAction
    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
    • Constructor Detail

      • ContentAssistAction

        public ContentAssistAction​(ResourceBundle bundle,
                                   String prefix,
                                   ITextEditor editor)
        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
        prefix - a prefix to be prepended to the various resource keys (described in ResourceAction constructor), or null if none
        editor - the text editor
        See Also:
        ResourceAction(ResourceBundle, String)