use of org.openlca.core.model.Category in project olca-app by GreenDelta.
the class CommentsPage method getFullPath.
private String getFullPath(Comment comment) {
if (// not needed
model != null)
return null;
var descriptor = getDescriptor(comment.type(), comment.refId());
Category category = getCategory(descriptor);
List<String> categories = Categories.path(category);
if (categories == null || categories.size() == 0)
return descriptor.name;
return Strings.join(categories, '/') + "/" + descriptor.name;
}
use of org.openlca.core.model.Category in project olca-app by GreenDelta.
the class NavigationTreeFilter method validCategory.
private boolean validCategory(CategoryElement e) {
Category c = e.getContent();
if (c == null || c.modelType == null)
return false;
ModelType type = c.modelType;
return (type.isOneOf(ModelType.PROCESS, ModelType.PRODUCT_SYSTEM)) && hasModelChilds(e);
}
Aggregations