Module ij
Package ij.plugin

Class JavaScriptEvaluator

  • All Implemented Interfaces:
    PlugIn, Runnable

    public class JavaScriptEvaluator
    extends Object
    implements PlugIn, Runnable
    Implements the text editor's Macros/Run command, and the IJ.runMacroFile() method, when the file name ends with ".js".
    • Constructor Detail

      • JavaScriptEvaluator

        public JavaScriptEvaluator()
    • Method Detail

      • run

        public void run​(String script)
        Description copied from interface: PlugIn
        This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
        Specified by:
        run in interface PlugIn
      • run

        public void run()
        Specified by:
        run in interface Runnable