Package org.eclipse.ui.texteditor.spelling

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


         * @see org.eclipse.ui.texteditor.spelling.ISpellingProblemCollector#accept(org.eclipse.ui.texteditor.spelling.SpellingProblem)
         */
        @SuppressWarnings("unchecked")
        public void accept(SpellingProblem problem) {
            fAddAnnotations
                    .put(new SpellingAnnotation(problem), new Position(problem.getOffset(), problem.getLength()));
        }
View Full Code Here


            IAnnotationModel annotationModel = editor.getPySourceViewer().getAnnotationModel();
            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();
View Full Code Here

          return;
        }
      } catch (BadLocationException e) {
        // ignore
      }
      fAddAnnotations.put(new SpellingAnnotation(problem), new Position(problem.getOffset(), problem.getLength()));
    }
View Full Code Here

TOP

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

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.