@@ -72,6 +72,10 @@ protected FilteredAbstractTableModel createContribModel() {
72
72
return new LibrariesIndexTableModel ();
73
73
}
74
74
75
+ private LibrariesIndexTableModel getContribModel () {
76
+ return (LibrariesIndexTableModel ) contribModel ;
77
+ }
78
+
75
79
@ Override
76
80
protected TableCellRenderer createCellRenderer () {
77
81
return new ContributedLibraryTableCellRenderer ();
@@ -201,7 +205,7 @@ protected void onUpdatePressed() {
201
205
if (contribTable .getCellEditor () != null ) {
202
206
contribTable .getCellEditor ().stopCellEditing ();
203
207
}
204
- (( LibrariesIndexTableModel ) contribModel ).update ();
208
+ getContribModel ( ).update ();
205
209
} catch (Exception e ) {
206
210
throw new RuntimeException (e );
207
211
} finally {
@@ -241,7 +245,7 @@ public void onInstallPressed(final ContributedLibrary lib) {
241
245
if (contribTable .getCellEditor () != null ) {
242
246
contribTable .getCellEditor ().stopCellEditing ();
243
247
}
244
- (( LibrariesIndexTableModel ) contribModel ).update ();
248
+ getContribModel ( ).update ();
245
249
} catch (Exception e ) {
246
250
throw new RuntimeException (e );
247
251
} finally {
@@ -272,7 +276,7 @@ public void onRemovePressed(final ContributedLibrary lib) {
272
276
if (contribTable .getCellEditor () != null ) {
273
277
contribTable .getCellEditor ().stopCellEditing ();
274
278
}
275
- (( LibrariesIndexTableModel ) contribModel ).update ();
279
+ getContribModel ( ).update ();
276
280
} catch (Exception e ) {
277
281
throw new RuntimeException (e );
278
282
} finally {
0 commit comments