@@ -72,6 +72,10 @@ protected FilteredAbstractTableModel createContribModel() {
7272 return new LibrariesIndexTableModel ();
7373 }
7474
75+ private LibrariesIndexTableModel getContribModel () {
76+ return (LibrariesIndexTableModel ) contribModel ;
77+ }
78+
7579 @ Override
7680 protected TableCellRenderer createCellRenderer () {
7781 return new ContributedLibraryTableCellRenderer ();
@@ -201,7 +205,7 @@ protected void onUpdatePressed() {
201205 if (contribTable .getCellEditor () != null ) {
202206 contribTable .getCellEditor ().stopCellEditing ();
203207 }
204- (( LibrariesIndexTableModel ) contribModel ).update ();
208+ getContribModel ( ).update ();
205209 } catch (Exception e ) {
206210 throw new RuntimeException (e );
207211 } finally {
@@ -241,7 +245,7 @@ public void onInstallPressed(final ContributedLibrary lib) {
241245 if (contribTable .getCellEditor () != null ) {
242246 contribTable .getCellEditor ().stopCellEditing ();
243247 }
244- (( LibrariesIndexTableModel ) contribModel ).update ();
248+ getContribModel ( ).update ();
245249 } catch (Exception e ) {
246250 throw new RuntimeException (e );
247251 } finally {
@@ -272,7 +276,7 @@ public void onRemovePressed(final ContributedLibrary lib) {
272276 if (contribTable .getCellEditor () != null ) {
273277 contribTable .getCellEditor ().stopCellEditing ();
274278 }
275- (( LibrariesIndexTableModel ) contribModel ).update ();
279+ getContribModel ( ).update ();
276280 } catch (Exception e ) {
277281 throw new RuntimeException (e );
278282 } finally {
0 commit comments