Changeset 2560 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-12-01T21:28:51+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r2512 r2560 25 25 import javax.swing.JTable; 26 26 import javax.swing.ListSelectionModel; 27 import javax.swing.SwingUtilities; 27 28 import javax.swing.event.ListSelectionEvent; 28 29 import javax.swing.event.ListSelectionListener; … … 45 46 import org.openstreetmap.josm.gui.history.HistoryBrowserDialogManager; 46 47 import org.openstreetmap.josm.gui.history.HistoryLoadTask; 48 import org.openstreetmap.josm.tools.BugReportExceptionHandler; 47 49 import org.openstreetmap.josm.tools.ImageProvider; 48 50 import org.openstreetmap.josm.tools.Shortcut; … … 324 326 Runnable r = new Runnable() { 325 327 public void run() { 326 for (OsmPrimitive p : primitives) { 327 History h = HistoryDataSet.getInstance().getHistory(p.getPrimitiveId()); 328 if (h == null) { 329 continue; 328 try { 329 for (OsmPrimitive p : primitives) { 330 History h = HistoryDataSet.getInstance().getHistory(p.getPrimitiveId()); 331 if (h == null) { 332 continue; 333 } 334 HistoryBrowserDialogManager.getInstance().show(h); 330 335 } 331 HistoryBrowserDialogManager.getInstance().show(h); 336 } catch (final Exception e) { 337 SwingUtilities.invokeLater(new Runnable() { 338 public void run() { 339 BugReportExceptionHandler.handleException(e); 340 } 341 }); 332 342 } 343 333 344 } 334 345 };
Note:
See TracChangeset
for help on using the changeset viewer.