Changeset 3131 in josm for trunk/src


Ignore:
Timestamp:
2010-03-13T23:42:49+01:00 (10 years ago)
Author:
bastiK
Message:

fixed: show version of installed plugin in the status report (and not the "ideal" version from the server plugin-list)

File:
1 edited

Legend:

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

    r3106 r3131  
    379379            Class<?> klass = plugin.loadClass(pluginClassLoader);
    380380            if (klass != null) {
    381                 System.out.println(tr("loading plugin ''{0}'' ({1})", plugin.name, plugin.localversion));
     381                System.out.println(tr("loading plugin ''{0}'' (version {1})", plugin.name, plugin.localversion));
    382382                pluginList.add(plugin.load(klass));
    383383            }
     
    911911        }
    912912        for (final PluginProxy pp : pluginList) {
    913             text += "Plugin "
    914                 + pp.getPluginInformation().name
    915                 + (pp.getPluginInformation().version != null && !pp.getPluginInformation().version.equals("") ? " Version: " + pp.getPluginInformation().version + "\n"
    916                         : "\n");
     913            text += "Plugin " + pp.getPluginInformation().name;
     914            String version = pp.getPluginInformation().localversion;
     915            text += version != null && !version.equals("") ? " (Version: " + version + ")\n"
     916                        : "\n";
    917917        }
    918918        return text;
Note: See TracChangeset for help on using the changeset viewer.