Class JavaScriptLanguageSupport.JavaScriptAutoCompletion

java.lang.Object
org.fife.ui.autocomplete.AutoCompletion
org.fife.rsta.ac.js.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.
Version:
1.0
  • 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
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JavaScriptAutoCompletion(JavaScriptCompletionProvider provider, org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getReplacementText(org.fife.ui.autocomplete.Completion c, Document doc, int start, int len)
     
    protected int
     

    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 Object

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

    • textArea

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

    • JavaScriptAutoCompletion

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

    • getReplacementText

      protected String getReplacementText(org.fife.ui.autocomplete.Completion c, 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