Package org.eclipse.jface.text.source.projection

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.addAnnotation()


      IAnnotationModel aModel = viewer.getAnnotationModel();
      for(int i=0;i<allAnnotations.length;i++) {
          AnnotationPosition ap = (AnnotationPosition)allAnnotations[i];
          Position p = new Position(ap.position().offset+offset,ap.position().length);
          if (ap.annotation() instanceof ProjectionAnnotation) {
              pModel.addAnnotation(ap.annotation(),p);
            
              // Don't collapse this in here in case there are
              // non-collapsed nested annotations
              // that haven't been added to the model yet.
              if (ap.collapsed()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.