[josm-dev] restart JOSM

Matthias Julius lists at julius-net.net
Thu Dec 10 15:41:31 GMT 2009


Dirk Stöcker <openstreetmap at dstoecker.de> writes:

> On Thu, 10 Dec 2009, Dieter Muecke wrote:
>
>> Instead of restarting JOSM by hand after plugin update the code snippet 
>> below does it programmatically. It works on Mac OSX but before I submit 
>> a patch I would like know how do the same on Windows and Linux.
>
> Why do you want restarting JOSM after plugin update?
>
> The plugin update on startup is done before loading the plugins, so 
> already the new plugins are loaded.
>
> And in any other case programmatically restarting is a bad idea as well 
> (webstart, applet, security issues, ...).

Plus, unless the current state (loaded data, zoom etc.) survives the
restart the benefit for the user is negligible.  In my view that's not
worth jumping through hoops to make it work on all platforms.

Better would be if there was a way to reload plugins without having to
restart JOSM.

Matthias




More information about the josm-dev mailing list