Changeset 31594 in osm
- Timestamp:
- 2015-10-04T22:32:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetTask.java
r30359 r31594 4 4 5 5 import java.util.List; 6 import java.util.concurrent.Callable; 6 7 7 8 import javax.swing.JOptionPane; … … 16 17 import org.openstreetmap.josm.gui.util.GuiHelper; 17 18 import org.openstreetmap.josm.io.OsmTransferException; 18 19 19 import reverter.ChangesetReverter.RevertType; 20 20 … … 46 46 if (!rev.hasMissingObjects()) return true; 47 47 if (!downloadConfirmed) { 48 downloadConfirmed = JOptionPane.showConfirmDialog(Main.parent, 49 tr("This changeset has objects that are not present in current dataset.\n" + 50 "It is needed to download them before reverting. Do you want to continue?"), 51 tr("Confirm"), JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION; 48 final Integer selectedOption = GuiHelper.runInEDTAndWaitAndReturn(new Callable<Integer>() { 49 @Override 50 public Integer call() throws Exception { 51 return JOptionPane.showConfirmDialog(Main.parent, 52 tr("This changeset has objects that are not present in current dataset.\n" + 53 "It is needed to download them before reverting. Do you want to continue?"), 54 tr("Confirm"), JOptionPane.YES_NO_OPTION); 55 } 56 }); 57 downloadConfirmed = selectedOption != null && selectedOption == JOptionPane.YES_OPTION; 52 58 if (!downloadConfirmed) return false; 53 59 }
Note:
See TracChangeset
for help on using the changeset viewer.