Ignore:
Timestamp:
2009-08-30T19:07:24+02:00 (15 years ago)
Author:
Gubaer
Message:

removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports

Location:
trunk/src/org/openstreetmap/josm/io
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxExporter.java

    r1949 r2017  
    3030import org.openstreetmap.josm.data.osm.DataSet;
    3131import org.openstreetmap.josm.gui.ExtendedDialog;
    32 import org.openstreetmap.josm.gui.OptionPaneUtil;
    3332import org.openstreetmap.josm.gui.layer.GpxLayer;
    3433import org.openstreetmap.josm.gui.layer.Layer;
     
    169168        } catch (IOException x) {
    170169            x.printStackTrace();
    171             OptionPaneUtil.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()),
    172171                    tr("Error"), JOptionPane.ERROR_MESSAGE);
    173172        }
     
    249248                l.setVisibleRowCount(4);
    250249                l.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    251                 int answer = OptionPaneUtil.showConfirmationDialog(
     250                int answer = JOptionPane.showConfirmDialog(
    252251                        Main.parent,
    253252                        new JScrollPane(l),
  • trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java

    r1747 r2017  
    77import java.io.FileInputStream;
    88import java.io.FileOutputStream;
     9import java.io.IOException;
    910import java.io.InputStream;
    10 import java.io.IOException;
    1111import java.net.URL;
    1212import java.net.URLConnection;
  • trunk/src/org/openstreetmap/josm/io/NMEAImporter.java

    r1857 r2017  
    1212import org.openstreetmap.josm.Main;
    1313import org.openstreetmap.josm.actions.ExtensionFileFilter;
    14 import org.openstreetmap.josm.gui.OptionPaneUtil;
    1514import org.openstreetmap.josm.gui.layer.GpxLayer;
    1615import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
     
    4948        msg += tr("Zero coordinates: ") + r.getParserZeroCoordinates();
    5049        if (success) {
    51             OptionPaneUtil.showMessageDialog(
     50            JOptionPane.showMessageDialog(
    5251                    Main.parent,
    5352                    msg,
     
    5554                    JOptionPane.INFORMATION_MESSAGE);
    5655        } else {
    57             OptionPaneUtil.showMessageDialog(Main.parent, msg, tr("NMEA import faliure!"), JOptionPane.ERROR_MESSAGE);
     56            JOptionPane.showMessageDialog(Main.parent, msg, tr("NMEA import faliure!"), JOptionPane.ERROR_MESSAGE);
    5857        }
    5958    }
  • trunk/src/org/openstreetmap/josm/io/OsmExporter.java

    r1949 r2017  
    1818import org.openstreetmap.josm.Main;
    1919import org.openstreetmap.josm.actions.ExtensionFileFilter;
    20 import org.openstreetmap.josm.gui.OptionPaneUtil;
    2120import org.openstreetmap.josm.gui.layer.Layer;
    2221import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    8079        } catch (IOException e) {
    8180            e.printStackTrace();
    82             OptionPaneUtil.showMessageDialog(
     81            JOptionPane.showMessageDialog(
    8382                    Main.parent,
    8483                    tr("<html>An error occurred while saving.<br>Error is: <br>{0}</html>", e.getMessage()),
     
    9594            } catch (IOException e2) {
    9695                e2.printStackTrace();
    97                 OptionPaneUtil.showMessageDialog(
     96                JOptionPane.showMessageDialog(
    9897                        Main.parent,
    9998                        tr("<html>An error occurred while restoring backup file.<br>Error is: <br>{0}</html>", e2.getMessage()),
     
    112111            dstStream = new FileOutputStream(dst);
    113112        } catch (FileNotFoundException e) {
    114             OptionPaneUtil.showMessageDialog(Main.parent, tr("Could not back up file. Exception is: {0}", e
     113            JOptionPane.showMessageDialog(Main.parent, tr("Could not back up file. Exception is: {0}", e
    115114                    .getMessage()), tr("Error"), JOptionPane.ERROR_MESSAGE);
    116115            return;
Note: See TracChangeset for help on using the changeset viewer.