Search in sources :

Example 21 with BeModelElement

use of com.developmentontheedge.be5.metadata.model.base.BeModelElement in project be5 by DevelopmentOnTheEdge.

the class VariableSelector method getAsText.

@Override
public String getAsText() {
    String name = super.getAsText();
    if (name.isEmpty())
        return "(none)";
    Project project = ((BeModelElement) getBean()).getProject();
    String value = project.getVariableValue(name);
    return name + " (" + value + ")";
}
Also used : Project(com.developmentontheedge.be5.metadata.model.Project) BeModelElement(com.developmentontheedge.be5.metadata.model.base.BeModelElement)

Aggregations

BeModelElement (com.developmentontheedge.be5.metadata.model.base.BeModelElement)9 ColumnDef (com.developmentontheedge.be5.metadata.model.ColumnDef)8 DynamicProperty (com.developmentontheedge.beans.DynamicProperty)7 BeModelCollection (com.developmentontheedge.be5.metadata.model.base.BeModelCollection)3 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 LinkedHashMap (java.util.LinkedHashMap)3 ReadException (com.developmentontheedge.be5.metadata.exception.ReadException)2 Entity (com.developmentontheedge.be5.metadata.model.Entity)2 Project (com.developmentontheedge.be5.metadata.model.Project)2 BeElementWithOriginModule (com.developmentontheedge.be5.metadata.model.base.BeElementWithOriginModule)2 Timestamp (java.sql.Timestamp)2 Date (java.util.Date)2 Map (java.util.Map)2 ProjectElementException (com.developmentontheedge.be5.metadata.exception.ProjectElementException)1 WriteException (com.developmentontheedge.be5.metadata.exception.WriteException)1 GroovyOperation (com.developmentontheedge.be5.metadata.model.GroovyOperation)1 JavaOperation (com.developmentontheedge.be5.metadata.model.JavaOperation)1 BeCaseInsensitiveCollection (com.developmentontheedge.be5.metadata.model.base.BeCaseInsensitiveCollection)1 Field (com.developmentontheedge.be5.metadata.serialization.Field)1