Search in sources :

Example 1 with IntervallBasedDamagerRepairer

use of org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer in project titan.EclipsePlug-ins by eclipse.

the class Configuration method getPresentationReconciler.

@Override
public IPresentationReconciler getPresentationReconciler(final ISourceViewer sourceViewer) {
    if (presentationReconciler == null) {
        presentationReconciler = new PresentationReconciler();
        presentationReconciler.setDocumentPartitioning(PartitionScanner.TTCN3_PARTITIONING);
        IntervallBasedDamagerRepairer dr = new IntervallBasedDamagerRepairer(new CodeScanner(colorManager));
        presentationReconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
        presentationReconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
    }
    return presentationReconciler;
}
Also used : IntervallBasedDamagerRepairer(org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer) IPresentationReconciler(org.eclipse.jface.text.presentation.IPresentationReconciler) PresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler)

Example 2 with IntervallBasedDamagerRepairer

use of org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer in project titan.EclipsePlug-ins by eclipse.

the class Configuration method getPresentationReconciler.

@Override
public IPresentationReconciler getPresentationReconciler(final ISourceViewer sourceViewer) {
    if (presentationReconciler == null) {
        presentationReconciler = new PresentationReconciler();
        presentationReconciler.setDocumentPartitioning(PartitionScanner.TTCNPP_PARTITIONING);
        IntervallBasedDamagerRepairer dr = new IntervallBasedDamagerRepairer(new CodeScanner(colorManager));
        presentationReconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
        presentationReconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
    }
    return presentationReconciler;
}
Also used : IntervallBasedDamagerRepairer(org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer) IPresentationReconciler(org.eclipse.jface.text.presentation.IPresentationReconciler) PresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler)

Example 3 with IntervallBasedDamagerRepairer

use of org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer in project titan.EclipsePlug-ins by eclipse.

the class Configuration method getPresentationReconciler.

@Override
public IPresentationReconciler getPresentationReconciler(final ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();
    reconciler.setDocumentPartitioning(PartitionScanner.CONFIG_PARTITIONING);
    IntervallBasedDamagerRepairer dr = new IntervallBasedDamagerRepairer(new CodeScanner(colorManager));
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
    return reconciler;
}
Also used : IntervallBasedDamagerRepairer(org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer) IPresentationReconciler(org.eclipse.jface.text.presentation.IPresentationReconciler) PresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler)

Example 4 with IntervallBasedDamagerRepairer

use of org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer in project titan.EclipsePlug-ins by eclipse.

the class Configuration method getPresentationReconciler.

@Override
public IPresentationReconciler getPresentationReconciler(final ISourceViewer sourceViewer) {
    PresentationReconciler presentationReconciler = new PresentationReconciler();
    presentationReconciler.setDocumentPartitioning(PartitionScanner.ASN1_PARTITIONING);
    IntervallBasedDamagerRepairer dr = new IntervallBasedDamagerRepairer(new CodeScanner(colorManager));
    presentationReconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    presentationReconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
    return presentationReconciler;
}
Also used : IntervallBasedDamagerRepairer(org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer) IPresentationReconciler(org.eclipse.jface.text.presentation.IPresentationReconciler) PresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler)

Aggregations

IPresentationReconciler (org.eclipse.jface.text.presentation.IPresentationReconciler)4 PresentationReconciler (org.eclipse.jface.text.presentation.PresentationReconciler)4 IntervallBasedDamagerRepairer (org.eclipse.titan.designer.editors.IntervallBasedDamagerRepairer)4