contentTypes.add(IDocument.DEFAULT_CONTENT_TYPE);
return contentTypes.toArray(new String[0]);
}
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
PresentationReconciler reconciler = new PresentationReconciler();
DefaultDamagerRepairer dr = null;
dr = new DefaultDamagerRepairer(_tagScanner);
reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
dr = new DefaultDamagerRepairer(_tagStartTagContentScanner);
reconciler.setDamager(dr, TMLPartitionScanner.TML_TAG_START);
reconciler.setRepairer(dr, TMLPartitionScanner.TML_TAG_START);
dr = new DefaultDamagerRepairer(_tagEndTagContentScanner);
reconciler.setDamager(dr, TMLPartitionScanner.TML_TAG_STOP);
reconciler.setRepairer(dr, TMLPartitionScanner.TML_TAG_STOP);
dr = new DefaultDamagerRepairer(_tmlScriptScanner);
reconciler.setDamager(dr, TMLScriptPartitionScanner.TMLSCRIPT);
reconciler.setRepairer(dr, TMLScriptPartitionScanner.TMLSCRIPT);
NonRuleBasedDamagerRepairer ndr = new NonRuleBasedDamagerRepairer(TextStyles.COMMENT);
reconciler.setDamager(ndr, TMLPartitionScanner.COMMENT);
reconciler.setRepairer(ndr, TMLPartitionScanner.COMMENT);
ndr = new NonRuleBasedDamagerRepairer(TextStyles.COMMENT);
reconciler.setDamager(ndr, TMLPartitionScanner.TML_COMMENT);
reconciler.setRepairer(ndr, TMLPartitionScanner.TML_COMMENT);
ndr = new NonRuleBasedDamagerRepairer(TextStyles.COMMENT);
reconciler.setDamager(ndr, TMLScriptPartitionScanner.MCOMMENT);
reconciler.setRepairer(ndr, TMLScriptPartitionScanner.MCOMMENT);
ndr = new NonRuleBasedDamagerRepairer(TextStyles.COMMENT);
reconciler.setDamager(ndr, TMLScriptPartitionScanner.SCOMMENT);
reconciler.setRepairer(ndr, TMLScriptPartitionScanner.SCOMMENT);
ndr = new NonRuleBasedDamagerRepairer(TextStyles.DISABLED);
reconciler.setDamager(ndr, TMLPartitionScanner.TML_DISABLE);
reconciler.setRepairer(ndr, TMLPartitionScanner.TML_DISABLE);
ndr = new NonRuleBasedDamagerRepairer(TextStyles.TML_METAHEADER);
reconciler.setDamager(ndr, TMLPartitionScanner.TML_METAHEADER);
reconciler.setRepairer(ndr, TMLPartitionScanner.TML_METAHEADER);
return reconciler;
}