Ignore:
Timestamp:
2009-12-01T21:28:51+01:00 (14 years ago)
Author:
jttt
Message:

Fixed #4058 Relation history window does not show up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java

    r2512 r2560  
    2525import javax.swing.JTable;
    2626import javax.swing.ListSelectionModel;
     27import javax.swing.SwingUtilities;
    2728import javax.swing.event.ListSelectionEvent;
    2829import javax.swing.event.ListSelectionListener;
     
    4546import org.openstreetmap.josm.gui.history.HistoryBrowserDialogManager;
    4647import org.openstreetmap.josm.gui.history.HistoryLoadTask;
     48import org.openstreetmap.josm.tools.BugReportExceptionHandler;
    4749import org.openstreetmap.josm.tools.ImageProvider;
    4850import org.openstreetmap.josm.tools.Shortcut;
     
    324326            Runnable r = new Runnable() {
    325327                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);
    330335                        }
    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                        });
    332342                    }
     343
    333344                }
    334345            };
Note: See TracChangeset for help on using the changeset viewer.