Changeset 15328 in josm for trunk


Ignore:
Timestamp:
2019-09-01T01:36:25+02:00 (5 years ago)
Author:
Don-vip
Message:

see #18103 - fix EDT violation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java

    r15318 r15328  
    2121import org.openstreetmap.josm.data.validation.TestError;
    2222import org.openstreetmap.josm.gui.Notification;
     23import org.openstreetmap.josm.gui.util.GuiHelper;
    2324import org.openstreetmap.josm.io.CachedFile;
    2425import org.openstreetmap.josm.tools.LanguageInfo;
     
    250251        } catch (ScriptException | NoSuchMethodException ex) {
    251252            Logging.error(ex);
    252             new Notification(Utils.getRootCause(ex).getMessage()).setIcon(JOptionPane.ERROR_MESSAGE).show();
     253            GuiHelper.runInEDT(() -> new Notification(Utils.getRootCause(ex).getMessage()).setIcon(JOptionPane.ERROR_MESSAGE).show());
    253254        }
    254255        return errors;
Note: See TracChangeset for help on using the changeset viewer.