use of org.eclipse.sirius.components.compatibility.forms.WidgetIdProvider in project sirius-web by eclipse-sirius.
the class RepresentationsDescriptionProvider method getGroupDescription.
private GroupDescription getGroupDescription() {
List<AbstractControlDescription> controlDescriptions = new ArrayList<>();
// @formatter:off
ListDescription listDescription = // $NON-NLS-1$
ListDescription.newListDescription("RepresentationsList").idProvider(new WidgetIdProvider()).labelProvider(// $NON-NLS-1$
(variableManager) -> "Representations").itemsProvider(this.getItemsProvider()).itemIdProvider(this.getItemIdProvider()).itemLabelProvider(this.getItemLabelProvider()).itemImageURLProvider(this.getItemImageURLProvider()).itemDeletableProvider(this.getItemDeletableProvider()).itemDeleteHandlerProvider(this.getItemDeleteHandlerProvider()).itemKindProvider(this.getItemKindProvider()).diagnosticsProvider((variableManager) -> List.of()).kindProvider(// $NON-NLS-1$
(object) -> "").messageProvider(// $NON-NLS-1$
(object) -> "").build();
// @formatter:on
controlDescriptions.add(listDescription);
// @formatter:off
return // $NON-NLS-1$
GroupDescription.newGroupDescription("representationsGroupId").idProvider(// $NON-NLS-1$
variableManager -> "Representations Group").labelProvider(// $NON-NLS-1$
variableManager -> "Representations Group").semanticElementsProvider(variableManager -> Collections.singletonList(variableManager.getVariables().get(VariableManager.SELF))).controlDescriptions(controlDescriptions).build();
// @formatter:on
}
Aggregations