io.github.mianalysis.mia.macro.MacroAutocomplete Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mia-core Show documentation
Show all versions of mia-core Show documentation
ModularImageAnalysis (MIA) is an ImageJ plugin which provides a modular framework for assembling image and object analysis workflows. Detected objects can be transformed, filtered, measured and related. Analysis workflows are batch-enabled by default, allowing easy processing of high-content datasets.
// package io.github.mianalysis.mia.macro;
// import net.imagej.legacy.plugin.MacroExtensionAutoCompletionPlugin;
// import org.fife.ui.autocomplete.BasicCompletion;
// import org.fife.ui.autocomplete.CompletionProvider;
// import org.scijava.plugin.Plugin;
// import java.util.ArrayList;
// import java.util.List;
// @Plugin(type = MacroExtensionAutoCompletionPlugin.class)
// public class MacroAutocomplete implements MacroExtensionAutoCompletionPlugin {
// @Override
// public List getCompletions(CompletionProvider completionProvider) {
// ArrayList completions = new ArrayList<>();
// ArrayList macroOperations = MacroHandler.getMacroHandler().getMacroOperations();
// for (MacroOperation macroOperation:macroOperations) {
// String name = macroOperation.getName();
// String argDescription = macroOperation.getArgumentsDescription();
// String description = macroOperation.getDescription();
// if (name == null) name = "";
// if (argDescription == null) argDescription = "";
// if (description == null) description = "";
// String command = "Ext."+name+" ("+argDescription+")";
// completions.add(new BasicCompletion(completionProvider,command,null,description));
// }
// return completions;
// }
// }