Class KeywordBasedCodeCompletion
java.lang.Object
org.kcc.KeywordBasedCodeCompletion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ContextSuggestionsNarrowerprivate ContextSuggestionsNarrowerprivate final CaretListenerprivate booleanprivate final FocusListenerprivate Pointprivate JFrameprivate final KeyListenerprivate CompletionItem[]private Patternprivate JFrameprivate final JScrollPaneprivate final CompletionSettingsprivate final JTextAreaprivate final JLabelprivate final JList<CompletionItem> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapply()private intprivate JFrameprivate static ListModelcreateModel(CompletionItem[] listData) private voidprivate voiddeductSize(JFrame ff) voiddispose()Needed to clean up all the listeners all the windows are disposed on every hide, so it is not mandatory for closing of generic applicationprivate voidende()private void(package private) static String[]getAfterLines(int afterContextLinesCount, int caretpos, String text) (package private) static String[]getBeforeLines(int beforeContextLinesCount, int caretpos, String word, String text) private StringgetLastWord(int caretpos) private voidproceed(CaretEvent caretEvent) private voidproceed(CaretEvent caretEvent, DocumentEvent documentEvent) private voidproceedArrow(KeyEvent keyEvent) private voidvoidsetAfterFilteringNarrowing(ContextSuggestionsNarrower afterFilteringNarrowing) voidsetBeforeFilteringNarrowing(ContextSuggestionsNarrower beforeFilteringNarrowing) voidprivate voidsetKeywords(CompletionItem[] keywords) private voidsetKeywordsImpl(CompletionItem[] lkeywords) private voidshowHelp()
-
Field Details
-
source
-
settings
-
statusLabel
-
nondelimiter
-
keywords
-
popup
-
help
-
suggested
-
scroll
-
caretListenerToRemove
-
keyListenerToRemove
-
focusListenerToRemove
-
debug
private boolean debug -
futureLocation
-
afterFilteringNarrowing
-
beforeFilteringNarrowing
-
-
Constructor Details
-
KeywordBasedCodeCompletion
-
-
Method Details
-
showHelp
private void showHelp() -
createFrame
-
setCompletionsSet
-
proceedArrow
-
ende
private void ende() -
proceed
-
proceed
-
getLastWord
-
filter
-
getAfterLines
-
getBeforeLines
-
calcCompletionPosition
private int calcCompletionPosition() -
debugln
-
createModel
-
setKeywords
-
setKeywordsImpl
-
deductSize
-
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
-
getBeforeFilteringNarrowing
-
getAfterFilteringNarrowing
-
setBeforeFilteringNarrowing
-
setAfterFilteringNarrowing
-