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
077bcb27
Commit
077bcb27
authored
Jan 16, 2025
by
Riegel
Browse files
Style: Rework color coding of ZIP entries
parent
4da4d843
Pipeline
#10908
passed with stage
in 5 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/tree/ZipEntryNode.java
View file @
077bcb27
...
...
@@ -13,9 +13,18 @@ public class ZipEntryNode {
public
Color
getTextColor
()
{
if
(
entry
.
getErrorType
()
!=
null
)
{
return
Color
.
RED
;
}
else
if
(
entry
.
getModel
()
!=
null
&&
entry
.
getModel
().
isValidated
())
{
return
Color
.
GREEN
;
return
Color
.
DARKRED
;
}
else
if
(
entry
.
getModel
()
!=
null
)
{
if
(
entry
.
getModel
().
getNumberOfFeatures
()
==
0
)
{
return
Color
.
GRAY
;
}
if
(
entry
.
getModel
().
isValidated
())
{
if
(
entry
.
getModel
().
collectErrors
().
isEmpty
())
{
return
Color
.
GREEN
;
}
return
Color
.
RED
;
}
return
Color
.
BLUE
;
}
else
if
(
entry
.
isDecompressed
())
{
return
Color
.
BLUE
;
}
else
{
...
...
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