Changeset 10615 in josm for trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
- Timestamp:
- 2016-07-23T20:04:31+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
r10404 r10615 553 553 public void show(final String title, final String message, final int icon, final ProgressMonitor progressMonitor) { 554 554 try { 555 SwingUtilities.invokeAndWait(new Runnable() { 556 @Override public void run() { 557 ExtendedDialog dlg = new ExtendedDialog( 558 Main.parent, 559 title, 560 new String[] {tr("Cancel"), tr("Skip layer and continue")} 561 ); 562 dlg.setButtonIcons(new String[] {"cancel", "dialogs/next"}); 563 dlg.setIcon(icon); 564 dlg.setContent(message); 565 dlg.showDialog(); 566 cancel = dlg.getValue() != 2; 567 } 555 SwingUtilities.invokeAndWait(() -> { 556 ExtendedDialog dlg = new ExtendedDialog( 557 Main.parent, 558 title, 559 new String[] {tr("Cancel"), tr("Skip layer and continue")} 560 ); 561 dlg.setButtonIcons(new String[] {"cancel", "dialogs/next"}); 562 dlg.setIcon(icon); 563 dlg.setContent(message); 564 dlg.showDialog(); 565 cancel = dlg.getValue() != 2; 568 566 }); 569 567 } catch (InvocationTargetException | InterruptedException ex) {
Note:
See TracChangeset
for help on using the changeset viewer.