Matze,

well done. just refined it a bit to make sure 
- no null values are added
- the default exit handler does not leave the class anymore, hence cannot be 
overwritten by a third party
.

..ede

On 11/17/2017 21:40, Matthias Scholz wrote:
> 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
> 
> 


------------------------------------------------------------------------------
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