mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hide error icon when there are no errors
This commit is contained in:
@@ -58,6 +58,7 @@ public class IdeFatalErrorsIcon extends JLabel {
|
||||
myState = state;
|
||||
switch (state) {
|
||||
case UnreadErrors:
|
||||
setVisible(true);
|
||||
myIcon.setLayerEnabled(0, true);
|
||||
myIcon.setLayerEnabled(1, false);
|
||||
myIcon.setLayerEnabled(2, false);
|
||||
@@ -67,6 +68,7 @@ public class IdeFatalErrorsIcon extends JLabel {
|
||||
break;
|
||||
|
||||
case ReadErrors:
|
||||
setVisible(true);
|
||||
stopBlinker();
|
||||
myIcon.setLayerEnabled(0, false);
|
||||
myIcon.setLayerEnabled(1, true);
|
||||
@@ -76,7 +78,9 @@ public class IdeFatalErrorsIcon extends JLabel {
|
||||
break;
|
||||
|
||||
case NoErrors:
|
||||
// let's keep all this layers stuff for the case if we decide not to hide the icon
|
||||
stopBlinker();
|
||||
setVisible(false);
|
||||
myIcon.setLayerEnabled(0, false);
|
||||
myIcon.setLayerEnabled(1, false);
|
||||
myIcon.setLayerEnabled(2, true);
|
||||
|
||||
Reference in New Issue
Block a user