|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Allows an annotation to tell whether there are quick fixes for it and to cache that state.
Caching the state is important to improve overall performance as calling
IQuickAssistAssistant.canFix(Annotation)
can be expensive.
This interface can be implemented by clients.
Method Summary | |
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. |
Method Detail |
public void setQuickFixable(boolean state)
state
- true
if there are quick fixes available, false otherwisepublic boolean isQuickFixableStateSet()
Normally this means setQuickFixable(boolean)
has been
called at least once but it can also be hard-coded, e.g. always
return true
.
true
if the state has been setpublic boolean isQuickFixable() throws AssertionFailedException
Note: This method must only be called
if isQuickFixableStateSet()
returns true
.
true
if this annotation offers quick fixes
AssertionFailedException
- if called when isQuickFixableStateSet()
is false
|
Eclipse Platform Release 3.4 |
||||||||||
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, 2008. All rights reserved.