Search in sources :

Example 1 with PropertyName

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;
}
Also used : Project(com.developmentontheedge.be5.metadata.model.Project) Module(com.developmentontheedge.be5.metadata.model.Module) PropertyName(com.developmentontheedge.beans.annot.PropertyName)

Aggregations

Module (com.developmentontheedge.be5.metadata.model.Module)1 Project (com.developmentontheedge.be5.metadata.model.Project)1 PropertyName (com.developmentontheedge.beans.annot.PropertyName)1