Ignore:
Timestamp:
2009-01-23T22:36:04+01:00 (16 years ago)
Author:
stoecker
Message:

fixes for new plugin handling

Location:
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/PreferenceEditor.java

    r12991 r13332  
    1616import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
    1717import org.openstreetmap.josm.plugins.validator.util.Util;
    18 import org.openstreetmap.josm.plugins.validator.util.Util.Version;
    1918import org.openstreetmap.josm.tools.GBC;
    2019
     
    8988        testPane.setBorder(null);
    9089
    91         Version ver = Util.getVersion();
    9290        String description = tr("An OSM data validator that checks for common errors made by users and editor programs.");
    93         if( ver != null )
    94             description += "<br>" + tr("Version {0} - Last change at {1}", ver.revision, ver.time);
    9591        JPanel tab = gui.createPreferenceTab("validator", tr("Data validator"), description);
    9692        tab.add(testPane, GBC.eol().fill(GBC.BOTH));
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/util/Util.java

    r12778 r13332  
    3030    {
    3131        return Main.pref.getPreferencesDir() + "plugins/validator/";
    32     }
    33 
    34     /**
    35      * Returns the version
    36      * @return The version of the application
    37      */
    38     public static Version getVersion()
    39     {
    40         PluginInformation info = PluginInformation.getLoaded("validator");
    41         if( info == null )
    42             return null;
    43 
    44         return new Version(info.version, info.attr.get("Plugin-Date"));
    45     }
    46 
    47     /**
    48      * Utility class for displaying versions
    49      *
    50      * @author frsantos
    51      */
    52     public static class Version
    53     {
    54         /** The revision */
    55         public String revision;
    56         /** The build time */
    57         public String time;
    58 
    59         /**
    60          * Constructor
    61          * @param revision
    62          * @param time
    63          */
    64         public Version(String revision, String time)
    65         {
    66             this.revision = revision;
    67             this.time = time;
    68         }
    6932    }
    7033
Note: See TracChangeset for help on using the changeset viewer.