Changeset 16735 in osm for applications/editors/josm/plugins/validator
- Timestamp:
- 2009-07-30T13:49:38+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java
r13497 r16735 6 6 import java.util.Collections; 7 7 8 import org.openstreetmap.josm.Main; 8 9 import org.openstreetmap.josm.command.ChangeCommand; 9 10 import org.openstreetmap.josm.command.Command; … … 58 59 if (wnew.nodes.size() < 2) { 59 60 // Empty way, delete 60 return DeleteCommand.delete(Collections.singleton(w)); 61 return DeleteCommand.delete(Main.map.mapView.getEditLayer(), Collections.singleton(w)); 61 62 } else { 62 63 return new ChangeCommand(w, wnew); -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java
r16629 r16735 96 96 public Command fixError(TestError testError) 97 97 { 98 return DeleteCommand.delete(testError.getPrimitives()); 98 return DeleteCommand.delete(Main.map.mapView.getEditLayer(), testError.getPrimitives()); 99 99 } 100 100 -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
r16629 r16735 152 152 public Command fixError(TestError testError) 153 153 { 154 return DeleteCommand.delete(testError.getPrimitives()); 154 return DeleteCommand.delete(Main.map.mapView.getEditLayer(), testError.getPrimitives()); 155 155 } 156 156 }
Note:
See TracChangeset
for help on using the changeset viewer.