Changeset 15374 in josm for trunk/src/org
- Timestamp:
- 2019-09-25T18:03:50+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r15227 r15374 309 309 310 310 /** 311 * Returns the list of currently installed and loaded plugins .312 * @return the list of currently installed and loaded plugins 311 * Returns the list of currently installed and loaded plugins, sorted by name. 312 * @return the list of currently installed and loaded plugins, sorted by name 313 313 * @since 10982 314 314 */ 315 315 public static List<PluginInformation> getPlugins() { 316 return pluginList.stream().map(PluginProxy::getPluginInformation).collect(Collectors.toList()); 316 return pluginList.stream().map(PluginProxy::getPluginInformation) 317 .sorted(Comparator.comparing(PluginInformation::getName)).collect(Collectors.toList()); 317 318 } 318 319 … … 1562 1563 public static JPanel getInfoPanel() { 1563 1564 JPanel pluginTab = new JPanel(new GridBagLayout()); 1564 for (final PluginProxy p : pluginList) { 1565 final PluginInformation info = p.getPluginInformation(); 1565 for (final PluginInformation info : getPlugins()) { 1566 1566 String name = info.name 1567 + (info. version != null && !info.version.isEmpty() ? " Version: " + info.version : "");1567 + (info.localversion != null && !info.localversion.isEmpty() ? " Version: " + info.localversion : ""); 1568 1568 pluginTab.add(new JLabel(name), GBC.std()); 1569 1569 pluginTab.add(Box.createHorizontalGlue(), GBC.std().fill(GBC.HORIZONTAL));
Note:
See TracChangeset
for help on using the changeset viewer.