Ignore:
Timestamp:
2016-07-24T13:13:18+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #13197 - bad use of method references instead of lambdas, causing graphical objects to be created in another thread than EDT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java

    r10616 r10621  
    138138        final Set<PrimitiveId> errs = mainTask.getMissingPrimitives();
    139139        if (errs != null && !errs.isEmpty())
    140             GuiHelper.runInEDTAndWait(reportProblemDialog(errs,
     140            GuiHelper.runInEDTAndWait(() -> reportProblemDialog(errs,
    141141                    trn("Object could not be downloaded", "Some objects could not be downloaded", errs.size()),
    142142                    trn("One object could not be downloaded.<br>",
     
    148148                    tr("missing objects:"),
    149149                    JOptionPane.ERROR_MESSAGE
    150                     )::showDialog);
     150                    ).showDialog());
    151151
    152152        // Warm about deleted primitives
     
    160160        }
    161161        if (!del.isEmpty())
    162             GuiHelper.runInEDTAndWait(reportProblemDialog(del,
     162            GuiHelper.runInEDTAndWait(() -> reportProblemDialog(del,
    163163                    trn("Object deleted", "Objects deleted", del.size()),
    164164                    trn(
     
    169169                    null,
    170170                    JOptionPane.WARNING_MESSAGE
    171             )::showDialog);
     171            ).showDialog());
    172172    }
    173173
Note: See TracChangeset for help on using the changeset viewer.