Package org.eclipse.ui.texteditor.spelling

Examples of org.eclipse.ui.texteditor.spelling.SpellingCorrectionProcessor


  public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (fPreferenceStore == null || !fPreferenceStore.getBoolean(SpellingService.PREFERENCE_SPELLING_ENABLED))
      return null;

    IQuickAssistAssistant assistant= new QuickAssistAssistant();
    assistant.setQuickAssistProcessor(new SpellingCorrectionProcessor());
    assistant.setInformationControlCreator(getQuickAssistAssistantInformationControlCreator());
   
    // Waiting for color preferences, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=133731
    assistant.setProposalSelectorBackground(sourceViewer.getTextWidget().getDisplay().getSystemColor(SWT.COLOR_WHITE));
    assistant.setProposalSelectorForeground(sourceViewer.getTextWidget().getDisplay().getSystemColor(SWT.COLOR_BLACK));
View Full Code Here


                    SpellingProblem spellingProblem = spellingAnnotation.getSpellingProblem();

                    int problemOffset = spellingProblem.getOffset();
                    int problemLen = spellingProblem.getLength();
                    if (problemOffset <= offset && problemOffset + problemLen >= offset) {
                        SpellingCorrectionProcessor spellingCorrectionProcessor = new SpellingCorrectionProcessor();
                        spellProps = spellingCorrectionProcessor.computeQuickAssistProposals(invocationContext);
                        break;
                    }
                }
            }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.spelling.SpellingCorrectionProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.