Ver código fonte

Merge pull request #258 from greboid/dev2

UI should enver set report status for errors.
pull/260/head
Chris Smith 9 anos atrás
pai
commit
8d55cea31f

+ 0
- 22
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/error/ErrorTableModel.java Ver arquivo

@@ -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
      *

Carregando…
Cancelar
Salvar