Changeset 12412 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-17T23:12:53+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/corrector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
r12187 r12412 287 287 } 288 288 289 return applyCorrections( tagCorrectionsMap, roleCorrectionMap,289 return applyCorrections(oldway.getDataSet(), tagCorrectionsMap, roleCorrectionMap, 290 290 tr("When reversing this way, the following changes are suggested in order to maintain data consistency.")); 291 291 } -
trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java
r12356 r12412 26 26 import org.openstreetmap.josm.data.correction.RoleCorrection; 27 27 import org.openstreetmap.josm.data.correction.TagCorrection; 28 import org.openstreetmap.josm.data.osm.DataSet; 28 29 import org.openstreetmap.josm.data.osm.Node; 29 30 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 56 57 }; 57 58 59 /** 60 * Creates the commands to correct the tags. Asks the users about it. 61 * @param dataSet The data set the primitives will be in once the commands are executed 62 * @param tagCorrectionsMap The possible tag corrections 63 * @param roleCorrectionMap The possible role corrections 64 * @param description A description to add to the dialog. 65 * @return A list of commands 66 * @throws UserCancelException If the user canceled 67 */ 58 68 protected Collection<Command> applyCorrections( 69 DataSet dataSet, 59 70 Map<OsmPrimitive, List<TagCorrection>> tagCorrectionsMap, 60 71 Map<OsmPrimitive, List<RoleCorrection>> roleCorrectionMap, … … 175 186 // save the clone 176 187 if (!keysChanged.isEmpty()) { 177 commands.add(new ChangeCommand( primitive.getDataSet(), primitive, clone));188 commands.add(new ChangeCommand(dataSet, primitive, clone)); 178 189 } 179 190 } … … 185 196 RoleCorrection roleCorrection = roleCorrections.get(i); 186 197 if (roleTableMap.get(primitive).getCorrectionTableModel().getApply(i)) { 187 commands.add(new ChangeRelationMemberRoleCommand( roleCorrection.relation.getDataSet(),198 commands.add(new ChangeRelationMemberRoleCommand(dataSet, 188 199 roleCorrection.relation, roleCorrection.position, roleCorrection.newRole)); 189 200 }
Note:
See TracChangeset
for help on using the changeset viewer.