Class LanguageAwareCompletionProvider

  • All Implemented Interfaces:
    CompletionProvider, org.fife.ui.rtextarea.ToolTipSupplier

    public class LanguageAwareCompletionProvider
    extends CompletionProviderBase
    implements org.fife.ui.rtextarea.ToolTipSupplier
    A completion provider for the C programming language (and other languages with similar syntax). This provider simply delegates to another provider, depending on whether the caret is in:
    • Code (plain text)
    • A string
    • A comment
    • A documentation comment
    This allows for different completion choices in comments than in code, for example.

    This provider also implements the org.fife.ui.rtextarea.ToolTipSupplier interface, which allows it to display tooltips for completion choices. Thus, the standard VariableCompletion and FunctionCompletion completions should be able to display tooltips with the variable declaration or function definition (provided the RSyntaxTextArea was registered with the javax.swing.ToolTipManager).

    Version:
    1.0