Changeset 18988 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
- Timestamp:
- 2024-02-16T11:13:51+01:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r18072 r18988 276 276 * Prepare the default decisions for the current model 277 277 * @param fireEvent {@code true} to call {@code fireTableDataChanged} (can be a slow operation) 278 * @since 1162 6278 * @since 11627 279 279 */ 280 280 void prepareDefaultTagDecisions(boolean fireEvent) { … … 293 293 294 294 /** 295 * Prepare the default decisions for the current model. 296 * @param decidedKeys set of tag keys for which the first value should be used 297 * @since xxx 298 */ 299 public void prepareDefaultTagDecisions(Set<String> decidedKeys) { 300 for (MultiValueResolutionDecision decision : decisions.values()) { 301 if (!decidedKeys.contains(decision.getKey())) 302 continue; 303 List<String> values = decision.getValues(); 304 if (!values.isEmpty()) { 305 decision.keepOne(values.iterator().next()); 306 } 307 } 308 rebuild(false); 309 } 310 311 /** 295 312 * Returns the set of keys in conflict. 296 313 * @return the set of keys in conflict.
Note:
See TracChangeset
for help on using the changeset viewer.