Changeset 32442 in osm for applications/editors


Ignore:
Timestamp:
2016-06-29T20:59:47+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/DirectDownload
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/DirectDownload/build.xml

    r31926 r32442  
    44    <property name="commit.message" value="Commit message"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7001"/>
     6    <property name="plugin.main.version" value="10279"/>
    77
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java

    r31934 r32442  
    44
    55import java.awt.event.ActionEvent;
    6 import java.io.InputStream;
    7 import java.net.URL;
    8 
    9 import javax.swing.JOptionPane;
    106
    117import org.openstreetmap.josm.Main;
     
    1511import org.openstreetmap.josm.gui.layer.GpxLayer;
    1612import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    17 import org.openstreetmap.josm.io.GpxReader;
    18 import org.openstreetmap.josm.io.OsmApi;
    1913import org.openstreetmap.josm.plugins.Plugin;
    2014import org.openstreetmap.josm.plugins.PluginInformation;
    21 import org.openstreetmap.josm.tools.Utils;
    22 import org.xml.sax.SAXException;
    2315
    2416public class DirectDownload extends Plugin {
     
    6052
    6153            if (data.hasRoutePoints() || data.hasTrackPoints()) {
    62                 Main.main.addLayer(gpxLayer);
     54                Main.getLayerManager().addLayer(gpxLayer);
    6355            }
    6456
     
    6658                MarkerLayer ml = new MarkerLayer(data, tr("Markers from {0}", track.filename), null, gpxLayer);
    6759                if (ml.data.size() > 0) {
    68                     Main.main.addLayer(ml);
     60                    Main.getLayerManager().addLayer(ml);
    6961                }
    7062            }
  • applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DownloadDataGui.java

    r31934 r32442  
    66import java.awt.Component;
    77import java.awt.Dimension;
    8 import java.net.URL;
    98import java.util.ArrayList;
    10 import java.util.LinkedList;
    119import java.util.List;
    1210
     
    1412import javax.swing.DefaultListSelectionModel;
    1513import javax.swing.JLabel;
    16 import javax.swing.JOptionPane;
    1714import javax.swing.JPanel;
    1815import javax.swing.JScrollPane;
     
    2623import javax.swing.table.TableCellRenderer;
    2724import javax.swing.table.TableColumn;
    28 import javax.xml.parsers.ParserConfigurationException;
    29 import javax.xml.parsers.SAXParser;
    30 import javax.xml.parsers.SAXParserFactory;
    3125
    3226import org.openstreetmap.josm.Main;
    3327import org.openstreetmap.josm.gui.ExtendedDialog;
    34 import org.openstreetmap.josm.io.OsmApi;
    35 import org.xml.sax.Attributes;
    36 import org.xml.sax.SAXException;
    37 import org.xml.sax.helpers.DefaultHandler;
    3828
    3929public class DownloadDataGui extends ExtendedDialog {
Note: See TracChangeset for help on using the changeset viewer.