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
07961c23
Commit
07961c23
authored
Nov 18, 2025
by
Luna Riegel
Browse files
Style: Make progressbar indeterminate during Schematron
parent
eaae85d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/Checker.java
View file @
07961c23
...
@@ -204,6 +204,9 @@ public class Checker {
...
@@ -204,6 +204,9 @@ public class Checker {
}
}
if
(
schematronThread
.
isAlive
())
{
if
(
schematronThread
.
isAlive
())
{
logger
.
info
(
Localization
.
getText
(
"Checker.schematronStillRunning"
));
logger
.
info
(
Localization
.
getText
(
"Checker.schematronStillRunning"
));
if
(
l
!=
null
){
l
.
updateProgress
(-
0.5f
);
}
try
{
try
{
schematronThread
.
join
();
schematronThread
.
join
();
logger
.
info
(
Localization
.
getText
(
"Checker.schematronCompleted"
));
logger
.
info
(
Localization
.
getText
(
"Checker.schematronCompleted"
));
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CheckDialog.java
View file @
07961c23
...
@@ -11,6 +11,7 @@ import java.util.List;
...
@@ -11,6 +11,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Map.Entry
;
import
java.util.Map.Entry
;
import
de.hft.stuttgart.citydoctor2.parser.ProgressListener
;
import
javafx.beans.value.ChangeListener
;
import
javafx.beans.value.ChangeListener
;
import
javafx.beans.value.ObservableValue
;
import
javafx.beans.value.ObservableValue
;
import
javafx.scene.control.Alert
;
import
javafx.scene.control.Alert
;
...
@@ -450,7 +451,13 @@ public class CheckDialog {
...
@@ -450,7 +451,13 @@ public class CheckDialog {
String
startingChecks
=
Localization
.
getText
(
"CheckDialog.startingChecks"
);
String
startingChecks
=
Localization
.
getText
(
"CheckDialog.startingChecks"
);
logger
.
info
(
startingChecks
);
logger
.
info
(
startingChecks
);
}
}
controller
.
startChecks
(
config
,
progress:
:
setProgress
);
ProgressListener
l
=
new
ProgressListener
()
{
@Override
public
void
updateProgress
(
float
state
)
{
Platform
.
runLater
(()
->
progress
.
setProgress
(
state
));
}
};
controller
.
startChecks
(
config
,
l
);
if
(
logger
.
isInfoEnabled
())
{
if
(
logger
.
isInfoEnabled
())
{
String
checksDone
=
Localization
.
getText
(
"CheckDialog.checksDone"
);
String
checksDone
=
Localization
.
getText
(
"CheckDialog.checksDone"
);
...
...
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