Ignore:
Timestamp:
2016-08-01T21:17:23+02:00 (4 years ago)
Author:
simon04
Message:

Status report: distinguish +active vs. -inactive style/preset/rule entries

File:
1 edited

Legend:

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

    r10647 r10696  
    13771377    /**
    13781378     * Returns the list of loaded plugins as a {@code String} to be displayed in status report. Useful for bug reports.
    1379      * @return The list of loaded plugins (one plugin per line)
    1380      */
    1381     public static String getBugReportText() {
    1382         StringBuilder text = new StringBuilder();
    1383         List<String> pl = new LinkedList<>(Main.pref.getCollection("plugins", new LinkedList<String>()));
     1379     * @return The list of loaded plugins
     1380     */
     1381    public static Collection<String> getBugReportInformation() {
     1382        final Collection<String> pl = new TreeSet<>(Main.pref.getCollection("plugins", new LinkedList<>()));
    13841383        for (final PluginProxy pp : pluginList) {
    13851384            PluginInformation pi = pp.getPluginInformation();
     
    13881387                    ? pi.localversion : "unknown") + ')');
    13891388        }
    1390         Collections.sort(pl);
    1391         if (!pl.isEmpty()) {
    1392             text.append("Plugins:\n");
    1393         }
    1394         for (String s : pl) {
    1395             text.append("- ").append(s).append('\n');
    1396         }
    1397         return text.toString();
     1389        return pl;
    13981390    }
    13991391
Note: See TracChangeset for help on using the changeset viewer.