Package at.bestsolution.efxclipse.text.jface

Examples of at.bestsolution.efxclipse.text.jface.TextPresentation$FilterIterator


   *         <code>null</code> if the partitioning could not be computed
   */
  protected TextPresentation createPresentation(IRegion damage, IDocument document) {
    try {
      if (fRepairers == null || fRepairers.isEmpty()) {
        TextPresentation presentation= new TextPresentation(damage, 100);
        presentation.setDefaultStyleRange(new StyleRange(damage.getOffset(), damage.getLength(), null, null));
        return presentation;
      }

      TextPresentation presentation= new TextPresentation(damage, 1000);

      ITypedRegion[] partitioning= TextUtilities.computePartitioning(document, getDocumentPartitioning(), damage.getOffset(), damage.getLength(), false);
      for (int i= 0; i < partitioning.length; i++) {
        ITypedRegion r= partitioning[i];
        IPresentationRepairer repairer= getRepairer(r.getType());
View Full Code Here


   * @param damage the damage to be repaired
   * @param document the document whose presentation must be repaired
   */
  private void processDamage(IRegion damage, IDocument document) {
    if (damage != null && damage.getLength() > 0) {
      TextPresentation p= createPresentation(damage, document);
      if (p != null)
        applyTextRegionCollection(p);
    }
  }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.text.jface.TextPresentation$FilterIterator

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.