|
@@ -139,28 +139,6 @@ public final class ErrorTableModel extends AbstractTableModel implements ErrorLi
|
139
|
139
|
}
|
140
|
140
|
}
|
141
|
141
|
|
142
|
|
- @Override
|
143
|
|
- public void setValueAt(final Object aValue, final int rowIndex,
|
144
|
|
- final int columnIndex) {
|
145
|
|
- synchronized (errors) {
|
146
|
|
- switch (columnIndex) {
|
147
|
|
- case 1:
|
148
|
|
- if (aValue instanceof ErrorReportStatus) {
|
149
|
|
- errors.get(rowIndex).setReportStatus(
|
150
|
|
- (ErrorReportStatus) aValue);
|
151
|
|
- break;
|
152
|
|
- } else {
|
153
|
|
- throw new IllegalArgumentException("Received: " + aValue.getClass()
|
154
|
|
- + ", expecting: " + ErrorReportStatus.class);
|
155
|
|
- }
|
156
|
|
- default:
|
157
|
|
- throw new UnsupportedOperationException("Only editing the "
|
158
|
|
- + "status is allowed");
|
159
|
|
- }
|
160
|
|
- fireTableCellUpdated(rowIndex, columnIndex);
|
161
|
|
- }
|
162
|
|
- }
|
163
|
|
-
|
164
|
142
|
/**
|
165
|
143
|
* Gets the error at the specified row.
|
166
|
144
|
*
|