Changes between Version 21 and Version 22 of DevelopersGuide/DevelopingPlugins


Ignore:
Timestamp:
2007-07-20T11:11:58+02:00 (18 years ago)
Author:
imi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/DevelopingPlugins

    v21 v22  
    4949
    5050== 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 be the currently active (selected layer) data set stored instead.
     51The data layer of the current edit layer, which is usually the current selected layer in the layer list.
    5252
    5353== Main.proj ==
     
    6060
    6161== Main.main.editLayer() ==
    62 Call this to get the current OsmDataLayer. If there is no such layer, an empty will be created!
     62Call 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.
    6363
    64 == Plugin.getPluginDir() ==
    65 If you subclass from the plugin class (see above), then you can call this function to retrieve your plugin directory where you can freely store/read data from. It is located at ~/.josm/plugins/''youpluginname''
     64== Plugin.getPluginDir() and Plugin.copy() ==
     65If 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''.
    6666
    6767