Search in sources :

Example 1 with Reconciler

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

the class ToggleComment method doOperation.

@Override
protected void doOperation(final int operationCode) {
    final ITextEditor editor = getTextEditor();
    final Reconciler reconciler = ((TTCN3Editor) editor).getReconciler();
    reconciler.allowIncrementalReconciler(false);
    operationTarget.doOperation(operationCode);
    reconciler.allowIncrementalReconciler(true);
}
Also used : TTCN3Editor(org.eclipse.titan.designer.editors.ttcn3editor.TTCN3Editor) ITextEditor(org.eclipse.ui.texteditor.ITextEditor) Reconciler(org.eclipse.titan.designer.editors.ttcn3editor.Reconciler)

Example 2 with Reconciler

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

the class IndentAction method performEdits.

@Override
protected void performEdits(final RewriteSessionEditProcessor processor) throws BadLocationException {
    Reconciler reconciler = ((TTCN3Editor) getTargetEditor()).getReconciler();
    reconciler.allowIncrementalReconciler(false);
    processor.performEdits();
    reconciler.allowIncrementalReconciler(true);
}
Also used : TTCN3Editor(org.eclipse.titan.designer.editors.ttcn3editor.TTCN3Editor) Reconciler(org.eclipse.titan.designer.editors.ttcn3editor.Reconciler)

Aggregations

Reconciler (org.eclipse.titan.designer.editors.ttcn3editor.Reconciler)2 TTCN3Editor (org.eclipse.titan.designer.editors.ttcn3editor.TTCN3Editor)2 ITextEditor (org.eclipse.ui.texteditor.ITextEditor)1