Re: specifically block command recording
Posted by
gankaku on
Jul 07, 2014; 1:06pm
URL: http://imagej.273.s1.nabble.com/specifically-block-command-recording-tp5008602p5008605.html
Hi Michael,
Worked like a dream but in this case I had to set the public variable
" ij.plugin.frame.Recorder.record" to false and later back to true.
Thanks for the suggestion. Since the solution might be of interest for the
rest of the list, I forwarded your answer there.
kind regards,
Jan
2014-07-07 13:59 GMT+02:00 Michael Schmid <
[hidden email]>:
> Hi Jan,
>
> to disable macro recording for some steps, you could try setting the
> public variable ij.plugin.frame.Recorder.recordInMacros to false during
> these steps. It should work with recording of GenericDialogs; I have not
> tried it with the ROI Manager, however.
>
> Michael
> ________________________________________________________________
> On Jul 7, 2014, at 12:53, BioVoxxel wrote:
>
> > Hi all,
> >
> > I am trying to put the "Speckle Inspector" from the BioVoxxel Toolbox
> into
> > a recordable Java plugin. Currently, adding ROIs to the RoiManager is
> > recorded in addition to the standard setup of the plugin. Therefore, I
> > wanted to block these addition events from being written to the macro
> > recorder to avoid having 100++ recorded "roiManager("Add");" entries in
> the
> > recorder which obviously would not be very helpful.
> >
> > I was checking the list entries as well as IJ documentation and source
> code
> > to get any hint on how to do this but I got stuck here.
> >
> > Anybody a hint on how I can simply tell the Recorder to skip recording a
> > specific (or the next) method performed by the plugin? Surely it is
> simple
> > and straight forward but I am just overlooking it.
> >
> > For those using the tool, I also take whishes/inspirations to be included
> > in the plugin.
> >
> > Thanks in advance,
> > Jan
>
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html