Class JavaScriptLanguageSupport.JavaScriptAutoCompletion

  • Enclosing class:
    JavaScriptLanguageSupport

    private class JavaScriptLanguageSupport.JavaScriptAutoCompletion
    extends org.fife.ui.autocomplete.AutoCompletion
    A hack of AutoCompletion that forces the parser to re-parse the document when the user presses Ctrl+space.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.fife.ui.autocomplete.AutoCompletion

        org.fife.ui.autocomplete.AutoCompletion.AutoCompleteAction
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getReplacementText​(org.fife.ui.autocomplete.Completion c, javax.swing.text.Document doc, int start, int len)  
      protected int refreshPopupWindow()  
      • Methods inherited from class org.fife.ui.autocomplete.AutoCompletion

        addAutoCompletionListener, createAutoCompleteAction, doCompletion, fireAutoCompletionEvent, getAutoActivationDelay, getAutoCompleteSingleChoices, getCompletionProvider, getDefaultTriggerKey, getDescWindowColor, getExternalURLHandler, getLinkRedirector, getListCellRenderer, getParamChoicesRenderer, getParameterDescriptionTruncateThreshold, getShowDescWindow, getStyleContext, getTextComponent, getTriggerKey, hideChildWindows, hidePopupWindow, insertCompletion, insertCompletion, install, isAutoActivationEnabled, isAutoCompleteEnabled, isHideOnCompletionProviderChange, isHideOnNoText, isParameterAssistanceEnabled, isPopupVisible, removeAutoCompletionListener, setAutoActivationDelay, setAutoActivationEnabled, setAutoCompleteEnabled, setAutoCompleteSingleChoices, setChoicesWindowSize, setCompletionProvider, setDescriptionWindowColor, setDescriptionWindowSize, setExternalURLHandler, setHideOnCompletionProviderChange, setHideOnNoText, setLinkRedirector, setListCellRenderer, setParamChoicesRenderer, setParameterAssistanceEnabled, setParameterDescriptionTruncateThreshold, setPopupVisible, setShowDescWindow, setTriggerKey, uninstall
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • textArea

        private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea
    • Constructor Detail

      • JavaScriptAutoCompletion

        public JavaScriptAutoCompletion​(JavaScriptCompletionProvider provider,
                                        org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)
    • Method Detail

      • getReplacementText

        protected java.lang.String getReplacementText​(org.fife.ui.autocomplete.Completion c,
                                                      javax.swing.text.Document doc,
                                                      int start,
                                                      int len)
        Overrides:
        getReplacementText in class org.fife.ui.autocomplete.AutoCompletion
      • refreshPopupWindow

        protected int refreshPopupWindow()
        Overrides:
        refreshPopupWindow in class org.fife.ui.autocomplete.AutoCompletion