Package org.eclipse.ui.texteditor.spelling

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


            Iterator<Object> it = annotationModel.getAnnotationIterator();
            while (it.hasNext()) {
                Object annotation = it.next();
                if (annotation instanceof SpellingAnnotation) {
                    SpellingAnnotation spellingAnnotation = (SpellingAnnotation) annotation;
                    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.SpellingProblem

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.