Class 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 Detail

      • 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.
    • Method Detail

      • getASTRoot

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

        public JarManager getJarManager()
      • 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)