Changes between Version 21 and Version 22 of DevelopersGuide/DevelopingPlugins
- Timestamp:
- 2007-07-20T11:11:58+02:00 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/DevelopingPlugins
v21 v22 49 49 50 50 == Main.ds == 51 The data layer . Since JOSM currently supports only one data layer, this holds the complete osm data in JOSM. In the future, here will bethe currently active (selected layer) data set stored instead.51 The data layer of the current edit layer, which is usually the current selected layer in the layer list. 52 52 53 53 == Main.proj == … … 60 60 61 61 == Main.main.editLayer() == 62 Call this to get the current OsmDataLayer. If there is no such layer, an empty will be created !62 Call this to get the current OsmDataLayer. If there is no such layer, an empty will be created, so you never get null returned from this. 63 63 64 == Plugin.getPluginDir() == 65 If you subclass from the plugin class (see above), then you can call this function to retrieve your plugindirectory where you can freely store/read data from. It is located at ~/.josm/plugins/''youpluginname''64 == Plugin.getPluginDir() and Plugin.copy() == 65 If you subclass from the plugin class (see above), then you can call this functions to get your plugin directory or copy data into your plugin directory. This is a directory where you can freely store/read data from. It is located at ~/.josm/plugins/''youpluginname''. 66 66 67 67