Examples of markCollapsed()


Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotation.markCollapsed()

            ProjectionAnnotation pa = (ProjectionAnnotation) next;
            //foldable regions for strings have been marked by using the TextFoldedRegion class
            //there may indeed be better ways...
            Position position = model.getPosition(pa);
            if(position instanceof TypedFoldedRegion && type==((TypedFoldedRegion) position).getType()){
              pa.markCollapsed();
              toCollapse.add(pa);
            }
          }
        }
        model.modifyAnnotations(null, null, toCollapse.toArray(new Annotation[0]));
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotation.markCollapsed()

        Object next = iterator.next();
        if(next instanceof ProjectionAnnotation){
          ProjectionAnnotation pa = (ProjectionAnnotation) next;
          Position position = model.getPosition(pa);
          if(position instanceof TypedFoldedRegion &&typesToFold.contains(((TypedFoldedRegion) position).getType())){
            pa.markCollapsed();
            changes.add(pa);
          }
        }
      }
      model.modifyAnnotations(null,null, changes.toArray(new Annotation[0]));
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.