- Timestamp:
- 2012-06-24T12:56:56+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListTableCellRenderer.java
r5266 r5296 93 93 setBackground(ConflictColors.BGCOLOR.get()); 94 94 setForeground(ConflictColors.FGCOLOR.get()); 95 setToolTipText(null); 95 96 } 96 97 … … 153 154 Node node = (Node)value; 154 155 reset(); 155 if (value == null) 156 return this; 157 switch(column) { 158 case 0: 159 renderRowId(getModel(table),row, isSelected); 160 break; 161 case 1: 162 if (node == null) { 163 renderEmptyRow(); 164 } else { 156 if (node == null) { 157 renderEmptyRow(); 158 } else { 159 switch(column) { 160 case 0: 161 renderRowId(getModel(table),row, isSelected); 162 break; 163 case 1: 165 164 renderNode(getModel(table), node, row, isSelected); 165 break; 166 default: 167 // should not happen 168 throw new RuntimeException(MessageFormat.format("Unexpected column index. Got {0}.", column)); 166 169 } 167 break;168 default:169 // should not happen170 throw new RuntimeException(MessageFormat.format("Unexpected column index. Got {0}.", column));171 170 } 172 171 return this;
Note:
See TracChangeset
for help on using the changeset viewer.