1 11 12 package org.eclipse.jdt.internal.ui.text; 13 14 import org.eclipse.jface.text.IDocument; 15 import org.eclipse.jface.text.IRegion; 16 import org.eclipse.jface.text.TextPresentation; 17 import org.eclipse.jface.text.presentation.PresentationReconciler; 18 19 20 25 public class JavaPresentationReconciler extends PresentationReconciler { 26 27 28 private IDocument fLastDocument; 29 30 41 public TextPresentation createRepairDescription(IRegion damage, IDocument document) { 42 if (document != fLastDocument) { 43 setDocumentToDamagers(document); 44 setDocumentToRepairers(document); 45 fLastDocument= document; 46 } 47 return createPresentation(damage, document); 48 } 49 } 50 | Popular Tags |