1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fix label color updates in outline view

This commit is contained in:
Anton Leherbauer 2007-05-04 11:41:39 +00:00
parent f5ddcb1de9
commit b2f48c45c9

View file

@ -37,6 +37,7 @@ public class CUILabelProvider extends LabelProvider implements IColorProvider {
private int fImageFlags;
private int fTextFlags;
private Color fInactiveColor;
private Color fDefaultColor;
/**
* Creates a new label provider with default flags.
@ -233,11 +234,12 @@ public class CUILabelProvider extends LabelProvider implements IColorProvider {
if (!include.isActive()) {
if (fInactiveColor == null && Display.getCurrent() != null) {
fInactiveColor= CUIPlugin.getStandardDisplay().getSystemColor(SWT.COLOR_DARK_GRAY);
fDefaultColor= CUIPlugin.getStandardDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND);
}
return fInactiveColor;
}
}
return null;
return fDefaultColor;
}
/* (non-Javadoc)