/** * Creates a new comment reconcile strategy. * * @param viewer the source viewer * @param spellingService the spelling service to use */ public SpellingReconcileStrategy(ISourceViewer viewer, SpellingService spellingService) { Assert.isNotNull(viewer); Assert.isNotNull(spellingService); fViewer= viewer; fSpellingService= spellingService; fSpellingContext= new SpellingContext(); fSpellingContext.setContentType(getContentType()); }
protected XtextSpellingReconcileStrategy(ISourceViewer viewer) { super(viewer, EditorsUI.getSpellingService()); spellingContext.setContentType(getContentType()); }
public void check(IDocument document, IRegion[] regions, SpellingContext context, ISpellingProblemCollector collector, IProgressMonitor monitor) { ISpellingEngine engine= getEngine(context.getContentType()); if (engine == null) engine= getEngine(TEXT_CONTENT_TYPE); if (engine != null) engine.check(document, regions, context, collector, monitor); }
@Override public void check(IDocument document, IRegion[] regions, SpellingContext context, ISpellingProblemCollector collector, IProgressMonitor monitor) { ISpellingEngine engine= getEngine(context.getContentType()); if (engine == null) engine= getEngine(TEXT_CONTENT_TYPE); if (engine != null) engine.check(document, regions, context, collector, monitor); }
/** * Creates a new comment reconcile strategy. * * @param viewer the source viewer * @param spellingService the spelling service to use */ public SpellingReconcileStrategy(ISourceViewer viewer, SpellingService spellingService) { Assert.isNotNull(viewer); Assert.isNotNull(spellingService); fViewer= viewer; fSpellingService= spellingService; fSpellingContext= new SpellingContext(); fSpellingContext.setContentType(getContentType()); }
@Override public void check(IDocument document, IRegion[] regions, SpellingContext context, ISpellingProblemCollector collector, IProgressMonitor monitor) { ISpellingEngine engine= getEngine(context.getContentType()); if (engine == null) engine= getEngine(TEXT_CONTENT_TYPE); if (engine != null) engine.check(document, regions, context, collector, monitor); }
/** * Creates a new comment reconcile strategy. * * @param viewer the source viewer * @param spellingService the spelling service to use */ public SpellingReconcileStrategy(ISourceViewer viewer, SpellingService spellingService) { Assert.isNotNull(viewer); Assert.isNotNull(spellingService); fViewer= viewer; fSpellingService= spellingService; fSpellingContext= new SpellingContext(); fSpellingContext.setContentType(getContentType()); }