Search in sources :

Example 1 with ErlReconciler

use of org.erlide.ui.editors.internal.reconciling.ErlReconciler in project erlide_eclipse by erlang.

the class ErlangSourceViewerConfiguration method getReconciler.

@Override
public IReconciler getReconciler(final ISourceViewer sourceViewer) {
    final ErlReconcilingStrategy strategy = new ErlReconcilingStrategy(null);
    final IErlModule module = null;
    final String path = null;
    final ErlReconciler reconciler = new ErlReconciler(strategy, true, true, path, module, null);
    reconciler.setProgressMonitor(new NullProgressMonitor());
    reconciler.setIsAllowedToModifyDocument(false);
    reconciler.setDelay(500);
    return reconciler;
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) ErlReconcilingStrategy(org.erlide.ui.editors.internal.reconciling.ErlReconcilingStrategy) IErlModule(org.erlide.engine.model.root.IErlModule) ErlReconciler(org.erlide.ui.editors.internal.reconciling.ErlReconciler)

Example 2 with ErlReconciler

use of org.erlide.ui.editors.internal.reconciling.ErlReconciler in project erlide_eclipse by erlang.

the class EditorConfiguration method getReconciler.

@Override
public IReconciler getReconciler(final ISourceViewer sourceViewer) {
    final ErlReconcilingStrategy strategy = new ErlReconcilingStrategy(editor);
    final IErlModule module = editor != null ? editor.getModule() : null;
    final String path = module != null ? module.getFilePath() : null;
    reconciler = new ErlReconciler(strategy, true, true, path, module, getEditor());
    reconciler.setProgressMonitor(new NullProgressMonitor());
    reconciler.setIsAllowedToModifyDocument(false);
    reconciler.setDelay(500);
    return reconciler;
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) ErlReconcilingStrategy(org.erlide.ui.editors.internal.reconciling.ErlReconcilingStrategy) IErlModule(org.erlide.engine.model.root.IErlModule) ErlReconciler(org.erlide.ui.editors.internal.reconciling.ErlReconciler)

Aggregations

NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 IErlModule (org.erlide.engine.model.root.IErlModule)2 ErlReconciler (org.erlide.ui.editors.internal.reconciling.ErlReconciler)2 ErlReconcilingStrategy (org.erlide.ui.editors.internal.reconciling.ErlReconcilingStrategy)2