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
2494bd64
Commit
2494bd64
authored
Jan 14, 2025
by
Riegel
Browse files
Refactor: Add null handling to output directory selection
parent
2b0f2b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CheckDialog.java
View file @
2494bd64
...
@@ -296,7 +296,14 @@ public class CheckDialog {
...
@@ -296,7 +296,14 @@ public class CheckDialog {
outputPathBtn
.
setOnAction
(
e
->
{
outputPathBtn
.
setOnAction
(
e
->
{
DirectoryChooser
directoryChooser
=
new
DirectoryChooser
();
DirectoryChooser
directoryChooser
=
new
DirectoryChooser
();
outputPathTextField
.
setText
(
directoryChooser
.
showDialog
(
stage
.
getOwner
()).
getAbsolutePath
());
directoryChooser
.
setInitialDirectory
(
Path
.
of
(
Settings
.
get
(
Settings
.
LAST_OPEN_FOLDER
)).
getParent
().
toFile
());
File
f
=
directoryChooser
.
showDialog
(
stage
.
getOwner
());
if
(
f
!=
null
)
{
outputPathTextField
.
setText
(
f
.
getAbsolutePath
());
Settings
.
set
(
Settings
.
LAST_OPEN_FOLDER
,
f
.
getAbsolutePath
());
}
});
});
streamCheckOption
.
setText
(
Localization
.
getText
(
"CheckDialog.streamCheckOption"
));
streamCheckOption
.
setText
(
Localization
.
getText
(
"CheckDialog.streamCheckOption"
));
...
...
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