Search in sources :

Example 1 with Executer

use of ij.Executer in project GDSC-SMLM by aherbert.

the class SMLMTools method actionPerformed.

public void actionPerformed(ActionEvent e) {
    // Get the plugin from the button label and run it
    Button button = (Button) e.getSource();
    String commandName = button.getLabel();
    //String[] args = plugins.get(commandName);
    //IJ.runPlugIn(commandName, args[0], args[1]); // Only in IJ 1.47+
    //IJ.runPlugIn(args[0], args[1]);
    // Use the IJ executer to run in a background thread
    new Executer(commandName, null);
}
Also used : Button(java.awt.Button) Executer(ij.Executer)

Aggregations

Executer (ij.Executer)1 Button (java.awt.Button)1