Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.AnnotationPreferenceLookup


   * @return the annotation preference lookup
   * @since 3.0
   */
  public AnnotationPreferenceLookup getAnnotationPreferenceLookup() {
    if (fAnnotationPreferenceLookup == null)
      fAnnotationPreferenceLookup= new AnnotationPreferenceLookup();
    return fAnnotationPreferenceLookup;
  }
View Full Code Here


        // TODO This should not depend on the SelectionAnnotation, but be
        // configurable like all colors!
        String annotationType = SelectionAnnotation.TYPE + "."
            + String.valueOf(colorID + 1);

        AnnotationPreferenceLookup lookup = EditorsUI
            .getAnnotationPreferenceLookup();
        AnnotationPreference ap = lookup
            .getAnnotationPreference(annotationType);
        if (ap == null) {
            return null;
        }
View Full Code Here

        String annotationTypeForViewPort = ViewportAnnotation.TYPE + "."
            + String.valueOf(colorID + 1);
        String annotationTypeForContribution = ContributionAnnotation.TYPE
            + "." + String.valueOf(colorID + 1);

        AnnotationPreferenceLookup lookup = EditorsUI
            .getAnnotationPreferenceLookup();

        final AnnotationPreference ap = lookup
            .getAnnotationPreference(annotationType);

        final AnnotationPreference apForViewPort = lookup
            .getAnnotationPreference(annotationTypeForViewPort);

        final AnnotationPreference apForContribution = lookup
            .getAnnotationPreference(annotationTypeForContribution);

        if (ap == null) {
            return;
        }
View Full Code Here

        String annotationType = ViewportAnnotation.TYPE + "."
            + (source.getColorID() + 1);
        setType(annotationType);

        AnnotationPreferenceLookup lookup = EditorsUI
            .getAnnotationPreferenceLookup();
        AnnotationPreference annotationPreference = lookup
            .getAnnotationPreference(annotationType);
        RGB rgb = PreferenceConverter.getColor(EditorsUI.getPreferenceStore(),
            annotationPreference.getColorPreferenceKey());

        Display display = Display.getDefault();
View Full Code Here

   * @param overviewRulerKey the preference key for the presentation in the overview  ruler
   * @param layer the layer
   */
  public void setAnnotationPainterPreferenceKeys(Object type, String colorKey, String editorKey, String overviewRulerKey, int layer) {
    AnnotationPreference info = null;
    AnnotationPreferenceLookup prefLookup = new AnnotationPreferenceLookup();
    if(prefLookup != null) {
      // different versions may pas a string or an annotation
      if(type instanceof Annotation) {
        info = prefLookup.getAnnotationPreference((Annotation) type);
      } else {
        info = prefLookup.getAnnotationPreference((String)type);
      }     
    }
    if(info == null) {
      info= new AnnotationPreference(type, colorKey, editorKey, overviewRulerKey, layer);     
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.AnnotationPreferenceLookup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.