use of org.eclipse.jface.text.source.ISharedTextColors in project eclipse.platform.text by eclipse.
the class LineNumberColumn method updateBackgroundColor.
private void updateBackgroundColor(IPreferenceStore store, IVerticalRulerColumn column) {
// background color: same as editor, or system default
RGB rgb;
if (store.getBoolean(USE_DEFAULT_BG_KEY))
rgb = null;
else
rgb = getColorFromStore(store, BG_COLOR_KEY);
ISharedTextColors sharedColors = getSharedColors();
if (column instanceof LineNumberRulerColumn)
((LineNumberRulerColumn) column).setBackground(sharedColors.getColor(rgb));
}
Aggregations