Changeset 33347 in osm for applications/editors/josm/plugins/pt_assistant/src/org
- Timestamp:
- 2017-05-31T10:40:14+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
r33345 r33347 18 18 import org.openstreetmap.josm.data.validation.Test; 19 19 import org.openstreetmap.josm.data.validation.TestError; 20 import org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor;21 20 import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor; 22 21 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 133 132 && testError.getCode() != PTAssistantValidatorTest.ERROR_CODE_DIRECTION 134 133 && testError.getCode() != PTAssistantValidatorTest.ERROR_CODE_CONSTRUCTION 135 && testError.getCode() != PTAssistantValidatorTest.ERROR_CODE_ROAD_TYPE) { 134 && testError.getCode() != PTAssistantValidatorTest.ERROR_CODE_ROAD_TYPE 135 && testError.getCode() != PTAssistantValidatorTest.ERROR_CODE_END_STOP) { 136 136 return null; 137 137 } … … 155 155 156 156 if (SwingUtilities.isEventDispatchThread()) { 157 158 157 showRelationEditorAndZoom(layerParameter, relationParameter, zoomParameter); 159 158 … … 163 162 @Override 164 163 public void run() { 165 166 164 showRelationEditorAndZoom(layerParameter, relationParameter, zoomParameter); 167 168 165 } 169 166 }); 170 171 167 } 172 173 168 return command; 174 169 } … … 176 171 177 172 return null; 178 179 173 } 180 174 … … 190 184 191 185 // create editor: 192 GenericRelationEditor editor =(GenericRelationEditor)RelationEditor.getEditor(layer, r,186 RelationEditor editor = RelationEditor.getEditor(layer, r, 193 187 r.getMembersFor(primitives)); 194 188 -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssistantValidatorTest.java
r33345 r33347 465 465 @Override 466 466 public boolean isFixable(TestError testError) { 467 if (testError.getCode() == ERROR_CODE_DIRECTION || testError.getCode() == ERROR_CODE_ROAD_TYPE 468 || testError.getCode() == ERROR_CODE_CONSTRUCTION || testError.getCode() == ERROR_CODE_SORTING 469 || testError.getCode() == PTAssistantValidatorTest.ERROR_CODE_SOLITARY_STOP_POSITION 470 || testError.getCode() == PTAssistantValidatorTest.ERROR_CODE_PLATFORM_PART_OF_HIGHWAY) { 467 if (testError.getCode() == ERROR_CODE_DIRECTION 468 || testError.getCode() == ERROR_CODE_ROAD_TYPE 469 || testError.getCode() == ERROR_CODE_CONSTRUCTION 470 || testError.getCode() == ERROR_CODE_SORTING 471 || testError.getCode() == ERROR_CODE_END_STOP 472 || testError.getCode() == ERROR_CODE_PLATFORM_PART_OF_HIGHWAY) { 471 473 return true; 472 474 } … … 496 498 List<Command> commands = new ArrayList<>(); 497 499 498 if (testError.getCode() == ERROR_CODE_ROAD_TYPE || testError.getCode() == ERROR_CODE_CONSTRUCTION) { 500 if (testError.getCode() == ERROR_CODE_ROAD_TYPE 501 || testError.getCode() == ERROR_CODE_CONSTRUCTION 502 || testError.getCode() == ERROR_CODE_DIRECTION 503 || testError.getCode() == ERROR_CODE_END_STOP) { 499 504 commands.add(WayChecker.fixErrorByZooming(testError)); 500 }501 502 if (testError.getCode() == ERROR_CODE_DIRECTION) {503 commands.add(WayChecker.fixErrorByZooming(testError));504 505 505 } 506 506
Note:
See TracChangeset
for help on using the changeset viewer.