specifically block command recording

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

specifically block command recording

gankaku
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

--

CEO: Dr. rer. nat. Jan Brocher
phone:  +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail: [hidden email]
info: [hidden email]
inquiries: [hidden email]
web: www.biovoxxel.de

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: specifically block command recording

gankaku
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
Reply | Threaded
Open this post in threaded view
|

Re: specifically block command recording

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by gankaku
On Jul 7, 2014, at 6:53 AM, 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.

The latest ImageJ daily build (1.49d12) fixes a bug that caused RoiManager methods called from plugins to be recorded.

-wayne

> 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
>
> --
>
> CEO: Dr. rer. nat. Jan Brocher
> phone:  +49 (0)6234 917 03 39
> mobile: +49 (0)176 705 746 81
> e-mail: [hidden email]
> info: [hidden email]
> inquiries: [hidden email]
> web: www.biovoxxel.de
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: specifically block command recording

gankaku
Hi Wayne,

Thanks for your reply and the fix. Nevertheless, I think that in some
specific situations it might be desired to record those methods, so I
wouldn't completely block it. If someone (like in my case) doesn't want to
record something he/she still can block recording by setting the field
"Recorder.record" to false.
I guess this might give more flexibility but correct me if I am wrong here.

Thanks anyway for addressing the issue.

regards,
Jan


2014-07-07 16:12 GMT+02:00 Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]>:

> On Jul 7, 2014, at 6:53 AM, 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.
>
> The latest ImageJ daily build (1.49d12) fixes a bug that caused RoiManager
> methods called from plugins to be recorded.
>
> -wayne
>
> > 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
> >
> > --
> >
> > CEO: Dr. rer. nat. Jan Brocher
> > phone:  +49 (0)6234 917 03 39
> > mobile: +49 (0)176 705 746 81
> > e-mail: [hidden email]
> > info: [hidden email]
> > inquiries: [hidden email]
> > web: www.biovoxxel.de
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--

CEO: Dr. rer. nat. Jan Brocher
phone:  +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail: [hidden email]
info: [hidden email]
inquiries: [hidden email]
web: www.biovoxxel.de

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html