|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.source.Annotation
org.eclipse.ui.texteditor.spelling.SpellingAnnotation
public class SpellingAnnotation
Spelling annotation.
| Field Summary | |
|---|---|
static String |
TYPE
The spelling annotation type. |
| Fields inherited from class org.eclipse.jface.text.source.Annotation |
|---|
TYPE_UNKNOWN |
| Constructor Summary | |
|---|---|
SpellingAnnotation(SpellingProblem problem)
Creates a new spelling annotation. |
|
| Method Summary | |
|---|---|
SpellingProblem |
getSpellingProblem()
Returns the spelling problem. |
boolean |
isQuickFixable()
Tells whether there are quick fixes for this annotation. |
boolean |
isQuickFixableStateSet()
Tells whether the quick fixable state has been set. |
void |
setQuickFixable(boolean state)
Sets whether there are quick fixes available for this annotation. |
| Methods inherited from class org.eclipse.jface.text.source.Annotation |
|---|
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public SpellingAnnotation(SpellingProblem problem)
problem - the spelling problem.| Method Detail |
|---|
public boolean isQuickFixable()
IQuickFixableAnnotation
Note: This method must only be called
if IQuickFixableAnnotation.isQuickFixableStateSet() returns true.
isQuickFixable in interface IQuickFixableAnnotationtrue if this annotation offers quick fixespublic boolean isQuickFixableStateSet()
IQuickFixableAnnotation
Normally this means IQuickFixableAnnotation.setQuickFixable(boolean) has been
called at least once but it can also be hard-coded, e.g. always
return true.
isQuickFixableStateSet in interface IQuickFixableAnnotationtrue if the state has been setpublic void setQuickFixable(boolean state)
IQuickFixableAnnotation
setQuickFixable in interface IQuickFixableAnnotationstate - true if there are quick fixes available, false otherwisepublic SpellingProblem getSpellingProblem()
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.