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:
parent
851b5b14b1
commit
10bee204e6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user