- Timestamp:
- 2014-02-02T22:11:09+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict/tags
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java
r6770 r6802 234 234 } 235 235 236 /** 237 * Replies true if all tag and relation member conflicts have been decided. 238 * 239 * @return true if all tag and relation member conflicts have been decided; false otherwise 240 */ 241 public boolean isResolvedCompletely() { 242 return getTagConflictResolverModel().isResolvedCompletely() 243 && getRelationMemberConflictResolverModel().isResolvedCompletely(); 244 } 245 236 246 protected List<Command> buildTagChangeCommand(OsmPrimitive primitive, TagCollection tc) { 237 247 LinkedList<Command> cmds = new LinkedList<Command>(); … … 517 527 518 528 // Resolve tag conflicts if necessary 519 if (! completeWayTags.isApplicableToPrimitive() || !parentRelations.isEmpty()) {529 if (!dialog.isResolvedCompletely()) { 520 530 dialog.setVisible(true); 521 531 if (dialog.isCanceled()) { -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolverModel.java
r5988 r6802 37 37 private int numConflicts; 38 38 private PropertyChangeSupport support; 39 40 /** 41 * Replies true if each {@link MultiValueResolutionDecision} is decided. 42 * 43 * @return true if each {@link MultiValueResolutionDecision} is decided; false 44 * otherwise 45 */ 46 public boolean isResolvedCompletely() { 47 return numConflicts == 0; 48 } 39 49 40 50 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r6770 r6802 258 258 */ 259 259 public void prepareDefaultTagDecisions() { 260 // Do not suggest to keep all values in order to reduce the wrong usage of semicolon values, see #9104!261 // Do not suggest to keep the single value in order to avoid long highways to become tunnels+bridges+...262 263 /*264 260 for (MultiValueResolutionDecision decision: decisions.values()) { 265 261 List<String> values = decision.getValues(); 266 262 values.remove(""); 267 263 if (values.size() == 1) { 264 // TODO: Do not suggest to keep the single value in order to avoid long highways to become tunnels+bridges+... (only if both primitives are tagged) 268 265 decision.keepOne(values.get(0)); 269 266 } else { 270 decision.keepAll();271 }272 }273 */267 // Do not suggest to keep all values in order to reduce the wrong usage of semicolon values, see #9104! 268 //decision.keepAll(); 269 } 270 } 274 271 rebuild(); 275 272 }
Note:
See TracChangeset
for help on using the changeset viewer.