Changeset 34128 in osm for applications/editors/josm/plugins/turnrestrictions/src
- Timestamp:
- 2018-03-26T21:06:01+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java
r33780 r34128 546 546 } 547 547 548 MainApplication.undoRedo.add(new AddCommand(getLayer(). data, newTurnRestriction));548 MainApplication.undoRedo.add(new AddCommand(getLayer().getDataSet(), newTurnRestriction)); 549 549 550 550 // make sure everybody is notified about the changes … … 568 568 editorModel.apply(toUpdate); 569 569 Conflict<Relation> conflict = new Conflict<>(getTurnRestriction(), toUpdate); 570 MainApplication.undoRedo.add(new ConflictAddCommand(getLayer(). data, conflict));570 MainApplication.undoRedo.add(new ConflictAddCommand(getLayer().getDataSet(), conflict)); 571 571 } 572 572 … … 578 578 if (getTurnRestriction().getDataSet() == null) { 579 579 editorModel.apply(getTurnRestriction()); 580 MainApplication.undoRedo.add(new AddCommand(getLayer(). data, getTurnRestriction()));580 MainApplication.undoRedo.add(new AddCommand(getLayer().getDataSet(), getTurnRestriction())); 581 581 } else { 582 582 Relation toUpdate = new Relation(getTurnRestriction()); -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/ViaListModel.java
r32519 r34128 171 171 if (idsToInsert == null) return; 172 172 List<OsmPrimitive> primitives = new ArrayList<>(idsToInsert.size()); 173 DataSet ds = model.getLayer(). data;173 DataSet ds = model.getLayer().getDataSet(); 174 174 for (PrimitiveId id: idsToInsert) { 175 175 OsmPrimitive p = ds.getPrimitiveById(id);
Note:
See TracChangeset
for help on using the changeset viewer.