Search in sources :

Example 6 with OverviewRuler

use of org.eclipse.jface.text.source.OverviewRuler in project eclipse.platform.text by eclipse.

the class AbstractDecoratedTextEditor method createOverviewRuler.

protected IOverviewRuler createOverviewRuler(ISharedTextColors sharedColors) {
    IOverviewRuler ruler = new OverviewRuler(getAnnotationAccess(), VERTICAL_RULER_WIDTH, sharedColors);
    Iterator<AnnotationPreference> e = fAnnotationPreferences.getAnnotationPreferences().iterator();
    while (e.hasNext()) {
        AnnotationPreference preference = e.next();
        if (preference.contributesToHeader())
            ruler.addHeaderAnnotationType(preference.getAnnotationType());
    }
    return ruler;
}
Also used : IOverviewRuler(org.eclipse.jface.text.source.IOverviewRuler) OverviewRuler(org.eclipse.jface.text.source.OverviewRuler) IOverviewRuler(org.eclipse.jface.text.source.IOverviewRuler)

Aggregations

IOverviewRuler (org.eclipse.jface.text.source.IOverviewRuler)6 OverviewRuler (org.eclipse.jface.text.source.OverviewRuler)6 AnnotationPreference (org.eclipse.ui.texteditor.AnnotationPreference)4 Iterator (java.util.Iterator)2 CompositeRuler (org.eclipse.jface.text.source.CompositeRuler)2 JavaSourceViewer (org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer)1 SimpleJavaSourceViewerConfiguration (org.eclipse.jdt.internal.ui.text.SimpleJavaSourceViewerConfiguration)1 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)1 DefaultInformationControl (org.eclipse.jface.text.DefaultInformationControl)1 IInformationControl (org.eclipse.jface.text.IInformationControl)1 IInformationControlCreator (org.eclipse.jface.text.IInformationControlCreator)1 AnnotationRulerColumn (org.eclipse.jface.text.source.AnnotationRulerColumn)1 DefaultAnnotationHover (org.eclipse.jface.text.source.DefaultAnnotationHover)1 IAnnotationAccess (org.eclipse.jface.text.source.IAnnotationAccess)1 IAnnotationHover (org.eclipse.jface.text.source.IAnnotationHover)1 ISharedTextColors (org.eclipse.jface.text.source.ISharedTextColors)1 ISourceViewer (org.eclipse.jface.text.source.ISourceViewer)1 IVerticalRuler (org.eclipse.jface.text.source.IVerticalRuler)1 LineNumberRulerColumn (org.eclipse.jface.text.source.LineNumberRulerColumn)1 RGB (org.eclipse.swt.graphics.RGB)1