Class DefaultAutoCompletor
java.lang.Object
qupath.lib.gui.scripting.completors.DefaultAutoCompletor
- All Implemented Interfaces:
- ScriptAutoCompletor
- Direct Known Subclasses:
- GroovyAutoCompletor,- ImageJMacroCompletor,- PythonAutoCompletor
Default auto-completor for JVM-based languages, optionally including QuPath default imports.
- Since:
- v0.4.0
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor, using the default Java code completions for QuPath.DefaultAutoCompletor(Collection<? extends AutoCompletions.Completion> completions) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCompletion(AutoCompletions.Completion completion) protected voidaddCompletions(Collection<? extends AutoCompletions.Completion> completions) protected voidaddCompletions(AutoCompletions.Completion... completions) getCompletions(String text, int pos) Get a list of possible auto-completions for the given text with the caret at the specified position.
- 
Constructor Details- 
DefaultAutoCompletorConstructor.- Parameters:
- completions- optionally include specific code completions, or an empty list if no completions should be added.
 
- 
DefaultAutoCompletorpublic DefaultAutoCompletor()Constructor, using the default Java code completions for QuPath.
 
- 
- 
Method Details- 
addCompletion
- 
addCompletions
- 
addCompletions
- 
getCompletionsDescription copied from interface:ScriptAutoCompletorGet a list of possible auto-completions for the given text with the caret at the specified position.- Specified by:
- getCompletionsin interface- ScriptAutoCompletor
- Parameters:
- text- the full text
- pos- the current caret position
- Returns:
 
 
-