Changeset 8938 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-10-24T14:58:06+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r8855 r8938 162 162 for (PluginInformation d : toUpdate) { 163 163 if (canceled) return; 164 progressMonitor.subTask(tr("Downloading Plugin {0}...", d.name)); 164 String message = tr("Downloading Plugin {0}...", d.name); 165 Main.info(message); 166 progressMonitor.subTask(message); 165 167 progressMonitor.worked(1); 166 168 File pluginFile = new File(pluginDir, d.name + ".jar.new"); -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r8928 r8938 232 232 233 233 /** 234 * All exceptions that occured during plugin loading 235 * @since 8938 236 */ 237 public static final Map<String, Exception> pluginLoadingExceptions = new HashMap<>(); 238 239 /** 234 240 * Global plugin ClassLoader. 235 241 */ … … 279 285 // notify user about removed deprecated plugins 280 286 // 281 StringBuilder sb = new StringBuilder( );287 StringBuilder sb = new StringBuilder(32); 282 288 sb.append("<html>") 283 289 .append(trn( … … 308 314 * 309 315 * Asks the user for every unmaintained plugin whether it should be removed. 316 * @param parent The parent Component used to display warning popup 310 317 * 311 318 * @param plugins the collection of plugins … … 316 323 continue; 317 324 } 318 String msg = 325 String msg = tr("<html>Loading of the plugin \"{0}\" was requested." 319 326 + "<br>This plugin is no longer developed and very likely will produce errors." 320 327 +"<br>It should be disabled.<br>Delete from preferences?</html>", unmaintained); … … 702 709 msg = null; 703 710 } catch (PluginException e) { 711 pluginLoadingExceptions.put(plugin.name, e); 704 712 Main.error(e); 705 713 if (e.getCause() instanceof ClassNotFoundException) { … … 708 716 } 709 717 } catch (Exception e) { 718 pluginLoadingExceptions.put(plugin.name, e); 710 719 Main.error(e); 711 720 } … … 1449 1458 } 1450 1459 1460 /** 1461 * Returns the set of deprecated and unmaintained plugins. 1462 * @return set of deprecated and unmaintained plugins names. 1463 * @since 8938 1464 */ 1465 public static Set<String> getDeprecatedAndUnmaintainedPlugins() { 1466 Set<String> result = new HashSet<>(DEPRECATED_PLUGINS.size() + UNMAINTAINED_PLUGINS.length); 1467 for (DeprecatedPlugin dp : DEPRECATED_PLUGINS) { 1468 result.add(dp.name); 1469 } 1470 result.addAll(Arrays.asList(UNMAINTAINED_PLUGINS)); 1471 return result; 1472 } 1473 1451 1474 private static class UpdatePluginsMessagePanel extends JPanel { 1452 1475 private JMultilineLabel lblMessage;
Note:
See TracChangeset
for help on using the changeset viewer.