Changes between Version 65 and Version 66 of DevelopersGuide/DevelopingPlugins
- Timestamp:
- 2013-06-10T17:40:08+02:00 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/DevelopingPlugins
v65 v66 157 157 The jar file must include 158 158 * the required java classes, including any additional libraries the plugin requires 159 * icons, deployed data files, and other resources 159 * icons (.png or .svg), deployed data files, and other resources 160 160 * a manifest file with JOSM specific entries (see below) 161 161 … … 172 172 ||'''Plugin-Early'''||optional||Can be set to {{{true}}}, in which case the plugin is loaded as early as possible, more specific before the GUI classes are loaded. This is usefull if your plugin alters the GUI or the JOSM-startup process in any way.|| 173 173 ||'''Plugin-Link'''||optional||Informational URL to a webpage or other information source about that plugin. Is also used in the [wiki:Plugins plugins] information page.|| 174 ||'''Plugin-Icon'''||optional||The icon to display in the plugin list. The image must be included in the plugin jar file. Give the full relative path, e.g. {{{images/preferences/plugin.png}}}[[BR]]The images are collected by a server script in regular intervals. The JOSM clients download the entire [http://josm.openstreetmap.de/plugin-icons.zip archive] along with the plugin list.|| 174 ||'''Plugin-Icon'''||optional||The icon to display in the plugin list. The image must be a .png or .svg file and be included in the plugin jar file. Give the full relative path, e.g. {{{images/preferences/plugin.png}}}[[BR]]The images are collected by a server script in regular intervals. The JOSM clients download the entire [http://josm.openstreetmap.de/plugin-icons.zip archive] along with the plugin list.|| 175 175 ||'''Plugin-Requires'''||optional||A list of other plugins which are required before plugin works. The list is separated by semi colons.|| 176 176 ||'''Plugin-Stage'''||optional||An number of the order relative to other plugins, when the plugin is loaded. Smaller numbers gets loaded first, so if you have conflicts with other plugins, you can increase or decrease this number to get some control on the loading order. Defaults to 50.|| … … 249 249 250 250 Just because I have been asked: JOSM is licensed under GPL and if any code is a "derived work" of JOSM, then it has to be under GPL too. It is my believe, that any JOSM-Plugin is a derived work of JOSM, so GPL is the only possible license for a JOSM-Plugin. If you want to include non-GPL code into a plugin, it has to be seperated from the classes that use JOSM. "Use" as in "import org.openstreetmap.josm...". See the 'Class-Path' - MANIFEST.MF attribute for a way to include other jar files. 251 252