Changeset 1857 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2009-07-26T22:52:23+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NMEAImporter.java
r1637 r1857 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.actions.ExtensionFileFilter; 14 import org.openstreetmap.josm.gui.OptionPaneUtil; 14 15 import org.openstreetmap.josm.gui.layer.GpxLayer; 15 16 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; … … 42 43 private void showNmeaInfobox(boolean success, NmeaReader r) { 43 44 String msg = tr("Coordinates imported: ") + r.getNumberOfCoordinates() + "\n" + tr("Malformed sentences: ") 44 45 if (!success) // don't scare the user unneccessarily45 + r.getParserMalformed() + "\n" + tr("Checksum errors: ") + r.getParserChecksumErrors() + "\n"; 46 if (!success) { 46 47 msg += tr("Unknown sentences: ") + r.getParserUnknown() + "\n"; 48 } 47 49 msg += tr("Zero coordinates: ") + r.getParserZeroCoordinates(); 48 50 if (success) { 49 JOptionPane.showMessageDialog(Main.parent, msg, tr("NMEA import success"), JOptionPane.INFORMATION_MESSAGE); 51 OptionPaneUtil.showMessageDialog( 52 Main.parent, 53 msg, 54 tr("NMEA import success"), 55 JOptionPane.INFORMATION_MESSAGE); 50 56 } else { 51 JOptionPane.showMessageDialog(Main.parent, msg, tr("NMEA import faliure!"), JOptionPane.ERROR_MESSAGE);57 OptionPaneUtil.showMessageDialog(Main.parent, msg, tr("NMEA import faliure!"), JOptionPane.ERROR_MESSAGE); 52 58 } 53 59 }
Note:
See TracChangeset
for help on using the changeset viewer.