* <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());