All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mianalysis.mia.macro.MacroAutocomplete Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.6.12
Show newest version
// 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;

//     }
// }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy