瀏覽代碼

Merge pull request #258 from greboid/dev2

UI should enver set report status for errors.
pull/260/head
Chris Smith 9 年之前
父節點
當前提交
8d55cea31f
共有 1 個文件被更改,包括 0 次插入22 次删除
  1. 0
    22
      ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/error/ErrorTableModel.java

+ 0
- 22
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/error/ErrorTableModel.java 查看文件

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

Loading…
取消
儲存