Changeset 33568 in osm for applications/editors/josm/plugins/pbf/src
- Timestamp:
- 2017-08-27T20:20:53+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/PbfPlugin.java
r33241 r33568 2 2 package org.openstreetmap.josm.plugins.pbf; 3 3 4 import org.openstreetmap.josm.Main;5 4 import org.openstreetmap.josm.actions.ExtensionFileFilter; 5 import org.openstreetmap.josm.gui.MainApplication; 6 6 import org.openstreetmap.josm.io.OverpassDownloadReader; 7 7 import org.openstreetmap.josm.io.OverpassDownloadReader.OverpassOutpoutFormat; … … 30 30 ExtensionFileFilter.addExporter(new PbfExporter()); 31 31 // Allow JOSM to download remote *.osm.pbf files 32 Main .main.menu.openLocation.addDownloadTaskClass(DownloadPbfTask.class);32 MainApplication.getMenu().openLocation.addDownloadTaskClass(DownloadPbfTask.class); 33 33 // Alow JOSM to download PBF data from Overpass API 34 34 OverpassDownloadReader.registerOverpassOutpoutFormatReader(OverpassOutpoutFormat.PBF, PbfReader.class); -
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/action/DownloadPbfTask.java
r32859 r33568 6 6 import java.util.concurrent.Future; 7 7 8 import org.openstreetmap.josm.Main;9 8 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 10 9 import org.openstreetmap.josm.data.Bounds; 10 import org.openstreetmap.josm.gui.MainApplication; 11 11 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 12 12 import org.openstreetmap.josm.plugins.pbf.PbfConstants; … … 28 28 // We need submit instead of execute so we can wait for it to finish and get the error 29 29 // message if necessary. If no one calls getErrorMessage() it just behaves like execute. 30 return Main .worker.submit(downloadTask);30 return MainApplication.worker.submit(downloadTask); 31 31 } 32 32 -
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfExporter.java
r32859 r33568 7 7 import java.io.OutputStream; 8 8 9 import org.openstreetmap.josm.gui.io.importexport.OsmExporter; 9 10 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 10 import org.openstreetmap.josm.io.OsmExporter;11 11 import org.openstreetmap.josm.plugins.pbf.PbfConstants; 12 12 -
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfImporter.java
r32859 r33568 6 6 7 7 import org.openstreetmap.josm.data.osm.DataSet; 8 import org.openstreetmap.josm.gui.io.importexport.OsmImporter; 8 9 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 9 10 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 10 11 import org.openstreetmap.josm.io.CachedFile; 11 12 import org.openstreetmap.josm.io.IllegalDataException; 12 import org.openstreetmap.josm.io.OsmImporter;13 13 import org.openstreetmap.josm.plugins.pbf.PbfConstants; 14 14 -
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java
r33241 r33568 13 13 import java.util.Map; 14 14 15 import org.openstreetmap.josm.Main;16 15 import org.openstreetmap.josm.data.Bounds; 17 16 import org.openstreetmap.josm.data.DataSource; … … 31 30 import org.openstreetmap.josm.io.IllegalDataException; 32 31 import org.openstreetmap.josm.tools.CheckParameterUtil; 32 import org.openstreetmap.josm.tools.Logging; 33 33 34 34 import crosby.binary.BinaryParser; … … 82 82 ds.addDataSource(new DataSource(b, header.getSource())); 83 83 } else { 84 Main.error("Invalid Bounds: "+b);84 Logging.error("Invalid Bounds: "+b); 85 85 } 86 86 }
Note:
See TracChangeset
for help on using the changeset viewer.