Ignore:
Timestamp:
2017-08-27T20:20:53+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12671

Location:
applications/editors/josm/plugins/pbf
Files:
6 edited

Legend:

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

    r33241 r33568  
    33
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    5     <property name="plugin.main.version" value="11919"/>
     5    <property name="plugin.main.version" value="12671"/>
    66
    77    <property name="plugin.author" value="Don-vip"/>
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/PbfPlugin.java

    r33241 r33568  
    22package org.openstreetmap.josm.plugins.pbf;
    33
    4 import org.openstreetmap.josm.Main;
    54import org.openstreetmap.josm.actions.ExtensionFileFilter;
     5import org.openstreetmap.josm.gui.MainApplication;
    66import org.openstreetmap.josm.io.OverpassDownloadReader;
    77import org.openstreetmap.josm.io.OverpassDownloadReader.OverpassOutpoutFormat;
     
    3030        ExtensionFileFilter.addExporter(new PbfExporter());
    3131        // Allow JOSM to download remote *.osm.pbf files
    32         Main.main.menu.openLocation.addDownloadTaskClass(DownloadPbfTask.class);
     32        MainApplication.getMenu().openLocation.addDownloadTaskClass(DownloadPbfTask.class);
    3333        // Alow JOSM to download PBF data from Overpass API
    3434        OverpassDownloadReader.registerOverpassOutpoutFormatReader(OverpassOutpoutFormat.PBF, PbfReader.class);
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/action/DownloadPbfTask.java

    r32859 r33568  
    66import java.util.concurrent.Future;
    77
    8 import org.openstreetmap.josm.Main;
    98import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
    109import org.openstreetmap.josm.data.Bounds;
     10import org.openstreetmap.josm.gui.MainApplication;
    1111import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    1212import org.openstreetmap.josm.plugins.pbf.PbfConstants;
     
    2828        // We need submit instead of execute so we can wait for it to finish and get the error
    2929        // 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);
    3131    }
    3232
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfExporter.java

    r32859 r33568  
    77import java.io.OutputStream;
    88
     9import org.openstreetmap.josm.gui.io.importexport.OsmExporter;
    910import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    10 import org.openstreetmap.josm.io.OsmExporter;
    1111import org.openstreetmap.josm.plugins.pbf.PbfConstants;
    1212
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfImporter.java

    r32859 r33568  
    66
    77import org.openstreetmap.josm.data.osm.DataSet;
     8import org.openstreetmap.josm.gui.io.importexport.OsmImporter;
    89import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    910import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    1011import org.openstreetmap.josm.io.CachedFile;
    1112import org.openstreetmap.josm.io.IllegalDataException;
    12 import org.openstreetmap.josm.io.OsmImporter;
    1313import org.openstreetmap.josm.plugins.pbf.PbfConstants;
    1414
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java

    r33241 r33568  
    1313import java.util.Map;
    1414
    15 import org.openstreetmap.josm.Main;
    1615import org.openstreetmap.josm.data.Bounds;
    1716import org.openstreetmap.josm.data.DataSource;
     
    3130import org.openstreetmap.josm.io.IllegalDataException;
    3231import org.openstreetmap.josm.tools.CheckParameterUtil;
     32import org.openstreetmap.josm.tools.Logging;
    3333
    3434import crosby.binary.BinaryParser;
     
    8282                    ds.addDataSource(new DataSource(b, header.getSource()));
    8383                } else {
    84                     Main.error("Invalid Bounds: "+b);
     84                    Logging.error("Invalid Bounds: "+b);
    8585                }
    8686            }
Note: See TracChangeset for help on using the changeset viewer.