Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2009-08-30T19:07:24+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r1949 r2017 30 30 import org.openstreetmap.josm.data.osm.DataSet; 31 31 import org.openstreetmap.josm.gui.ExtendedDialog; 32 import org.openstreetmap.josm.gui.OptionPaneUtil;33 32 import org.openstreetmap.josm.gui.layer.GpxLayer; 34 33 import org.openstreetmap.josm.gui.layer.Layer; … … 169 168 } catch (IOException x) { 170 169 x.printStackTrace(); 171 OptionPane Util.showMessageDialog(Main.parent, tr("Error while exporting {0}:\n{1}", fn, x.getMessage()),170 JOptionPane.showMessageDialog(Main.parent, tr("Error while exporting {0}:\n{1}", fn, x.getMessage()), 172 171 tr("Error"), JOptionPane.ERROR_MESSAGE); 173 172 } … … 249 248 l.setVisibleRowCount(4); 250 249 l.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 251 int answer = OptionPane Util.showConfirmationDialog(250 int answer = JOptionPane.showConfirmDialog( 252 251 Main.parent, 253 252 new JScrollPane(l), -
trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java
r1747 r2017 7 7 import java.io.FileInputStream; 8 8 import java.io.FileOutputStream; 9 import java.io.IOException; 9 10 import java.io.InputStream; 10 import java.io.IOException;11 11 import java.net.URL; 12 12 import java.net.URLConnection; -
trunk/src/org/openstreetmap/josm/io/NMEAImporter.java
r1857 r2017 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.actions.ExtensionFileFilter; 14 import org.openstreetmap.josm.gui.OptionPaneUtil;15 14 import org.openstreetmap.josm.gui.layer.GpxLayer; 16 15 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; … … 49 48 msg += tr("Zero coordinates: ") + r.getParserZeroCoordinates(); 50 49 if (success) { 51 OptionPane Util.showMessageDialog(50 JOptionPane.showMessageDialog( 52 51 Main.parent, 53 52 msg, … … 55 54 JOptionPane.INFORMATION_MESSAGE); 56 55 } else { 57 OptionPane Util.showMessageDialog(Main.parent, msg, tr("NMEA import faliure!"), JOptionPane.ERROR_MESSAGE);56 JOptionPane.showMessageDialog(Main.parent, msg, tr("NMEA import faliure!"), JOptionPane.ERROR_MESSAGE); 58 57 } 59 58 } -
trunk/src/org/openstreetmap/josm/io/OsmExporter.java
r1949 r2017 18 18 import org.openstreetmap.josm.Main; 19 19 import org.openstreetmap.josm.actions.ExtensionFileFilter; 20 import org.openstreetmap.josm.gui.OptionPaneUtil;21 20 import org.openstreetmap.josm.gui.layer.Layer; 22 21 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 80 79 } catch (IOException e) { 81 80 e.printStackTrace(); 82 OptionPane Util.showMessageDialog(81 JOptionPane.showMessageDialog( 83 82 Main.parent, 84 83 tr("<html>An error occurred while saving.<br>Error is: <br>{0}</html>", e.getMessage()), … … 95 94 } catch (IOException e2) { 96 95 e2.printStackTrace(); 97 OptionPane Util.showMessageDialog(96 JOptionPane.showMessageDialog( 98 97 Main.parent, 99 98 tr("<html>An error occurred while restoring backup file.<br>Error is: <br>{0}</html>", e2.getMessage()), … … 112 111 dstStream = new FileOutputStream(dst); 113 112 } catch (FileNotFoundException e) { 114 OptionPane Util.showMessageDialog(Main.parent, tr("Could not back up file. Exception is: {0}", e113 JOptionPane.showMessageDialog(Main.parent, tr("Could not back up file. Exception is: {0}", e 115 114 .getMessage()), tr("Error"), JOptionPane.ERROR_MESSAGE); 116 115 return;
Note:
See TracChangeset
for help on using the changeset viewer.