Changeset 3073 in josm for trunk


Ignore:
Timestamp:
2010-03-03T19:20:28+01:00 (10 years ago)
Author:
bastiK
Message:

fixed: plugin version in status report is wrong. It should show the version from plugin manifest, but instead it displays the version that would be loaded in case of a plugin update. Cause: local version of plugin is overridden by the version of plugin that is already present, but instead of 'localversion' it uses 'version'.

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r3054 r3073  
    379379            Class<?> klass = plugin.loadClass(pluginClassLoader);
    380380            if (klass != null) {
    381                 System.out.println(tr("loading plugin ''{0}''", plugin.name));
     381                System.out.println(tr("loading plugin ''{0}'' ({1})", plugin.name, plugin.localversion));
    382382                pluginList.add(plugin.load(klass));
    383383            }
  • trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java

    r2830 r3073  
    166166                availablePlugins.put(info.name, info);
    167167            } else {
    168                 availablePlugins.get(info.name).localversion = info.version;
     168                availablePlugins.get(info.name).localversion = info.localversion;
    169169            }
    170170        }
Note: See TracChangeset for help on using the changeset viewer.