- Timestamp:
- 2016-01-14T19:26:02+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java
r9223 r9450 26 26 } 27 27 28 protected void setBackgroundReadable(String key, HistoryBrowserModel.TagTableModel model, boolean isSelected ) {28 protected void setBackgroundReadable(String key, HistoryBrowserModel.TagTableModel model, boolean isSelected, boolean isValue) { 29 29 Color bgColor = UIManager.getColor("Table.background"); 30 30 if (!model.hasTag(key) && model.isCurrentPointInTime() … … 34 34 || !model.hasTag(key) && model.isReferencePointInTime()) { 35 35 bgColor = TwoColumnDiff.Item.DiffItemType.INSERTED.getColor(); 36 } else if ( model.hasTag(key) && model.oppositeHasTag(key) && !model.hasSameValueAsOpposite(key)) {36 } else if (isValue && model.hasTag(key) && model.oppositeHasTag(key) && !model.hasSameValueAsOpposite(key)) { 37 37 bgColor = TwoColumnDiff.Item.DiffItemType.CHANGED.getColor(); 38 38 } … … 59 59 setText(model.hasTag(key) ? key : ""); 60 60 setToolTipText(getText()); 61 setBackgroundReadable(key, model, isSelected );61 setBackgroundReadable(key, model, isSelected, false); 62 62 break; 63 63 case 1: … … 65 65 setText(model.hasTag(key) ? model.getValue(key) : ""); 66 66 setToolTipText(getText()); 67 setBackgroundReadable(key, model, isSelected );67 setBackgroundReadable(key, model, isSelected, true); 68 68 break; 69 69 }
Note:
See TracChangeset
for help on using the changeset viewer.