1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-21 10:52:14 +01:00

Lib manager: added getContribModel() as in Boards manager

This commit is contained in:
Cristian Maglie 2020-07-22 17:13:25 +02:00
parent 851b5b14b1
commit 10bee204e6

View File

@ -72,6 +72,10 @@ public class LibraryManagerUI extends InstallerJDialog<ContributedLibraryRelease
return new LibrariesIndexTableModel();
}
private LibrariesIndexTableModel getContribModel() {
return (LibrariesIndexTableModel) contribModel;
}
@Override
protected TableCellRenderer createCellRenderer() {
return new ContributedLibraryTableCellRenderer();
@ -201,7 +205,7 @@ public class LibraryManagerUI extends InstallerJDialog<ContributedLibraryRelease
if (contribTable.getCellEditor() != null) {
contribTable.getCellEditor().stopCellEditing();
}
((LibrariesIndexTableModel) contribModel).update();
getContribModel().update();
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
@ -241,7 +245,7 @@ public class LibraryManagerUI extends InstallerJDialog<ContributedLibraryRelease
if (contribTable.getCellEditor() != null) {
contribTable.getCellEditor().stopCellEditing();
}
((LibrariesIndexTableModel) contribModel).update();
getContribModel().update();
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
@ -272,7 +276,7 @@ public class LibraryManagerUI extends InstallerJDialog<ContributedLibraryRelease
if (contribTable.getCellEditor() != null) {
contribTable.getCellEditor().stopCellEditing();
}
((LibrariesIndexTableModel) contribModel).update();
getContribModel().update();
} catch (Exception e) {
throw new RuntimeException(e);
} finally {