Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.AbstractDocument


   */
  private Iterator getRegionAnnotationIterator(int offset, int length, boolean canStartBefore, boolean canEndAfter) {
    if (!(fDocument instanceof AbstractDocument))
      return new RegionIterator(getAnnotationIterator(true), this, offset, length, canStartBefore, canEndAfter);

    AbstractDocument document= (AbstractDocument) fDocument;
    cleanup(true);

    try {
      Position[] positions= document.getPositions(IDocument.DEFAULT_CATEGORY, offset, length, canStartBefore, canEndAfter);
      return new AnnotationsInterator(positions, fPositions);
    } catch (BadPositionCategoryException e) {
      //can not happen
      Assert.isTrue(false);
      return null;
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.AbstractDocument

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.