Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2017-03-15 13:35:06 -0400
committerAlexander Kurtakov2017-03-16 05:50:38 -0400
commit2506487936fb97d773fe2797e919a44d830b23b2 (patch)
tree5755e24fa589a9d0ba01cead65f3d6cbf4afec1d
parentc07ac490577295e392ac81a6694b5629182694b2 (diff)
downloadeclipse.platform.text-I20170322-2000.tar.gz
eclipse.platform.text-I20170322-2000.tar.xz
eclipse.platform.text-I20170322-2000.zip
Most clients of the Generic Editor so far don't want spellchecker to be on by default. Adding spellchecker should be opt-in. For the moment, fully disable it and adopters who need spellchecking implement it as a document listener. Change-Id: I6bbad50614ec19e05c447d2793e758793ae777d3 Signed-off-by: Mickael Istria <mistria@redhat.com>
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java
index 5d21e4fd7..d24f71fc9 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java
@@ -33,6 +33,7 @@ import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.presentation.IPresentationReconciler;
import org.eclipse.jface.text.quickassist.IQuickAssistAssistant;
import org.eclipse.jface.text.quickassist.QuickAssistAssistant;
+import org.eclipse.jface.text.reconciler.IReconciler;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorPart;
@@ -46,7 +47,7 @@ import org.eclipse.ui.texteditor.ITextEditor;
* The configuration of the {@link ExtensionBasedTextEditor}. It registers the proxy composite
* for hover, completion, syntax highlighting, and then those proxy take care of resolving to
* the right extensions on-demand.
- *
+ *
* @since 1.0
*/
@SuppressWarnings("restriction")
@@ -60,7 +61,7 @@ public final class ExtensionBasedTextViewerConfiguration extends TextSourceViewe
private List<IContentAssistProcessor> processors;
/**
- *
+ *
* @param editor the editor we're creating.
* @param preferenceStore the preference store.
*/
@@ -174,4 +175,9 @@ public final class ExtensionBasedTextViewerConfiguration extends TextSourceViewe
});
return quickAssistAssistant;
}
+
+ @Override
+ public IReconciler getReconciler(ISourceViewer sourceViewer) {
+ return null; // to disable spell-checker
+ }
}

Back to the top