public class SpellingAnnotation extends Annotation implements IQuickFixableAnnotation
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
The spelling annotation type.
|
TYPE_UNKNOWN| Constructor and Description |
|---|
SpellingAnnotation(SpellingProblem problem)
Creates a new spelling annotation.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setTypepublic static final String TYPE
public SpellingAnnotation(SpellingProblem problem)
problem - the spelling problem.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)
IQuickFixableAnnotationsetQuickFixable in interface IQuickFixableAnnotationstate - true if there are quick fixes available, false otherwisepublic SpellingProblem getSpellingProblem()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.