Property | Type | Description | |
---|---|---|---|
OnInsertSuggestion | void | ||
RememberUseOf | void | ||
SetCurrentItems | void | ||
ShowSuggestionList | void |
Method | Description | |
---|---|---|
Close ( ) : void |
Closes the form
|
|
CorrectKeywordCase ( string keyword, int lastWordPos ) : string |
Returns a keyword from the autocompletion list with the correct case
|
|
FindInCompletionData ( string keyword, int position, bool dontCheckLine = false ) : List |
Find a list of items in the completion and return it Uses the position to filter the list the same way the autocompletion form would
|
|
FindInSavedItems ( string keyword, int line ) : |
try to match the keyword with an item in the autocomplete list
|
|
FindRankingOfDatabaseItem ( string displayText ) : int |
Find ranking of a database item
|
|
FindRankingOfParsedItem ( string displayText ) : int |
Find ranking of a parsed item
|
|
ForceClose ( ) : void |
Forces the form to close, only when leaving npp
|
|
GetCurrentSuggestion ( ) : |
returns the keyword currently selected in the completion list
|
|
IsMouseIn ( ) : bool |
Returns true if the cursor is within the form window
|
|
OnKeyDown ( Keys key ) : bool |
Passes the OnKey input of the CharAdded or w/e event to the auto completion form
|
|
OnShowCompleteSuggestionList ( ) : void |
Called from CTRL + Space shortcut
|
|
RefreshDynamicItems ( ) : void |
Method called when the event OnParseEnded triggers, i.e. when we just parsed the document and need to refresh the autocompletion
|
|
RefreshStaticItems ( ) : void |
this method should be called at the plugin's start and when we change the current database It refreshed the "static" items of the autocompletion : keywords, snippets, databases, tables, sequences
|
|
RememberUseOfDatabaseItem ( string displayText ) : void |
remember the use of a particular item in the completion list (for database items!)
|
|
RememberUseOfParsedItem ( string displayText ) : void |
remember the use of a particular item in the completion list (for dynamic items = parsed items)
|
|
UpdateAutocompletion ( ) : void |
Updates the CURRENT ITEMS LIST, handles the opening or the closing of the autocompletion form on key input, it is only called when the user adds or delete a char
|
Method | Description | |
---|---|---|
OnInsertSuggestion ( |
Method called by the form when the user accepts a suggestion (tab or enter or doubleclick)
|
|
RememberUseOf ( |
Increase ranking of a given CompletionItem
|
|
SetCurrentItems ( List |
Set the list of current items, handles the lock
|
|
ShowSuggestionList ( string keyword ) : void |
This function handles the display of the autocomplete form, create or update it
|
public static CorrectKeywordCase ( string keyword, int lastWordPos ) : string | ||
keyword | string | |
lastWordPos | int | |
return | string |
public static FindInCompletionData ( string keyword, int position, bool dontCheckLine = false ) : List |
||
keyword | string | |
position | int | |
dontCheckLine | bool | |
return | List |
public static FindInSavedItems ( string keyword, int line ) : |
||
keyword | string | |
line | int | |
return |
public static FindRankingOfDatabaseItem ( string displayText ) : int | ||
displayText | string | |
return | int |
public static FindRankingOfParsedItem ( string displayText ) : int | ||
displayText | string | |
return | int |
public static GetCurrentSuggestion ( ) : |
||
return |
public static OnShowCompleteSuggestionList ( ) : void | ||
return | void |
public static RememberUseOfDatabaseItem ( string displayText ) : void | ||
displayText | string | |
return | void |
public static RememberUseOfParsedItem ( string displayText ) : void | ||
displayText | string | |
return | void |
public static UpdateAutocompletion ( ) : void | ||
return | void |