Hi ede,

you have convinced me ;-) I've added some code for handling multiple ApplicationExitHandler's. The old behaviour was kept. But i have allowed me, to declare the old methods as deprecated. The ConnectionManager class have I adjusted.

Matthias
On 17.11.2017 12:20, Matthias Scholz wrote:
Hi,

are there any possibility/listener for a plugin to get informed if OJ is
closing? I need this in a plugin to close a connection to an external
application.

there is a workaround, see
   com.vividsolutions.jump.workbench.datastore.ConnectionManager() line 77

but actually that is something i really wanted to rework. maybe now is the 
time? what i would like to do is

1. keep the old behaviour, but make 
oldApplicationExitHandler.exitApplication(mainFrame); do nothing
2. add a new WorkbenchFrame.addApplicationExitHandler( handler ) that simply 
queues handlers in the workbenchframe and runs them one after another, but 
makes sure it's own exit handler is run last

would you mind adding something like that? if not using the workaround should 
suffice for your use case.

..ede

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--


_ __ ___ _________________________________ ___ __ _

Technologieconsulting
Matthias Scholz
Siebigeröder Str 17a
06308 Klostermansfeld

T +49 34772 34150
E m...@jammerhund.de
W www.openjump.de
_ __ ___ _________________________________ ___ __ _


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to