Changes between Version 53 and Version 54 of DevelopersGuide/DevelopingPlugins


Ignore:
Timestamp:
2011-12-20T12:48:31+01:00 (14 years ago)
Author:
Harry Wood
Comment:

Was it disabled in Q2 2010 ?? + fix links to source 'plugin'->'plugins'

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/DevelopingPlugins

    v53 v54  
    3737=== A POJO as entry point ===
    3838
    39 The entry point for a JOSM plugin, the '''plugin main class''' is a Plain Old Java Object (POJO) which provides a constructor with one parameter of type [source:/trunk/src/org/openstreetmap/josm/plugin/PluginInformation.java PluginInformation].
     39The entry point for a JOSM plugin, the '''plugin main class''' is a Plain Old Java Object (POJO) which provides a constructor with one parameter of type [source:/trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java PluginInformation].
     40
    4041{{{
    4142#!java
     
    5354}}}
    5455
    55 You don't have to derive the plugin main class from a common superclass but currently you are '''recommended''' to derive it from [source:/trunk/src/org/openstreetmap/josm/plugin/Plugin.java org.openstreetmap.josm.plugin.Plugin].
     56You don't have to derive the plugin main class from a common superclass but currently you are '''recommended''' to derive it from [source:/trunk/src/org/openstreetmap/josm/plugins/Plugin.java org.openstreetmap.josm.plugin.Plugin].
    5657
    5758{{{
     
    7475}}}
    7576
    76 For legacy reasons, JOSM currently also allows POJOs with a no-arg constructor as plugin main classes. This approach is '''deprecated''' and will be disabled in Q2/2010. New plugins should provide a constructor with one parameter of type [source:/trunk/src/org/openstreetmap/josm/plugin/PluginInformation.java PluginInformation].
     77For legacy reasons, JOSM (may) currently also allow POJOs with a no-arg constructor as plugin main classes. This approach is '''deprecated''' and may have been disabled in Q2/2010. (''TODO was it disabled?'') New plugins should provide a constructor with one parameter of type [source:/trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java PluginInformation].
    7778
    7879=== Naming the plugin ===