Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
6ee6fa36
Commit
6ee6fa36
authored
7 years ago
by
Aleksandr Samofalov
Browse files
Options
Download
Email Patches
Plain Diff
[build-messages] use switch instead of ifs and Note icon
parent
47f5d6b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/ide/errorTreeView/NewErrorTreeRenderer.java
+13
-12
.../com/intellij/ide/errorTreeView/NewErrorTreeRenderer.java
with
13 additions
and
12 deletions
+13
-12
platform/platform-impl/src/com/intellij/ide/errorTreeView/NewErrorTreeRenderer.java
+
13
-
12
View file @
6ee6fa36
...
...
@@ -270,18 +270,19 @@ public class NewErrorTreeRenderer extends MultilineTreeCellRenderer {
icon
=
groupingElement
.
getFile
()
!=
null
?
groupingElement
.
getFile
().
getFileType
().
getIcon
()
:
AllIcons
.
FileTypes
.
Any_type
;
}
else
if
(
element
instanceof
SimpleMessageElement
||
element
instanceof
NavigatableMessageElement
)
{
ErrorTreeElementKind
kind
=
element
.
getKind
();
if
(
ErrorTreeElementKind
.
ERROR
.
equals
(
kind
))
{
icon
=
AllIcons
.
General
.
Error
;
}
else
if
(
ErrorTreeElementKind
.
WARNING
.
equals
(
kind
))
{
icon
=
AllIcons
.
General
.
Warning
;
}
else
if
(
ErrorTreeElementKind
.
NOTE
.
equals
(
kind
))
{
icon
=
AllIcons
.
General
.
Note
;
}
else
if
(
ErrorTreeElementKind
.
INFO
.
equals
(
kind
))
{
icon
=
AllIcons
.
General
.
Information
;
switch
(
element
.
getKind
())
{
case
ERROR:
icon
=
AllIcons
.
General
.
Error
;
break
;
case
WARNING:
icon
=
AllIcons
.
General
.
Warning
;
break
;
case
NOTE:
icon
=
AllIcons
.
General
.
Note
;
break
;
case
INFO:
icon
=
AllIcons
.
General
.
Information
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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