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
9e65baa7
Commit
9e65baa7
authored
Oct 01, 2024
by
Riegel
Browse files
Fix Opening treenode text color bug
parent
43f226db
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/tree/AllOpeningsNode.java
View file @
9e65baa7
...
@@ -16,13 +16,21 @@ public class AllOpeningsNode extends Renderable {
...
@@ -16,13 +16,21 @@ public class AllOpeningsNode extends Renderable {
@Override
@Override
public
void
refreshTextColor
()
{
public
void
refreshTextColor
()
{
for
(
Opening
bp
:
openings
)
{
boolean
wasChecked
=
false
;
if
(
bp
.
containsAnyError
())
{
for
(
Opening
op
:
openings
)
{
setStatus
(
CheckStatus
.
ERROR
);
if
(
op
.
isValidated
())
{
return
;
wasChecked
=
true
;
if
(
op
.
containsAnyError
())
{
setStatus
(
CheckStatus
.
ERROR
);
return
;
}
}
}
}
}
setStatus
(
CheckStatus
.
OK
);
if
(
wasChecked
)
{
setStatus
(
CheckStatus
.
OK
);
}
else
{
setStatus
(
CheckStatus
.
NOT_CHECKED
);
}
}
}
@Override
@Override
...
...
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