Changes between Version 32 and Version 33 of DevelopersGuide/DevelopingPlugins


Ignore:
Timestamp:
2009-11-07T23:08:15+01:00 (16 years ago)
Author:
stoecker
Comment:

Cleanup

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/DevelopingPlugins

    v32 v33  
    2222It is recommended (but not required), that you subclass org.openstreetmap.josm.plugins.Plugin. This way you get some helper functions and always have the latest callback function signatures (see below) as hints in your baseclass to override them ;)
    2323
     24The required minimum in naming is one individual part in the path structure of you plugin class names. The path of the base class is used to detect the source of exceptions. So when you base class is my.example.class.MyPlugin, then "my.example.class" is used to detect your plugin code. All important parts of your plugin should use that and also it should be unique for the plugin (i.e. add at least one part with the name of your plugin).
    2425
    2526= Callbacks =
     
    7677   Gives the description of the plugin visible in the preferences page. For line breaks, you have to use <br>, ''not'' <br/> (blame Swing ;).
    7778 '''Author'''::
    78    An Email-Adress of the author of this plugin. This is used in the error report window, if an error is detected within the plugin code (there is a strange heuristic to guess whether an exception comes from a plugin).
     79   An Email-Adress of the author of this plugin. This is used in the error report window, if an error is detected within the plugin code.
    7980 '''Plugin-Date'''::
    8081   The creation date of the plugin in ISO format.