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
4a0c88b5
Commit
4a0c88b5
authored
Jan 07, 2025
by
Riegel
Browse files
Feat: Add button setup
parent
d99373bf
Changes
1
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
View file @
4a0c88b5
...
@@ -96,8 +96,15 @@ public class ZipEntryPicker {
...
@@ -96,8 +96,15 @@ public class ZipEntryPicker {
entryList
.
getSelectionModel
().
selectedItemProperty
().
addListener
((
obs
,
oldI
,
newI
)
->
{
entryList
.
getSelectionModel
().
selectedItemProperty
().
addListener
((
obs
,
oldI
,
newI
)
->
{
if
(
newI
!=
null
)
{
if
(
newI
!=
null
)
{
showMetadata
(
newI
.
getEntry
());
showMetadata
(
newI
.
getEntry
());
// Disable loadBtn when entry is erroneous
loadBtn
.
setDisable
(
newI
.
getEntry
().
getErrorType
()
!=
null
);
}
}
});
});
cancelBtn
.
setOnAction
(
e
->
stage
.
close
());
loadBtn
.
setOnAction
(
e
->
{
CityGmlZipEntry
entry
=
entryList
.
getSelectionModel
().
getSelectedItem
().
getEntry
();
});
}
}
public
void
initialize
()
{
public
void
initialize
()
{
...
...
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