/** * Creates a new spelling problem collector. * * @return the collector or <code>null</code> if none is available */ protected ISpellingProblemCollector createSpellingProblemCollector() { IAnnotationModel model= getAnnotationModel(); if (model == null) return null; return new SpellingProblemCollector(model); }
@Override public void reconcile(IRegion region) { if (getAnnotationModel() == null || fSpellingProblemCollector == null) return; fRegions[0]= region; fSpellingService.check(fDocument, fRegions, fSpellingContext, fSpellingProblemCollector, fProgressMonitor); }
@Override public void statusChanged(IStatus status) { fStatus= status; fMonitor.statusChanged(status); }
@Override public void run() throws Exception { engine.check(document, regions, context, collector, monitor); } @Override
/** * Creates a new spelling annotation. * * @param problem the spelling problem. */ public SpellingAnnotation(SpellingProblem problem) { super(TYPE, false, problem.getMessage()); fSpellingProblem= problem; }
/** * Returns the proposals for the incorrectly spelled region. * * @param context the invocation context or <code>null</code> if none * @return the proposals for the incorrectly spelled region * @since 3.4 */ public ICompletionProposal[] getProposals(IQuickAssistInvocationContext context) { return getProposals(); } }
public PropertiesCorrectionProcessor(PropertiesCorrectionAssistant assistant) { fAssistant= assistant; fSpellingCorrectionProcessor= new SpellingCorrectionProcessor(); }
@Override public void setDocument(IDocument document) { fDocument= document; fSpellingProblemCollector= createSpellingProblemCollector(); }
@Override public String getText(Object element) { return ((SpellingEngineDescriptor) element).getLabel(); } });
@Override public void run() throws Exception { result[0]= fCurrentBlock.createControl(fGroup); } @Override
@Override public void run() throws Exception { fCurrentBlock.initialize(fStatusMonitor); } @Override
@Override public void run() throws Exception { preferenceBlock.setEnabled(enabled); } @Override
public void reconcile(IRegion region) { if (getAnnotationModel() == null || fSpellingProblemCollector == null) return; fSpellingService.check(fDocument, fSpellingContext, fSpellingProblemCollector, fProgressMonitor); }
/** * Creates a new spelling problem collector. * * @return the collector or <code>null</code> if none is available */ protected ISpellingProblemCollector createSpellingProblemCollector() { IAnnotationModel model= getAnnotationModel(); if (model == null) return null; return new SpellingProblemCollector(model); }
@Override public void statusChanged(IStatus status) { fStatus= status; fForwardedMonitor.statusChanged(status); }
@Override public void run() throws Exception { engine.check(document, regions, context, collector, monitor); } @Override
/** * Returns the proposals for the incorrectly spelled region. * * @param context the invocation context or <code>null</code> if none * @return the proposals for the incorrectly spelled region * @since 3.4 */ public ICompletionProposal[] getProposals(IQuickAssistInvocationContext context) { return getProposals(); } }
@Override public void reconcile(IRegion region) { if (getAnnotationModel() == null || fSpellingProblemCollector == null) return; fRegions[0]= region; fSpellingService.check(fDocument, fRegions, fSpellingContext, fSpellingProblemCollector, fProgressMonitor); }
/** * Creates a new spelling problem collector. * * @return the collector or <code>null</code> if none is available */ protected ISpellingProblemCollector createSpellingProblemCollector() { IAnnotationModel model= getAnnotationModel(); if (model == null) return null; return new SpellingProblemCollector(model); }
@Override public void statusChanged(IStatus status) { fStatus= status; fMonitor.statusChanged(status); }