Search in sources :

Example 1 with BuildInfo

use of com.haulmont.cuba.core.global.BuildInfo in project cuba by cuba-platform.

the class AboutWindow method init.

@Override
public void init(Map<String, Object> params) {
    BuildInfo.Content content = buildInfo.getContent();
    for (Map.Entry<String, String> entry : content.getProperties().entrySet()) {
        KeyValueEntity entity = new KeyValueEntity();
        String name = messages.getMainMessage("buildInfo." + entry.getKey());
        if (name.equals("buildInfo." + entry.getKey()))
            name = entry.getKey();
        entity.setValue("name", name);
        entity.setValue("value", entry.getValue());
        buildInfoDs.includeItem(entity);
    }
}
Also used : BuildInfo(com.haulmont.cuba.core.global.BuildInfo) Map(java.util.Map) KeyValueEntity(com.haulmont.cuba.core.entity.KeyValueEntity)

Aggregations

KeyValueEntity (com.haulmont.cuba.core.entity.KeyValueEntity)1 BuildInfo (com.haulmont.cuba.core.global.BuildInfo)1 Map (java.util.Map)1