diff --git a/JOSM-CustomizePublicTransportStop.iml b/JOSM-CustomizePublicTransportStop.iml new file mode 100644 index 0000000..5e179a2 --- /dev/null +++ b/JOSM-CustomizePublicTransportStop.iml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateNewStopPointOperation.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateNewStopPointOperation.class index 4841986..35fad1e 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateNewStopPointOperation.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateNewStopPointOperation.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateStopAreaFromSelectedObjectOperation.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateStopAreaFromSelectedObjectOperation.class index 6d33423..1eb5f22 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateStopAreaFromSelectedObjectOperation.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CreateStopAreaFromSelectedObjectOperation.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopDialog.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopDialog.class index 0dd8cd3..2952601 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopDialog.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopDialog.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopPlugin.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopPlugin.class index 05adb07..1ec6973 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopPlugin.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizePublicTransportStopPlugin.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAction.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAction.class index 2162249..04d5ee1 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAction.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAction.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAreaOperation.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAreaOperation.class index 0571525..b4821d7 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAreaOperation.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/CustomizeStopAreaOperation.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/IStopAreaCustomizer.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/IStopAreaCustomizer.class index e8a8831..40e10a1 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/IStopAreaCustomizer.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/IStopAreaCustomizer.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/MessageBox.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/MessageBox.class index a4a0122..c5688aa 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/MessageBox.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/MessageBox.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/NearestWaySegment.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/NearestWaySegment.class index d2065e3..467dd31 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/NearestWaySegment.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/NearestWaySegment.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/OSMTags.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/OSMTags.class index bc7c816..49410bf 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/OSMTags.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/OSMTags.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopArea.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopArea.class index 7ef851e..d7d2d37 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopArea.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopArea.class differ diff --git a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopAreaOperationBase.class b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopAreaOperationBase.class index 7a8b308..feeceb2 100644 Binary files a/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopAreaOperationBase.class and b/bin/ru/rodsoft/openstreetmap/josm/plugins/CustomizePublicTransportStop/StopAreaOperationBase.class differ diff --git a/data/cs.lang b/data/cs.lang index a499086..5b423d2 100644 Binary files a/data/cs.lang and b/data/cs.lang differ diff --git a/data/fr.lang b/data/fr.lang index c405d5d..90aa5fd 100644 Binary files a/data/fr.lang and b/data/fr.lang differ diff --git a/data/hu.lang b/data/hu.lang index 5f11e97..30e7e25 100644 Binary files a/data/hu.lang and b/data/hu.lang differ diff --git a/data/id.lang b/data/id.lang index 5713993..87f6e88 100644 Binary files a/data/id.lang and b/data/id.lang differ diff --git a/data/it.lang b/data/it.lang index 29d7374..2c9c976 100644 Binary files a/data/it.lang and b/data/it.lang differ diff --git a/data/ko.lang b/data/ko.lang new file mode 100644 index 0000000..a21e7ed Binary files /dev/null and b/data/ko.lang differ diff --git a/data/lt.lang b/data/lt.lang index 93617f0..a068256 100644 Binary files a/data/lt.lang and b/data/lt.lang differ diff --git a/data/sk.lang b/data/sk.lang index 59b14d6..bc81dd5 100644 Binary files a/data/sk.lang and b/data/sk.lang differ diff --git a/data/uk.lang b/data/uk.lang index 68ac2b9..24be105 100644 Binary files a/data/uk.lang and b/data/uk.lang differ diff --git a/data/zh_CN.lang b/data/zh_CN.lang index 03f4126..e5e5903 100644 Binary files a/data/zh_CN.lang and b/data/zh_CN.lang differ diff --git a/data/zh_TW.lang b/data/zh_TW.lang index ada0eb0..f149612 100644 Binary files a/data/zh_TW.lang and b/data/zh_TW.lang differ diff --git a/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CreateNewStopPointOperation.java b/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CreateNewStopPointOperation.java index 8e47e35..db1a351 100644 --- a/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CreateNewStopPointOperation.java +++ b/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CreateNewStopPointOperation.java @@ -268,7 +268,7 @@ protected NearestWaySegment getNearestWaySegment(LatLon platformCoord, StopArea dist_waySegments = getNearestWaySegmentsImpl(p); for (Map.Entry> entry : dist_waySegments.entrySet()) { for (WaySegment waySegment : entry.getValue()) { - if (testWay(waySegment.way, stopArea)) { + if (testWay(waySegment.getWay(), stopArea)) { Node n = waySegment.getFirstNode(); Node lastN = waySegment.getSecondNode(); @@ -298,11 +298,11 @@ protected NearestWaySegment getNearestWaySegment(LatLon platformCoord, StopArea */ protected Node createNodeOnWay(Node newStopNode, WaySegment waySegment) { UndoRedoHandler.getInstance().add(new AddCommand(MainApplication.getLayerManager().getEditDataSet(), newStopNode)); - List wayNodes = waySegment.way.getNodes(); - wayNodes.add(waySegment.lowerIndex + 1, newStopNode); - Way newWay = new Way(waySegment.way); + List wayNodes = waySegment.getWay().getNodes(); + wayNodes.add(waySegment.getLowerIndex() + 1, newStopNode); + Way newWay = new Way(waySegment.getWay()); newWay.setNodes(wayNodes); - UndoRedoHandler.getInstance().add(new ChangeCommand(waySegment.way, newWay)); + UndoRedoHandler.getInstance().add(new ChangeCommand(waySegment.getWay(), newWay)); return newStopNode; } diff --git a/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CustomizeStopAreaOperation.java b/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CustomizeStopAreaOperation.java index abb4b1c..0c4cebf 100644 --- a/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CustomizeStopAreaOperation.java +++ b/src/org/openstreetmap/josm/plugins/customizepublictransportstop/CustomizeStopAreaOperation.java @@ -252,7 +252,7 @@ else if (isFirst && !stopArea.isBusStation) commands = assignTag(commands, target, OSMTags.AREA_TAG, stopArea.isArea ? OSMTags.YES_TAG_VALUE : null, OSMTags.NO_TAG_VALUE, stopArea.isSetDefaultValues); commands = assignTag(commands, target, OSMTags.LAYER_TAG, - null == stopArea.layer || "0".equals(stopArea.layer) ? null : stopArea.service); + null == stopArea.layer || "0".equals(stopArea.layer) ? null : stopArea.layer); commands = assignTag(commands, target, OSMTags.SURFACE_TAG, null == stopArea.surface || OSMTags.UNKNOWN_TAG_VALUE.equals(stopArea.surface) ? null : stopArea.surface,