diff options
author | Mickael Istria | 2017-03-15 17:35:06 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-03-16 09:50:38 +0000 |
commit | 2506487936fb97d773fe2797e919a44d830b23b2 (patch) | |
tree | 5755e24fa589a9d0ba01cead65f3d6cbf4afec1d | |
parent | c07ac490577295e392ac81a6694b5629182694b2 (diff) | |
download | eclipse.platform.text-2506487936fb97d773fe2797e919a44d830b23b2.tar.gz eclipse.platform.text-2506487936fb97d773fe2797e919a44d830b23b2.tar.xz eclipse.platform.text-2506487936fb97d773fe2797e919a44d830b23b2.zip |
Bug 513314 - [Generic editor] disable spellchecker reconcilerY20170321-2315Y20170321-0120I20170322-2000I20170321-2000I20170320-2000I20170319-2000I20170318-2000I20170317-2000I20170316-2000
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.java | 10 |
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 5d21e4fd75d..d24f71fc974 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 + } } |