Changeset 8444 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties
- Timestamp:
- 2015-06-02T16:41:37+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties
- Files:
-
- 2 edited
-
PropertiesMergeModel.java (modified) (4 diffs)
-
PropertiesMerger.java (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMergeModel.java
r8308 r8444 70 70 } 71 71 72 /** 73 * Constructs a new {@code PropertiesMergeModel}. 74 */ 72 75 public PropertiesMergeModel() { 73 76 coordMergeDecision = UNDECIDED; … … 78 81 79 82 /** 80 * replies true if there is a coordinate conflict and if this conflict is 81 * resolved 82 * 83 * @return true if there is a coordinate conflict and if this conflict is 84 * resolved; false, otherwise 83 * replies true if there is a coordinate conflict and if this conflict is resolved 84 * 85 * @return true if there is a coordinate conflict and if this conflict is resolved; false, otherwise 85 86 */ 86 87 public boolean isDecidedCoord() { 87 return ! coordMergeDecision.equals(UNDECIDED); 88 } 89 90 /** 91 * replies true if there is a conflict in the deleted state and if this conflict is 92 * resolved 88 return !coordMergeDecision.equals(UNDECIDED); 89 } 90 91 /** 92 * replies true if there is a conflict in the deleted state and if this conflict is resolved 93 93 * 94 94 * @return true if there is a conflict in the deleted state and if this conflict is … … 96 96 */ 97 97 public boolean isDecidedDeletedState() { 98 return ! deletedMergeDecision.equals(UNDECIDED);98 return !deletedMergeDecision.equals(UNDECIDED); 99 99 } 100 100 … … 311 311 boolean ret = true; 312 312 if (hasCoordConflict()) { 313 ret = ret && ! coordMergeDecision.equals(UNDECIDED);313 ret = ret && !coordMergeDecision.equals(UNDECIDED); 314 314 } 315 315 if (hasDeletedStateConflict()) { 316 ret = ret && ! deletedMergeDecision.equals(UNDECIDED);316 ret = ret && !deletedMergeDecision.equals(UNDECIDED); 317 317 } 318 318 return ret; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMerger.java
r8426 r8444 321 321 lblMergedCoordinates.setText(coordToString(model.getMergedCoords())); 322 322 lblTheirCoordinates.setText(coordToString(model.getTheirCoords())); 323 if (! model.hasCoordConflict()) {323 if (!model.hasCoordConflict()) { 324 324 lblMyCoordinates.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get()); 325 325 lblMergedCoordinates.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get()); … … 349 349 lblTheirDeletedState.setText(deletedStateToString(model.getTheirDeletedState())); 350 350 351 if (! model.hasDeletedStateConflict()) {351 if (!model.hasDeletedStateConflict()) { 352 352 lblMyDeletedState.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get()); 353 353 lblMergedDeletedState.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get()); … … 403 403 @Override 404 404 public void update(Observable o, Object arg) { 405 setEnabled(model.hasCoordConflict() && ! model.isDecidedCoord());405 setEnabled(model.hasCoordConflict() && !model.isDecidedCoord()); 406 406 } 407 407 } … … 420 420 @Override 421 421 public void update(Observable o, Object arg) { 422 setEnabled(model.hasCoordConflict() && ! model.isDecidedCoord());422 setEnabled(model.hasCoordConflict() && !model.isDecidedCoord()); 423 423 } 424 424 } … … 454 454 @Override 455 455 public void update(Observable o, Object arg) { 456 setEnabled(model.hasDeletedStateConflict() && ! model.isDecidedDeletedState());456 setEnabled(model.hasDeletedStateConflict() && !model.isDecidedDeletedState()); 457 457 } 458 458 } … … 471 471 @Override 472 472 public void update(Observable o, Object arg) { 473 setEnabled(model.hasDeletedStateConflict() && ! model.isDecidedDeletedState());473 setEnabled(model.hasDeletedStateConflict() && !model.isDecidedDeletedState()); 474 474 } 475 475 }
Note:
See TracChangeset
for help on using the changeset viewer.
