use of com.developmentontheedge.beans.annot.PropertyName in project be5 by DevelopmentOnTheEdge.
the class BeModelElementSupport method isAvailable.
@PropertyName("Available in current project")
@Override
public boolean isAvailable() {
if (usedInExtras == null || usedInExtras.length == 0)
return true;
Module module = getModule();
String[] extras = module == null ? Strings2.EMPTY : module.getExtras();
Project project = getProject();
for (String usedInExtra : usedInExtras) {
if (!hasExtra(extras, project, usedInExtra))
return false;
}
return true;
}
Aggregations