Interface ICodeAutocompleteProvider
Namespace: OptimaJet.Workflow.Core.Runtime.CodeAutocomplete
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic interface ICodeAutocompleteProvider
Methods
AddVariablesToDefaultCompleterIfEnable(IEnumerable<AutocompleteVariable>)
add variables to DefaultAutocompleter. If DefaultAutocompleter is suppressed, nothing will happen. If DefaultAutocompleter is not initialized, init method will be called.
Declarationvoid AddVariablesToDefaultCompleterIfEnable(IEnumerable<AutocompleteVariable> variables)
Type | Name | Description |
---|---|---|
IEnumerable<AutocompleteVariable> | variables |
AddVariablesToDefaultCompleterIfEnable(string, Type)
add variables to DefaultAutocompleter. If DefaultAutocompleter is suppressed, nothing will happen. If DefaultAutocompleter is not initialized, init method will be called.
Declarationvoid AddVariablesToDefaultCompleterIfEnable(string varName, Type varType)
Type | Name | Description |
---|---|---|
string | varName | |
Type | varType |
Get(string, IEnumerable<string>, IEnumerable<AutocompleteVariable>)
Get autocomplete from all autocompleters that are already initialized
DeclarationHashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables)
Type | Name | Description |
---|---|---|
string | pattern | text for search (like "System.Thr") |
IEnumerable<string> | usings | list of usings (like "System", "System.Threading") |
IEnumerable<AutocompleteVariable> | variables | list of allow variables to autocomplete |
Type | Description |
---|---|
HashSet<AutocompleteItem> |
InitCodeAutocomletersThatNoInitialized()
Declarationvoid InitCodeAutocomletersThatNoInitialized()
RegisterCodeAutocompleters(params ICodeAutocompleter[])
add code autocompleters but not init
Declarationvoid RegisterCodeAutocompleters(params ICodeAutocompleter[] completers)
Type | Name | Description |
---|---|---|
OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.ICodeAutocompleter[] | completers |
RunInitTask()
Run task with ICodeAutocompleteProvider.InitCodeAutocomletersThatNoInitialized()
Declarationvoid RunInitTask()