Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IDocumentPartitioner.computePartitioning()


  private void foldPartitions(HashMap markerMap, String partitionType, boolean autoCollapse, int minLines) {
    // This will hold the regions that should have folding markers.
    ArrayList regions = new ArrayList();

    IDocumentPartitioner partitioner = doc.getDocumentPartitioner();
    ITypedRegion[] regionArray = partitioner.computePartitioning(0, doc.getLength());

    for (int i = 0; i < regionArray.length; i++) {
      ITypedRegion region = regionArray[i];
      if (region.getType() == partitionType) {
        // Position position= new Position(region.getOffset(),
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.