Changeset 5468 in josm
- Timestamp:
- 2012-08-21T21:40:47+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r5140 r5468 59 59 } 60 60 } 61 61 62 62 private PluginPreference() { 63 63 super("plugin", tr("Plugins"), tr("Configure available plugins.")); … … 74 74 downloaded.size(), 75 75 downloaded.size() 76 )); 76 )); 77 77 sb.append("<ul>"); 78 78 for(PluginInformation pi: downloaded) { … … 87 87 failed.size(), 88 88 failed.size() 89 )); 89 )); 90 90 sb.append("<ul>"); 91 91 for(PluginInformation pi: failed) { … … 156 156 } 157 157 } 158 ); 158 ); 159 159 160 160 pnl.add(spPluginPreferences, BorderLayout.CENTER); … … 194 194 tr("Accept the new plugin sites and close the dialog"), 195 195 null /* no special help topic */ 196 ), 197 new ButtonSpec( 198 tr("Cancel"), 199 ImageProvider.get("cancel"), 200 tr("Close the dialog"), 201 null /* no special help topic */ 202 ) 196 ), 197 new ButtonSpec( 198 tr("Cancel"), 199 ImageProvider.get("cancel"), 200 tr("Close the dialog"), 201 null /* no special help topic */ 202 ) 203 203 }; 204 204 PluginConfigurationSitesPanel pnl = new PluginConfigurationSitesPanel(); … … 213 213 options[0], 214 214 null /* no help topic */ 215 ); 215 ); 216 216 if (answer != 0 /* OK */) 217 217 return; … … 323 323 !failed.isEmpty() ? JOptionPane.WARNING_MESSAGE : JOptionPane.INFORMATION_MESSAGE, 324 324 HelpUtil.ht("/Preferences/Plugins") 325 ); 325 ); 326 326 } 327 327 328 328 protected void alertNothingToUpdate() { 329 HelpAwareOptionPane.showOptionDialog( 330 pnlPluginPreferences, 331 tr("All installed plugins are up to date. JOSM does not have to download newer versions."), 332 tr("Plugins up to date"), 333 JOptionPane.INFORMATION_MESSAGE, 334 null // FIXME: provide help context 335 ); 329 try { 330 SwingUtilities.invokeAndWait(new Runnable() { 331 public void run() { 332 HelpAwareOptionPane.showOptionDialog( 333 pnlPluginPreferences, 334 tr("All installed plugins are up to date. JOSM does not have to download newer versions."), 335 tr("Plugins up to date"), 336 JOptionPane.INFORMATION_MESSAGE, 337 null // FIXME: provide help context 338 ); 339 }; 340 }); 341 } catch (Exception e) { 342 e.printStackTrace(); 343 } 336 344 } 337 345 … … 343 351 toUpdate, 344 352 tr("Update plugins") 345 ); 353 ); 346 354 // the async task for downloading plugin information 347 355 final ReadRemotePluginInformationTask pluginInfoDownloadTask = new ReadRemotePluginInformationTask(Main.pref.getPluginSites()); … … 456 464 tr("Enter URL"), 457 465 JOptionPane.QUESTION_MESSAGE 458 ); 466 ); 459 467 if (s != null) { 460 468 model.addElement(s); … … 470 478 tr("Warning"), 471 479 JOptionPane.WARNING_MESSAGE 472 ); 480 ); 473 481 return; 474 482 } … … 481 489 null, 482 490 list.getSelectedValue() 483 ); 491 ); 484 492 if (s != null) { 485 493 model.setElementAt(s, list.getSelectedIndex()); … … 495 503 tr("Warning"), 496 504 JOptionPane.WARNING_MESSAGE 497 ); 505 ); 498 506 return; 499 507 }
Note:
See TracChangeset
for help on using the changeset viewer.