Changeset 35269 in osm for applications/editors/josm/plugins/opendata/src/org/openstreetmap
- Timestamp:
- 2020-01-11T16:18:11+01:00 (5 years ago)
- 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 51 51 import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation; 52 52 import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils; 53 import org.openstreetmap.josm.tools.ImageProvider;54 53 import org.openstreetmap.josm.tools.Pair; 55 54 import org.openstreetmap.josm.tools.ResourceProvider; 55 56 /** 57 * Open data plugin. 58 */ 56 59 public final class OdPlugin extends Plugin { 57 60 … … 64 67 private OdDialog dialog; 65 68 66 public final List<AbstractImporter> importers = 69 public final List<AbstractImporter> importers = Arrays.asList(new AbstractImporter[] { 67 70 new CsvImporter(), new OdsImporter(), new XlsImporter(), // Tabular file formats 68 71 new KmlKmzImporter(), new ShpImporter(), new MifTabImporter(), new GmlImporter(), // Geographic file formats … … 74 77 public OdPlugin(PluginInformation info) { 75 78 super(info); 76 ImageProvider.addAdditionalClassLoaders(ModuleHandler.getResourceClassLoaders());79 ResourceProvider.addAdditionalClassLoaders(ModuleHandler.getResourceClassLoaders()); 77 80 if (instance == null) { 78 81 instance = this; -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java
r34452 r35269 23 23 import org.openstreetmap.josm.spi.preferences.Config; 24 24 25 /** 26 * Data set updater. 27 */ 25 28 public abstract class DataSetUpdater { 26 29 … … 43 46 // Simplify ways geometries 44 47 for (Way w : dataSet.getWays()) { 45 SequenceCommand command = SimplifyWayAction. simplifyWay(w, 0.25);48 SequenceCommand command = SimplifyWayAction.createSimplifyCommand(w, 0.25); 46 49 if (command != null) { 47 50 command.executeCommand(); -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java
r34671 r35269 52 52 import org.openstreetmap.josm.tools.ImageProvider; 53 53 import org.openstreetmap.josm.tools.Logging; 54 import org.openstreetmap.josm.tools.ResourceProvider; 54 55 55 56 /** … … 289 290 ClassLoader moduleClassLoader = createClassLoader(toLoad); 290 291 sources.add(0, moduleClassLoader); 291 ImageProvider.addAdditionalClassLoader(moduleClassLoader);292 ResourceProvider.addAdditionalClassLoader(moduleClassLoader); 292 293 monitor.setTicksCount(toLoad.size()); 293 294 for (ModuleInformation info : toLoad) {
Note:
See TracChangeset
for help on using the changeset viewer.