Package org.kcc

Class KeywordBasedCodeCompletion

java.lang.Object
org.kcc.KeywordBasedCodeCompletion

public class KeywordBasedCodeCompletion extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • showHelp

      private void showHelp()
    • createFrame

      private JFrame createFrame()
    • setCompletionsSet

      public void setCompletionsSet(CompletionItem.CompletionItemSet set)
    • proceedArrow

      private void proceedArrow(KeyEvent keyEvent)
    • ende

      private void ende()
    • proceed

      private void proceed(CaretEvent caretEvent)
    • proceed

      private void proceed(CaretEvent caretEvent, DocumentEvent documentEvent)
    • getLastWord

      private String getLastWord(int caretpos)
    • filter

      private void filter(String word, int caretpos)
    • getAfterLines

      static String[] getAfterLines(int afterContextLinesCount, int caretpos, String text)
    • getBeforeLines

      static String[] getBeforeLines(int beforeContextLinesCount, int caretpos, String word, String text)
    • calcCompletionPosition

      private int calcCompletionPosition()
    • debugln

      private void debugln(String s)
    • createModel

      private static ListModel createModel(CompletionItem[] listData)
    • setKeywords

      private void setKeywords(CompletionItem[] keywords)
    • setKeywordsImpl

      private void setKeywordsImpl(CompletionItem[] lkeywords)
    • deductSize

      private void deductSize(JFrame ff)
    • apply

      private void apply()
    • dispose

      public void dispose()
      Needed to clean up all the listeners all the windows are disposed on every hide, so it is not mandatory for closing of generic application
    • removeHelp

      private void removeHelp()
    • getSettings

      public CompletionSettings getSettings()
    • getBeforeFilteringNarrowing

      public ContextSuggestionsNarrower getBeforeFilteringNarrowing()
    • getAfterFilteringNarrowing

      public ContextSuggestionsNarrower getAfterFilteringNarrowing()
    • setBeforeFilteringNarrowing

      public void setBeforeFilteringNarrowing(ContextSuggestionsNarrower beforeFilteringNarrowing)
    • setAfterFilteringNarrowing

      public void setAfterFilteringNarrowing(ContextSuggestionsNarrower afterFilteringNarrowing)