Class JavaScriptCompletionProvider

java.lang.Object
org.fife.ui.autocomplete.CompletionProviderBase
org.fife.ui.autocomplete.LanguageAwareCompletionProvider
org.fife.rsta.ac.js.JavaScriptCompletionProvider
All Implemented Interfaces:
org.fife.ui.autocomplete.CompletionProvider, org.fife.ui.rtextarea.ToolTipSupplier

public class JavaScriptCompletionProvider extends org.fife.ui.autocomplete.LanguageAwareCompletionProvider
Completion provider for JavaScript.
Version:
1.0
  • Field Details

    • astRoot

      private org.mozilla.javascript.ast.AstRoot astRoot
      The AST for the JS.
    • sourceProvider

      private SourceCompletionProvider sourceProvider
      The provider used for source code, kept here since it's used so much.
    • languageSupport

      private JavaScriptLanguageSupport languageSupport
  • Constructor Details

  • Method Details

    • getASTRoot

      public org.mozilla.javascript.ast.AstRoot getASTRoot()
      Returns the AST for the JavaScript in the editor.
      Returns:
      The AST.
    • getJarManager

      public JarManager getJarManager()
    • getLanguageSupport

      public JavaScriptLanguageSupport getLanguageSupport()
    • getProvider

      public SourceCompletionProvider getProvider()
    • setShorthandCompletionCache

      public void setShorthandCompletionCache(ShorthandCompletionCache shorthandCache)
      Set shorthand completion cache
    • setCommentCompletions

      private void setCommentCompletions(ShorthandCompletionCache shorthandCache)
      load the comment completions from the shorthand cache
      Parameters:
      shorthandCache -
    • setASTRoot

      public void setASTRoot(org.mozilla.javascript.ast.AstRoot root)
      Sets the AST for the JavaScript in this editor.
      Parameters:
      root - The AST.
    • reparseDocument

      protected void reparseDocument(int offset)