Re: More GenericDialog fun
Posted by
Michael Schmid on
May 11, 2010; 12:29pm
URL: http://imagej.273.s1.nabble.com/More-GenericDialog-fun-tp3688333p3688334.html
Hi Michael,
this cannot be a general problem with DialogListeners; most filters
and some other functions in ImageJ use a DialogListener and get
recorded.
Maybe your DialogListener causes an exception? You could check it
like this:
try {
... DialogListener code ...
}
catch (Exception e) { IJ.log("Exception in DialogListener "+e); }
Michael
________________________________________________________________
On 11 May 2010, at 13:12, Michael Doube wrote:
> Hi all
>
> Thanks for your very useful comments regarding layout.
>
> While messing around with layout, I noticed that GenericDialogs
> with a dialog listener, added with:
>
> gd.addDialogListener(this);
>
> just before:
>
> gd.showDialog();
>
> Do not have their options recorded by the Macro Recorder.
>
> Commenting out gd.addDialogListener(this); restores macro
> recordability.
>
> Is this a known issue, and if so, how can I have dialog listeners
> while maintaining macro recordability?
>
> Michael