use of org.apache.syncope.ide.eclipse.plugin.editors.htmlhelpers.HTMLTagDamagerRepairer in project syncope by apache.
the class HTMLSourceConfiguration method getPresentationReconciler.
@Override
public IPresentationReconciler getPresentationReconciler(final ISourceViewer sourceViewer) {
PresentationReconciler reconciler = new PresentationReconciler();
DefaultDamagerRepairer dr = null;
dr = new HTMLTagDamagerRepairer(getTagScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.HTML_TAG);
reconciler.setRepairer(dr, HTMLPartitionScanner.HTML_TAG);
dr = new HTMLTagDamagerRepairer(getTagScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.PREFIX_TAG);
reconciler.setRepairer(dr, HTMLPartitionScanner.PREFIX_TAG);
dr = new HTMLTagDamagerRepairer(getSyncopeTagScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.SYNCOPE_TAG);
reconciler.setRepairer(dr, HTMLPartitionScanner.SYNCOPE_TAG);
dr = new HTMLTagDamagerRepairer(getHTMLScanner());
reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
dr = new HTMLTagDamagerRepairer(getCommentScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.HTML_COMMENT);
reconciler.setRepairer(dr, HTMLPartitionScanner.HTML_COMMENT);
dr = new DefaultDamagerRepairer(getScriptScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.HTML_SCRIPT);
reconciler.setRepairer(dr, HTMLPartitionScanner.HTML_SCRIPT);
dr = new DefaultDamagerRepairer(getDoctypeScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.HTML_DOCTYPE);
reconciler.setRepairer(dr, HTMLPartitionScanner.HTML_DOCTYPE);
dr = new DefaultDamagerRepairer(getDirectiveScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.HTML_DIRECTIVE);
reconciler.setRepairer(dr, HTMLPartitionScanner.HTML_DIRECTIVE);
dr = new JavaScriptDamagerRepairer(getJavaScriptScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.JAVASCRIPT);
reconciler.setRepairer(dr, HTMLPartitionScanner.JAVASCRIPT);
dr = new JavaScriptDamagerRepairer(getCSSScanner());
reconciler.setDamager(dr, HTMLPartitionScanner.HTML_CSS);
reconciler.setRepairer(dr, HTMLPartitionScanner.HTML_CSS);
return reconciler;
}
Aggregations