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 Summary
ConstructorsConstructorDescriptionConstructor, using the default Java code completions for QuPath.DefaultAutoCompletor(Collection<? extends AutoCompletions.Completion> completions) Constructor. -
Method Summary
Modifier 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
-
DefaultAutoCompletor
Constructor.- Parameters:
completions- optionally include specific code completions, or an empty list if no completions should be added.
-
DefaultAutoCompletor
public DefaultAutoCompletor()Constructor, using the default Java code completions for QuPath.
-
-
Method Details
-
addCompletion
-
addCompletions
-
addCompletions
-
getCompletions
Description copied from interface:ScriptAutoCompletorGet a list of possible auto-completions for the given text with the caret at the specified position.- Specified by:
getCompletionsin interfaceScriptAutoCompletor- Parameters:
text- the full textpos- the current caret position- Returns:
-