- Timestamp:
- 2020-01-20T01:16:42+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r15686 r15737 89 89 * Deprecated plugins that are removed on start 90 90 */ 91 static final Collection<DeprecatedPlugin> DEPRECATED_PLUGINS;91 static final List<DeprecatedPlugin> DEPRECATED_PLUGINS; 92 92 static { 93 93 String inCore = tr("integrated into main program"); … … 160 160 new DeprecatedPlugin("rapid", tr(replacedByPlugin, "MapWithAI")) 161 161 ); 162 Collections.sort(DEPRECATED_PLUGINS); 162 163 } 163 164 … … 368 369 // notify user about removed deprecated plugins 369 370 // 371 JOptionPane.showMessageDialog( 372 parent, 373 getRemovedPluginsMessage(removedPlugins), 374 tr("Warning"), 375 JOptionPane.WARNING_MESSAGE 376 ); 377 } 378 379 static String getRemovedPluginsMessage(Collection<DeprecatedPlugin> removedPlugins) { 370 380 StringBuilder sb = new StringBuilder(32); 371 381 sb.append("<html>") … … 383 393 } 384 394 sb.append("</ul></html>"); 385 JOptionPane.showMessageDialog( 386 parent, 387 sb.toString(), 388 tr("Warning"), 389 JOptionPane.WARNING_MESSAGE 390 ); 395 return sb.toString(); 391 396 } 392 397 … … 406 411 continue; 407 412 } 408 String msg = tr("<html>Loading of the plugin \"{0}\" was requested." 409 + "<br>This plugin is no longer developed and very likely will produce errors." 410 +"<br>It should be disabled.<br>Delete from preferences?</html>", 411 Utils.escapeReservedCharactersHTML(unmaintained)); 412 if (confirmDisablePlugin(parent, msg, unmaintained)) { 413 if (confirmDisablePlugin(parent, getUnmaintainedPluginMessage(unmaintained), unmaintained)) { 413 414 PreferencesUtils.removeFromList(Config.getPref(), "plugins", unmaintained); 414 415 plugins.remove(unmaintained); 415 416 } 416 417 } 418 } 419 420 static String getUnmaintainedPluginMessage(String unmaintained) { 421 return tr("<html>Loading of the plugin \"{0}\" was requested." 422 + "<br>This plugin is no longer developed and very likely will produce errors." 423 +"<br>It should be disabled.<br>Delete from preferences?</html>", 424 Utils.escapeReservedCharactersHTML(unmaintained)); 417 425 } 418 426
Note:
See TracChangeset
for help on using the changeset viewer.