Package org.eclipse.jface.text.presentation

Examples of org.eclipse.jface.text.presentation.IPresentationDamager


   */
  protected void setDocumentToDamagers(IDocument document) {
    if (fDamagers != null) {
      Iterator e= fDamagers.values().iterator();
      while (e.hasNext()) {
        IPresentationDamager damager= (IPresentationDamager) e.next();
        damager.setDocument(document);
      }
    }
  }
View Full Code Here


    try {
      int offset= e.getOffset();
      if (isDeletion)
        offset= Math.max(0, offset - 1);
      ITypedRegion partition= getPartition(e.getDocument(), offset);
      IPresentationDamager damager= getDamager(partition.getType());
      if (damager == null)
        return null;

      IRegion r= damager.getDamageRegion(partition, e, fDocumentPartitioningChanged);

      if (!fDocumentPartitioningChanged && optimize && !isDeletion) {
        damage= r;
      } else {
View Full Code Here

    int end= fRememberedPosition == null ? -1 : fRememberedPosition.getOffset() + fRememberedPosition.getLength();
    if (endOffset < end && end < d.getLength())
      partition= getPartition(d, end);

    //if there is not damager for the partition then use the endOffset of the partition
    IPresentationDamager damager= getDamager(partition.getType());
    if (damager != null) {
      IRegion r= damager.getDamageRegion(partition, e, fDocumentPartitioningChanged);
      endOffset = r.getOffset() + r.getLength();
    }

    return endOffset;
  }
View Full Code Here

  }

  private void addDamagerRepairerForContentType(
      PresentationReconciler reconciler, String contentType) {
   
    IPresentationDamager d = new ClojureTopLevelFormsDamager(editor);
    reconciler.setDamager(d, contentType);
   
    IPresentationRepairer r = new DefaultDamagerRepairer(tokenScanner);
    reconciler.setRepairer(r, contentType);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.presentation.IPresentationDamager

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.