Class DefaultAutoCompletor
java.lang.Object
qupath.lib.gui.scripting.completors.DefaultAutoCompletor
- All Implemented Interfaces:
ScriptAutoCompletor
- Direct Known Subclasses:
GroovyAutoCompletor
,PythonAutoCompletor
Default auto-completor for JVM-based languages, optionally including QuPath default imports.
- Since:
- v0.4.0
- Author:
- Melvin Gelbard, Pete Bankhead
-
Constructor Summary
-
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
public DefaultAutoCompletor(boolean addQuPathCompletions) Constructor.- Parameters:
addQuPathCompletions
- if true, add standard Java completions for core QuPath classes.
-
-
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:
-