[josm-dev] questions about plugin loading

Bodo Meissner bodo at bodo-m.de
Sun Aug 15 19:32:02 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 15.08.2010 19:59, schrieb Dirk Stöcker:
> 
> http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins#ThemanifestfileforaJOSMplugin
> 
> See Plugin-Requires, Plugin-Stage and Plugin-Early.

Thank you for the link.

> Thought you can't use Plugin-Requires, as WMS-plugin should not depend
> on remote-control.

I agree. I think in wmsplugin I can use PluginHandler.getPlugin("remotecontrol") to check if remotecontrol is available.

> Easiest is probably to use "Plugin-Early" in remote-control.

I will use something like <attribute name="Plugin-Stage" value="20"/> for remotecontrol and <attribute name="Plugin-Stage" value="50"/> for wmsplugin an add some explanatory comments.
(I want to reserve Plugin-Early for plugins that really need it.)


Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkxoMqIACgkQnMz9fgzDSqf2NACfY40sD1UnsMV/rzxBFsUripk4
XscAn2ZUkbLWF5lxDvWgBVZVZ50l5Pg3
=bviz
-----END PGP SIGNATURE-----



More information about the josm-dev mailing list