1 11 package org.eclipse.ui.texteditor.spelling; 12 13 import org.eclipse.jface.text.quickassist.IQuickFixableAnnotation; 14 import org.eclipse.jface.text.source.Annotation; 15 16 21 public class SpellingAnnotation extends Annotation implements IQuickFixableAnnotation { 22 23 24 public static final String TYPE= "org.eclipse.ui.workbench.texteditor.spelling"; 26 27 private SpellingProblem fSpellingProblem; 28 29 30 35 public SpellingAnnotation(SpellingProblem problem) { 36 super(TYPE, false, problem.getMessage()); 37 fSpellingProblem= problem; 38 } 39 40 43 public boolean isQuickFixable() { 44 return true; 45 } 46 47 50 public boolean isQuickFixableStateSet() { 51 return true; 52 } 53 54 57 public void setQuickFixable(boolean state) { 58 } 60 61 66 public SpellingProblem getSpellingProblem() { 67 return fSpellingProblem; 68 } 69 70 } 71 | Popular Tags |