Changeset 32427 in osm for applications/editors
- Timestamp:
- 2016-06-28T23:29:54+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/FixTask.java
r32274 r32427 73 73 @Override 74 74 public void run() { 75 Main. main.getCurrentDataSet().beginUpdate();75 Main.getLayerManager().getEditDataSet().beginUpdate(); 76 76 } 77 77 }); … … 89 89 @Override 90 90 public void run() { 91 Main. main.getCurrentDataSet().endUpdate();91 Main.getLayerManager().getEditDataSet().endUpdate(); 92 92 } 93 93 }); … … 100 100 Main.map.repaint(); 101 101 // tree.resetErrors(); 102 Main. main.getCurrentDataSet().fireSelectionChanged();102 Main.getLayerManager().getEditDataSet().fireSelectionChanged(); 103 103 } 104 104 }); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/DirectionTest.java
r32277 r32427 4 4 5 5 import java.util.ArrayList; 6 import java.util.Collection; 6 7 import java.util.List; 7 8 … … 122 123 123 124 if (testError.getTester().getClass().equals(DirectionTest.class) && testError.isFixable()) { 124 List<OsmPrimitive> primitives =(List<OsmPrimitive>)testError.getPrimitives();125 Relation originalRelation = (Relation) primitives. get(0);126 List<OsmPrimitive> highlightedList =(List<OsmPrimitive>)testError.getHighlighted();127 Way wayToRemove = (Way) highlightedList. get(0);125 Collection<? extends OsmPrimitive> primitives = testError.getPrimitives(); 126 Relation originalRelation = (Relation) primitives.iterator().next(); 127 Collection<?> highlightedList = testError.getHighlighted(); 128 Way wayToRemove = (Way) highlightedList.iterator().next(); 128 129 129 130 Relation modifiedRelation = new Relation(originalRelation); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/GapTest.java
r32252 r32427 5 5 import java.util.ArrayList; 6 6 import java.util.List; 7 8 import javax.swing.JOptionPane;9 7 10 8 import org.openstreetmap.josm.command.ChangeCommand; -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssitantValidatorTest.java
r32415 r32427 4 4 5 5 import java.util.ArrayList; 6 import java.util.Collection; 6 7 import java.util.List; 7 8 8 9 import javax.swing.JOptionPane; 9 10 10 import org.openstreetmap.josm.Main;11 11 import org.openstreetmap.josm.command.ChangeCommand; 12 12 import org.openstreetmap.josm.command.Command; … … 288 288 } 289 289 290 List<OsmPrimitive> primitives =(List<OsmPrimitive>)testError.getPrimitives();291 Relation originalRelation = (Relation) primitives. get(0);292 List<OsmPrimitive> highlighted =(List<OsmPrimitive>)testError.getHighlighted();293 Way wayToRemove = (Way) highlighted. get(0);290 Collection<? extends OsmPrimitive> primitives = testError.getPrimitives(); 291 Relation originalRelation = (Relation) primitives.iterator().next(); 292 Collection<?> highlighted = testError.getHighlighted(); 293 Way wayToRemove = (Way) highlighted.iterator().next(); 294 294 295 295 Relation modifiedRelation = new Relation(originalRelation); … … 344 344 } 345 345 346 List<OsmPrimitive> primitives =(List<OsmPrimitive>)testError.getPrimitives();347 Relation originalRelation = (Relation) primitives. get(0);346 Collection<? extends OsmPrimitive> primitives = testError.getPrimitives(); 347 Relation originalRelation = (Relation) primitives.iterator().next(); 348 348 349 349 // separate ways from stops (because otherwise the order of -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/RoadTypeTest.java
r32417 r32427 4 4 5 5 import java.util.ArrayList; 6 import java.util.Collection; 6 7 import java.util.List; 7 8 … … 135 136 136 137 if (testError.getTester().getClass().equals(RoadTypeTest.class) && testError.isFixable()) { 137 List<OsmPrimitive> primitives =(List<OsmPrimitive>)testError.getPrimitives();138 Relation originalRelation = (Relation) primitives. get(0);139 List<OsmPrimitive> highlighted =(List<OsmPrimitive>)testError.getHighlighted();140 Way wayToRemove = (Way) highlighted. get(0);138 Collection<? extends OsmPrimitive> primitives = testError.getPrimitives(); 139 Relation originalRelation = (Relation) primitives.iterator().next(); 140 Collection<?> highlighted = testError.getHighlighted(); 141 Way wayToRemove = (Way) highlighted.iterator().next(); 141 142 142 143 Relation modifiedRelation = new Relation(originalRelation); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/RouteChecker.java
r32299 r32427 5 5 import java.util.ArrayList; 6 6 import java.util.List; 7 8 import javax.swing.JOptionPane;9 7 10 8 import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
Note:
See TracChangeset
for help on using the changeset viewer.