Ignore:
Timestamp:
2016-05-11T20:34:42+02:00 (8 years ago)
Author:
donvip
Message:

fix EDT violation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheControl.java

    r32060 r32163  
    2020
    2121import org.openstreetmap.josm.Main;
     22import org.openstreetmap.josm.gui.util.GuiHelper;
    2223
    2324/**
     
    156157        } catch (Exception ex) {
    157158            Main.error(ex);
    158             JOptionPane.showMessageDialog(Main.parent, tr("Error loading file.\nProbably an old version of the cache file."), tr("Error"), JOptionPane.ERROR_MESSAGE);
     159            GuiHelper.runInEDTAndWait(new Runnable() {
     160                @Override
     161                public void run() {
     162                    JOptionPane.showMessageDialog(Main.parent, tr("Error loading file.\nProbably an old version of the cache file."),
     163                            tr("Error"), JOptionPane.ERROR_MESSAGE);
     164                }
     165            });
    159166            return false;
    160167        }
Note: See TracChangeset for help on using the changeset viewer.