Ignore:
Timestamp:
2020-01-11T16:18:11+01:00 (5 years ago)
Author:
donvip
Message:

update to JOSM 15419 + add unit test for Toulouse module

Location:
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/OdPlugin.java

    r35139 r35269  
    5151import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation;
    5252import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils;
    53 import org.openstreetmap.josm.tools.ImageProvider;
    5453import org.openstreetmap.josm.tools.Pair;
    55 
     54import org.openstreetmap.josm.tools.ResourceProvider;
     55
     56/**
     57 * Open data plugin.
     58 */
    5659public final class OdPlugin extends Plugin {
    5760
     
    6467    private OdDialog dialog;
    6568
    66     public final List<AbstractImporter> importers =  Arrays.asList(new AbstractImporter[]{
     69    public final List<AbstractImporter> importers = Arrays.asList(new AbstractImporter[] {
    6770            new CsvImporter(), new OdsImporter(), new XlsImporter(), // Tabular file formats
    6871            new KmlKmzImporter(), new ShpImporter(), new MifTabImporter(), new GmlImporter(), // Geographic file formats
     
    7477    public OdPlugin(PluginInformation info) {
    7578        super(info);
    76         ImageProvider.addAdditionalClassLoaders(ModuleHandler.getResourceClassLoaders());
     79        ResourceProvider.addAdditionalClassLoaders(ModuleHandler.getResourceClassLoaders());
    7780        if (instance == null) {
    7881            instance = this;
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java

    r34452 r35269  
    2323import org.openstreetmap.josm.spi.preferences.Config;
    2424
     25/**
     26 * Data set updater.
     27 */
    2528public abstract class DataSetUpdater {
    2629
     
    4346            // Simplify ways geometries
    4447            for (Way w : dataSet.getWays()) {
    45                 SequenceCommand command = SimplifyWayAction.simplifyWay(w, 0.25);
     48                SequenceCommand command = SimplifyWayAction.createSimplifyCommand(w, 0.25);
    4649                if (command != null) {
    4750                    command.executeCommand();
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java

    r34671 r35269  
    5252import org.openstreetmap.josm.tools.ImageProvider;
    5353import org.openstreetmap.josm.tools.Logging;
     54import org.openstreetmap.josm.tools.ResourceProvider;
    5455
    5556/**
     
    289290            ClassLoader moduleClassLoader = createClassLoader(toLoad);
    290291            sources.add(0, moduleClassLoader);
    291             ImageProvider.addAdditionalClassLoader(moduleClassLoader);
     292            ResourceProvider.addAdditionalClassLoader(moduleClassLoader);
    292293            monitor.setTicksCount(toLoad.size());
    293294            for (ModuleInformation info : toLoad) {
Note: See TracChangeset for help on using the changeset viewer.