Changeset 4907 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-02-07T21:35:45+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java
r4748 r4907 19 19 20 20 import javax.swing.JOptionPane; 21 import javax.swing.SwingUtilities; 21 22 22 23 import org.openstreetmap.josm.Main; … … 229 230 } 230 231 if (!errors.isEmpty()) { 231 StringBu ffer sb = new StringBuffer();232 final StringBuilder sb = new StringBuilder(); 232 233 for (Object error : errors) { 233 234 if (error instanceof String) { … … 241 242 sb.append("</ul>"); 242 243 243 JOptionPane.showMessageDialog(Main.parent, "<html>" 244 + tr("The following errors occurred during mass download: {0}", sb.toString()) + "</html>", 245 tr("Errors during download"), JOptionPane.ERROR_MESSAGE); 244 SwingUtilities.invokeLater(new Runnable() { 245 @Override 246 public void run() { 247 JOptionPane.showMessageDialog(Main.parent, "<html>" 248 + tr("The following errors occurred during mass download: {0}", sb.toString()) + "</html>", 249 tr("Errors during download"), JOptionPane.ERROR_MESSAGE); 250 } 251 }); 252 246 253 return; 247 254 } -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r4718 r4907 99 99 ((PleaseWaitProgressMonitor)progressMonitor).close(); 100 100 } 101 afterFinish(); 101 if (EventQueue.isDispatchThread()) { 102 afterFinish(); 103 } else { 104 EventQueue.invokeAndWait(new Runnable() { 105 public void run() { 106 afterFinish(); 107 } 108 }); 109 } 102 110 } 103 111 } catch (final Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.