Commit d08f1781 authored by Riegel's avatar Riegel
Browse files

Refactor: Add refreshing of ZipEntryList

2 merge requests!28Version 3.17.0 Release,!26Add ZIP-archive support
Showing with 5 additions and 1 deletion
+5 -1
......@@ -143,13 +143,17 @@ public class ZipEntryPicker {
}
private void populateZipEntryList() {
populateZipEntryList(0);
}
private void populateZipEntryList(int selectionIndex) {
entryList.getItems().clear();
entryList.setCellFactory(param -> new ZipEntryListCell());
for (CityGmlZipEntry entry : archive.getEntries()) {
entryList.getItems().add(new ZipEntryNode(entry));
}
entryList.getSelectionModel().clearSelection();
entryList.getSelectionModel().select(0);
entryList.getSelectionModel().select(selectionIndex);
showMetadata(entryList.getSelectionModel().getSelectedItem().getEntry());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment