Search in sources :

Example 6 with ISharedTextColors

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));
}
Also used : ISharedTextColors(org.eclipse.jface.text.source.ISharedTextColors) LineNumberRulerColumn(org.eclipse.jface.text.source.LineNumberRulerColumn) RGB(org.eclipse.swt.graphics.RGB)

Aggregations

ISharedTextColors (org.eclipse.jface.text.source.ISharedTextColors)6 Iterator (java.util.Iterator)2 IAnnotationAccess (org.eclipse.jface.text.source.IAnnotationAccess)2 LineNumberRulerColumn (org.eclipse.jface.text.source.LineNumberRulerColumn)2 RGB (org.eclipse.swt.graphics.RGB)2 AnnotationPreference (org.eclipse.ui.texteditor.AnnotationPreference)2 DefaultMarkerAnnotationAccess (org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 CompositeRuler (org.eclipse.jface.text.source.CompositeRuler)1 IOverviewRuler (org.eclipse.jface.text.source.IOverviewRuler)1 IVerticalRuler (org.eclipse.jface.text.source.IVerticalRuler)1 OverviewRuler (org.eclipse.jface.text.source.OverviewRuler)1 IntList (org.eclipse.jgit.util.IntList)1 MarkerAnnotationPreferences (org.eclipse.ui.texteditor.MarkerAnnotationPreferences)1 SourceViewerDecorationSupport (org.eclipse.ui.texteditor.SourceViewerDecorationSupport)1 ReconcilerViewer (org.talend.designer.core.ui.viewer.ReconcilerViewer)1