Changeset 10621 in josm
- Timestamp:
- 2016-07-24T13:13:18+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r10601 r10621 289 289 if (error != null) { 290 290 if (showNotif) { 291 GuiHelper.runInEDT( 291 GuiHelper.runInEDT(() -> 292 292 new Notification(error) 293 293 .setIcon(JOptionPane.INFORMATION_MESSAGE) 294 ::show);294 .show()); 295 295 } 296 296 return null; -
trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
r10608 r10621 232 232 changedDatasets.clear(); 233 233 if (PROP_NOTIFICATION.get() && !layersInfo.isEmpty()) { 234 displayNotification();234 GuiHelper.runInEDT(this::displayNotification); 235 235 } 236 236 } catch (RuntimeException t) { … … 243 243 244 244 protected void displayNotification() { 245 GuiHelper.runInEDT( 246 new Notification(tr("Your work has been saved automatically.")) 247 .setDuration(Notification.TIME_SHORT) 248 ::show); 245 new Notification(tr("Your work has been saved automatically.")) 246 .setDuration(Notification.TIME_SHORT) 247 .show(); 249 248 } 250 249 -
trunk/src/org/openstreetmap/josm/data/projection/datum/SevenParameterDatum.java
r8509 r10621 13 13 * - scale 14 14 * 15 * This method is described by EPSG as EPSG: :9606.15 * This method is described by EPSG as EPSG:9606. 16 16 * Also known as Bursa-Wolf. 17 17 */ -
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
r10616 r10621 138 138 final Set<PrimitiveId> errs = mainTask.getMissingPrimitives(); 139 139 if (errs != null && !errs.isEmpty()) 140 GuiHelper.runInEDTAndWait( reportProblemDialog(errs,140 GuiHelper.runInEDTAndWait(() -> reportProblemDialog(errs, 141 141 trn("Object could not be downloaded", "Some objects could not be downloaded", errs.size()), 142 142 trn("One object could not be downloaded.<br>", … … 148 148 tr("missing objects:"), 149 149 JOptionPane.ERROR_MESSAGE 150 ) ::showDialog);150 ).showDialog()); 151 151 152 152 // Warm about deleted primitives … … 160 160 } 161 161 if (!del.isEmpty()) 162 GuiHelper.runInEDTAndWait( reportProblemDialog(del,162 GuiHelper.runInEDTAndWait(() -> reportProblemDialog(del, 163 163 trn("Object deleted", "Objects deleted", del.size()), 164 164 trn( … … 169 169 null, 170 170 JOptionPane.WARNING_MESSAGE 171 ) ::showDialog);171 ).showDialog()); 172 172 } 173 173 -
trunk/src/org/openstreetmap/josm/io/NMEAImporter.java
r10616 r10621 75 75 .append("</html>"); 76 76 if (success) { 77 SwingUtilities.invokeLater( new Notification(77 SwingUtilities.invokeLater(() -> new Notification( 78 78 "<h3>" + tr("NMEA import success:") + "</h3>" + msg.toString()) 79 79 .setIcon(JOptionPane.INFORMATION_MESSAGE) 80 ::show);80 .show()); 81 81 } else { 82 82 HelpAwareOptionPane.showMessageDialogInEDT(
Note:
See TracChangeset
for help on using the changeset viewer.