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 void
addCompletion
(AutoCompletions.Completion completion) protected void
addCompletions
(Collection<? extends AutoCompletions.Completion> completions) protected void
addCompletions
(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:ScriptAutoCompletor
Get a list of possible auto-completions for the given text with the caret at the specified position.- Specified by:
getCompletions
in interfaceScriptAutoCompletor
- Parameters:
text
- the full textpos
- the current caret position- Returns:
-