Package org.eclipse.jface.text.source

Examples of org.eclipse.jface.text.source.IAnnotationPresentation


   * @see org.eclipse.jface.text.source.IAnnotationAccessExtension#getLayer(org.eclipse.jface.text.source.Annotation)
   * @since 3.0
   */
  public int getLayer(Annotation annotation) {
    if (annotation instanceof IAnnotationPresentation) {
      IAnnotationPresentation presentation= (IAnnotationPresentation) annotation;
      return presentation.getLayer();
    }
   
    AnnotationPreference preference= getAnnotationPreference(annotation);
    if (preference != null)
      return preference.getPresentationLayer();
View Full Code Here


   * @since 3.0
   */
  public void paint(Annotation annotation, GC gc, Canvas canvas, Rectangle bounds) {

    if (annotation instanceof IAnnotationPresentation) {
      IAnnotationPresentation presentation= (IAnnotationPresentation) annotation;
      presentation.paint(gc, canvas, bounds);
      return;
    }

    AnnotationPreference preference= getAnnotationPreference(annotation);
    if (preference != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.source.IAnnotationPresentation

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.