Changeset 32442 in osm for applications/editors
- Timestamp:
- 2016-06-29T20:59:47+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/DirectDownload
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectDownload/build.xml
r31926 r32442 4 4 <property name="commit.message" value="Commit message"/> 5 5 <!-- 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"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java
r31934 r32442 4 4 5 5 import java.awt.event.ActionEvent; 6 import java.io.InputStream;7 import java.net.URL;8 9 import javax.swing.JOptionPane;10 6 11 7 import org.openstreetmap.josm.Main; … … 15 11 import org.openstreetmap.josm.gui.layer.GpxLayer; 16 12 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 17 import org.openstreetmap.josm.io.GpxReader;18 import org.openstreetmap.josm.io.OsmApi;19 13 import org.openstreetmap.josm.plugins.Plugin; 20 14 import org.openstreetmap.josm.plugins.PluginInformation; 21 import org.openstreetmap.josm.tools.Utils;22 import org.xml.sax.SAXException;23 15 24 16 public class DirectDownload extends Plugin { … … 60 52 61 53 if (data.hasRoutePoints() || data.hasTrackPoints()) { 62 Main. main.addLayer(gpxLayer);54 Main.getLayerManager().addLayer(gpxLayer); 63 55 } 64 56 … … 66 58 MarkerLayer ml = new MarkerLayer(data, tr("Markers from {0}", track.filename), null, gpxLayer); 67 59 if (ml.data.size() > 0) { 68 Main. main.addLayer(ml);60 Main.getLayerManager().addLayer(ml); 69 61 } 70 62 } -
applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DownloadDataGui.java
r31934 r32442 6 6 import java.awt.Component; 7 7 import java.awt.Dimension; 8 import java.net.URL;9 8 import java.util.ArrayList; 10 import java.util.LinkedList;11 9 import java.util.List; 12 10 … … 14 12 import javax.swing.DefaultListSelectionModel; 15 13 import javax.swing.JLabel; 16 import javax.swing.JOptionPane;17 14 import javax.swing.JPanel; 18 15 import javax.swing.JScrollPane; … … 26 23 import javax.swing.table.TableCellRenderer; 27 24 import javax.swing.table.TableColumn; 28 import javax.xml.parsers.ParserConfigurationException;29 import javax.xml.parsers.SAXParser;30 import javax.xml.parsers.SAXParserFactory;31 25 32 26 import org.openstreetmap.josm.Main; 33 27 import 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;38 28 39 29 public class DownloadDataGui extends ExtendedDialog {
Note:
See TracChangeset
for help on using the changeset viewer.