Search in sources :

Example 1 with DefinitionTypeModel

use of io.vertigo.studio.ui.model.DefinitionTypeModel in project vertigo by KleeGroup.

the class Studio method definitionTypes.

private List<DefinitionTypeModel> definitionTypes() {
    final ListBuilder<DefinitionTypeModel> listBuilder = new ListBuilder<>();
    for (final Class<? extends Definition> definitionClass : app.getDefinitionSpace().getAllTypes()) {
        final DefinitionTypeModel definitionTypeModel = new DefinitionTypeModel(definitionClass, app.getDefinitionSpace().getAll(definitionClass));
        listBuilder.add(definitionTypeModel);
    }
    return listBuilder.unmodifiable().build();
}
Also used : DefinitionTypeModel(io.vertigo.studio.ui.model.DefinitionTypeModel) ListBuilder(io.vertigo.util.ListBuilder)

Aggregations

DefinitionTypeModel (io.vertigo.studio.ui.model.DefinitionTypeModel)1 ListBuilder (io.vertigo.util.ListBuilder)1