Action Tool

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

Action Tool

Phase GmbH
Hi,

I am working with IJ vers. 1.53g (Windows 10, 64 bit, 64 Bit Java) and encountered the following problem:

When launching a java plugin by click to Action Tool button, a Swing Dialog is opened for taking some input. However, occasionally that dialog is opened twice upon a single click. In Task Manager I can observe that obviously 2 new threads were started upon a single click. This behavior happens when the plugin is launched  by "doCommand" or "run" command. The Task Manager is properly counting down the number of threads when closing these dialogs.

When launching from menu "Plugins" only a single dialog is opened on any trial and of course there is only one new thread. This is also true for multiple cycles of opening and closing that dialog.

In one of the older IJ versions there was no such problem.

Is there any work-around?

Regards

Christian Kreutzfeldt
---------------------------
PHASE GmbH, Germany

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

Re: Action Tool

Peter Haub
Does this also happens if you execute the command in question from the
ImageJ macro window?
Or only if you access it through the Action Tool?

Regards,
Peter

On 15.01.2021 12:58, Christian Kreutzfeldt wrote:

> Hi,
>
> I am working with IJ vers. 1.53g (Windows 10, 64 bit, 64 Bit Java) and encountered the following problem:
>
> When launching a java plugin by click to Action Tool button, a Swing Dialog is opened for taking some input. However, occasionally that dialog is opened twice upon a single click. In Task Manager I can observe that obviously 2 new threads were started upon a single click. This behavior happens when the plugin is launched  by "doCommand" or "run" command. The Task Manager is properly counting down the number of threads when closing these dialogs.
>
> When launching from menu "Plugins" only a single dialog is opened on any trial and of course there is only one new thread. This is also true for multiple cycles of opening and closing that dialog.
>
> In one of the older IJ versions there was no such problem.
>
> Is there any work-around?
>
> Regards
>
> Christian Kreutzfeldt
> ---------------------------
> PHASE GmbH, Germany
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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