Package org.kcc
Class KeywordBasedCodeCompletion
java.lang.Object
org.kcc.KeywordBasedCodeCompletion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ContextSuggestionsNarrower
private ContextSuggestionsNarrower
private final CaretListener
private boolean
private final FocusListener
private Point
private JFrame
private final KeyListener
private CompletionItem[]
private Pattern
private JFrame
private final JScrollPane
private final CompletionSettings
private final JTextArea
private final JLabel
private final JList<CompletionItem>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
apply()
private int
private JFrame
private static ListModel
createModel
(CompletionItem[] listData) private void
private void
deductSize
(JFrame ff) 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 applicationprivate void
ende()
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 String
getLastWord
(int caretpos) private void
proceed
(CaretEvent caretEvent) private void
proceed
(CaretEvent caretEvent, DocumentEvent documentEvent) private void
proceedArrow
(KeyEvent keyEvent) private void
void
setAfterFilteringNarrowing
(ContextSuggestionsNarrower afterFilteringNarrowing) void
setBeforeFilteringNarrowing
(ContextSuggestionsNarrower beforeFilteringNarrowing) void
private void
setKeywords
(CompletionItem[] keywords) private void
setKeywordsImpl
(CompletionItem[] lkeywords) private void
showHelp()
-
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
-