Changeset 32290 in osm


Ignore:
Timestamp:
2016-06-16T23:24:44+02:00 (9 years ago)
Author:
donvip
Message:

update plugin to JOSM 10407

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

Legend:

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

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

    r30659 r32290  
    1111
    1212/**
    13  *
     13 * PBF plugin.
    1414 * @author Don-vip
    15  *
    1615 */
    1716public class PbfPlugin extends Plugin {
    1817
     18    /**
     19     * Constructs a new {@code PbfPlugin}.
     20     * @param info plugin information
     21     */
    1922    public PbfPlugin(PluginInformation info) {
    2023        super(info);
    2124        // Allow JOSM to import *.osm.pbf files
    22         ExtensionFileFilter.importers.add(new PbfImporter());
     25        ExtensionFileFilter.addImporter(new PbfImporter());
    2326        // Allow JOSM to export *.osm.pbf files
    24         ExtensionFileFilter.exporters.add(new PbfExporter());
     27        ExtensionFileFilter.addExporter(new PbfExporter());
    2528        // Allow JOSM to download remote *.osm.pbf files
    2629        Main.main.menu.openLocation.addDownloadTaskClass(DownloadPbfTask.class);
Note: See TracChangeset for help on using the changeset viewer.