Method name to table provider builder in case its doubling tables

This commit is contained in:
Risto Lahtela 2021-04-27 18:53:45 +03:00
parent 322ec3c57c
commit e922697ced

View File

@ -150,10 +150,10 @@ public class DataValueGatherer {
}
private DataValue<Table> tryToBuildTable(ExtensionDataBuilder dataBuilder, Parameters parameters, ExtensionMethod provider) {
TableProvider annotation = provider.getExistingAnnotation(TableProvider.class);
try {
return dataBuilder.valueBuilder(provider.getMethodName())
.methodName(provider)
.conditional(provider.getAnnotationOrNull(Conditional.class))
.showOnTab(provider.getAnnotationOrNull(Tab.class))
.buildTable(() -> callMethod(provider, parameters, Table.class), annotation.tableColor());