Changeset 32587 in osm for applications
- Timestamp:
- 2016-07-06T15:00:13+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/Checker.java
r32585 r32587 57 57 58 58 if (rm.getMember().hasTag("public_transport", "stop_position")) { 59 if (!rm.hasRole("stop") && !rm.hasRole("stop_entry_only") && !rm.hasRole("stop_exit_only")) {60 RelationMember newMember = new RelationMember("stop", rm.getMember());61 resultList.add(newMember);62 } else {59 // if (!rm.hasRole("stop") && !rm.hasRole("stop_entry_only") && !rm.hasRole("stop_exit_only")) { 60 // RelationMember newMember = new RelationMember("stop", rm.getMember()); 61 // resultList.add(newMember); 62 // } else { 63 63 resultList.add(rm); 64 }64 // } 65 65 } else { // if platform 66 if (!rm.hasRole("platform") && !rm.hasRole("platform_entry_only")67 && !rm.hasRole("platform_exit_only")) {68 RelationMember newMember = new RelationMember("platform", rm.getMember());69 resultList.add(newMember);70 } else {66 // if (!rm.hasRole("platform") && !rm.hasRole("platform_entry_only") 67 // && !rm.hasRole("platform_exit_only")) { 68 // RelationMember newMember = new RelationMember("platform", rm.getMember()); 69 // resultList.add(newMember); 70 // } else { 71 71 resultList.add(rm); 72 }72 // } 73 73 } 74 74 -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/WayChecker.java
r32585 r32587 7 7 import java.util.List; 8 8 9 import javax.swing.JOptionPane; 9 10 import javax.swing.SwingUtilities; 10 11 … … 24 25 import org.openstreetmap.josm.data.validation.Test; 25 26 import org.openstreetmap.josm.data.validation.TestError; 26 import org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor;27 27 import org.openstreetmap.josm.gui.dialogs.relation.RelationDialogManager; 28 import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor; 28 29 import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType; 29 30 import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionTypeCalculator; … … 298 299 SelectCommand command2 = new SelectCommand(primitivesToZoom); 299 300 commands.add(command2); 300 301 List<RelationMember> sortedRelationMembers = listStopMembers(originalRelation); 302 sortedRelationMembers.addAll(listNotStopMembers(originalRelation)); 301 // 302 // List<RelationMember> sortedRelationMembers = listStopMembers(originalRelation); 303 // sortedRelationMembers.addAll(listNotStopMembers(originalRelation)); 304 // originalRelation.setMembers(sortedRelationMembers); 303 305 304 306 List<OsmDataLayer> listOfLayers = Main.getLayerManager().getLayersOfType(OsmDataLayer.class); … … 307 309 308 310 final OsmDataLayer layerParameter = osmDataLayer; 309 final Relation relationParameter = new Relation(originalRelation); 310 relationParameter.setMembers(sortedRelationMembers); 311 // final Relation relationParameter = new Relation(originalRelation); 312 // relationParameter.setMembers(sortedRelationMembers); 313 final Relation relationParameter = originalRelation; 311 314 final Collection<OsmPrimitive> zoomParameter = primitivesToZoom; 312 315 … … 339 342 340 343 AutoScaleAction.zoomTo(primitives); 341 GenericRelationEditor editor = new GenericRelationEditor(layer, r, r.getMembersFor(primitives)); 342 RelationDialogManager.getRelationDialogManager().register(layer, r, editor); 344 RelationEditor editor = RelationEditor.getEditor(layer, r, r.getMembersFor(primitives)); 343 345 editor.setVisible(true); 344 346
Note:
See TracChangeset
for help on using the changeset viewer.