public class FilterableConstraint extends java.lang.Object implements IFilterable
IConstraint
that is exposed to the preference store of Eclipse
and allows to enable/disable the check of the constraint during the model validation.Constructor and Description |
---|
FilterableConstraint(IConstraint constraint)
Wraps the IConstraint passed as parameter and set its status accordingly to the one set in the preferences.
|
Modifier and Type | Method and Description |
---|---|
IConstraint |
getConstraint()
Returns the wrapped constraint.
|
boolean |
isActive()
Checks if is active.
|
void |
setActive(boolean b)
Sets the status.
|
public FilterableConstraint(IConstraint constraint)
constraint
- the constraintpublic void setActive(boolean b)
IFilterable
setActive
in interface IFilterable
b
- the new activepublic boolean isActive()
IFilterable
isActive
in interface IFilterable
public IConstraint getConstraint()