public interface IQuickFixableAnnotation
Caching the state is important to improve overall performance as calling
IQuickAssistAssistant.canFix(Annotation)
can be expensive.
This interface can be implemented by clients.
Modifier and Type | Method and Description |
---|---|
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.
|
void setQuickFixable(boolean state)
state
- true
if there are quick fixes available, false otherwiseboolean 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 setboolean isQuickFixable() throws AssertionFailedException
Note: This method must only be called
if isQuickFixableStateSet()
returns true
.
true
if this annotation offers quick fixesAssertionFailedException
- if called when isQuickFixableStateSet()
is false
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.