diff --git a/opendata/build.xml b/opendata/build.xml index 76714ce361..fe2ba65357 100644 --- a/opendata/build.xml +++ b/opendata/build.xml @@ -1,6 +1,6 @@ - + diff --git a/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/AbstractDataSetHandler.java b/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/AbstractDataSetHandler.java index 7d7fce8e6d..14b16d5313 100644 --- a/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/AbstractDataSetHandler.java +++ b/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/AbstractDataSetHandler.java @@ -18,6 +18,7 @@ import org.openstreetmap.josm.data.osm.IPrimitive; import org.openstreetmap.josm.data.osm.OsmPrimitive; import org.openstreetmap.josm.data.preferences.sources.ExtendedSourceEntry; +import org.openstreetmap.josm.data.preferences.sources.SourceType; import org.openstreetmap.josm.io.AbstractReader; import org.openstreetmap.josm.plugins.opendata.core.OdConstants; import org.openstreetmap.josm.plugins.opendata.core.io.archive.ArchiveHandler; @@ -401,7 +402,7 @@ protected final ExtendedSourceEntry getMapPaintStyle(String displayName) { } protected final ExtendedSourceEntry getMapPaintStyle(String displayName, String fileNameWithoutExtension) { - return new ExtendedSourceEntry(displayName, OdConstants.PROTO_RSRC+//"/"+ + return new ExtendedSourceEntry(SourceType.MAP_PAINT_STYLE, displayName, OdConstants.PROTO_RSRC+//"/"+ this.getClass().getPackage().getName().replace(".", "/")+"/"+ fileNameWithoutExtension+"."+OdConstants.MAPCSS_EXT); } diff --git a/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java b/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java index 0a7a95d9b9..8c09695511 100644 --- a/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java +++ b/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java @@ -60,7 +60,7 @@ public static final void updateDataSet(DataSet dataSet, AbstractDataSetHandler h for (int i = 1; i < n; i++) { atNodes.add(w.getNode((int) ((i / n) * w.getNodesCount()))); } - SplitWayResult res = SplitWayAction.split(null, w, atNodes, Collections.emptyList()); + SplitWayResult res = SplitWayAction.split(w, atNodes, Collections.emptyList()); if (res != null) { res.getCommand().executeCommand(); } diff --git a/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/ProjectionChooser.java b/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/ProjectionChooser.java index 6b4bc1f522..e36319d10c 100644 --- a/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/ProjectionChooser.java +++ b/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/ProjectionChooser.java @@ -15,7 +15,8 @@ import javax.swing.JPanel; import org.openstreetmap.josm.data.Bounds; -import org.openstreetmap.josm.data.coor.CoordinateFormat; +import org.openstreetmap.josm.data.coor.conversion.CoordinateFormatManager; +import org.openstreetmap.josm.data.coor.conversion.ICoordinateFormat; import org.openstreetmap.josm.data.projection.Projection; import org.openstreetmap.josm.gui.ExtendedDialog; import org.openstreetmap.josm.gui.preferences.projection.ProjectionChoice; @@ -130,9 +131,9 @@ private void updateMeta(ProjectionChoice pc) { projectionCode.setText(proj.toCode()); projectionName.setText(proj.toString()); Bounds b = proj.getWorldBoundsLatLon(); - CoordinateFormat cf = CoordinateFormat.getDefaultFormat(); - bounds.setText(b.getMin().lonToString(cf)+", "+b.getMin().latToString(cf)+" : "+ - b.getMax().lonToString(cf)+", "+b.getMax().latToString(cf)); + ICoordinateFormat cf = CoordinateFormatManager.getDefaultFormat(); + bounds.setText(cf.lonToString(b.getMin())+", "+cf.latToString(b.getMin())+" : "+ + cf.lonToString(b.getMax())+", "+cf.latToString(b.getMax())); boolean showCode = true; boolean showName = false; if (pc instanceof SubPrefsOptions) {