Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
d08f1781
Commit
d08f1781
authored
Jan 07, 2025
by
Riegel
Browse files
Refactor: Add refreshing of ZipEntryList
parent
d42f9660
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
View file @
d08f1781
...
@@ -143,13 +143,17 @@ public class ZipEntryPicker {
...
@@ -143,13 +143,17 @@ public class ZipEntryPicker {
}
}
private
void
populateZipEntryList
()
{
private
void
populateZipEntryList
()
{
populateZipEntryList
(
0
);
}
private
void
populateZipEntryList
(
int
selectionIndex
)
{
entryList
.
getItems
().
clear
();
entryList
.
getItems
().
clear
();
entryList
.
setCellFactory
(
param
->
new
ZipEntryListCell
());
entryList
.
setCellFactory
(
param
->
new
ZipEntryListCell
());
for
(
CityGmlZipEntry
entry
:
archive
.
getEntries
())
{
for
(
CityGmlZipEntry
entry
:
archive
.
getEntries
())
{
entryList
.
getItems
().
add
(
new
ZipEntryNode
(
entry
));
entryList
.
getItems
().
add
(
new
ZipEntryNode
(
entry
));
}
}
entryList
.
getSelectionModel
().
clearSelection
();
entryList
.
getSelectionModel
().
clearSelection
();
entryList
.
getSelectionModel
().
select
(
0
);
entryList
.
getSelectionModel
().
select
(
selectionIndex
);
showMetadata
(
entryList
.
getSelectionModel
().
getSelectedItem
().
getEntry
());
showMetadata
(
entryList
.
getSelectionModel
().
getSelectedItem
().
getEntry
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment