How to close a pluginTool instance?

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

How to close a pluginTool instance?

jialei
Hi,
  I'm writing a imagej PlugInTool in java. If I click the tool item from menu again, another instance will be created and the listeners' overrides will be done twice every time. How to prevent this and make the tool in a singleton manner?

Thanks and regards,
Jia Lei