Changeset 10696 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2016-08-01T21:17:23+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r10647 r10696 1377 1377 /** 1378 1378 * 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<>())); 1384 1383 for (final PluginProxy pp : pluginList) { 1385 1384 PluginInformation pi = pp.getPluginInformation(); … … 1388 1387 ? pi.localversion : "unknown") + ')'); 1389 1388 } 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; 1398 1390 } 1399 1391
Note:
See TracChangeset
for help on using the changeset viewer.