Bugzilla – Bug 651 |
Using IJ.run() in preview triggers premature macro recording |
Last modified: 2013-08-17 16:23:23 CDT |
⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
Using IJ.run() in preview triggers premature macro recording |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
Created attachment 116 Example plugin (ExtendedPlugInFilter) to reproduce the bug. When using any IJ.run(imp, "...") command in the run method of an ExtendedPlugInFilter containing GenericDialog.addPreviewCheckbox(), the first activation of the preview checkbox triggers the command to be recorded in the macro recorder, without the parameters of the current dialog. To reproduce, put the attached file as Bug_Report.java into ./plugins/ or any subfolder, start Fiji (or run 'Help>Refresh Menus'), start macro recording via 'Plugins>Macros>Record...', and start 'Bug Report'. In the dialog asking for a number, a click on the preview checkbox triggers the premature recording: run("Bug Report"); while clicking on OK without using the preview triggers the correct recording: run("Bug Report", "number=1.00000"); Commenting out the last command 'IJ.run(imp, "Smooth", "");' leads to correct recording (only upon OK, not during preview). (Using up-to-date Fiji/ImageJ 1.48a)