-
- TechTypeTableView.table.getDisplay().asyncExec(() -> {
- TechTypeTableView.table.setComponentType(componentType);
- });
+ if (componentType != null) {
+ TechTypeTableView.table.getDisplay().asyncExec(() -> {
+ TechTypeTableView.table.setComponentType(componentType);
+ });
+ } else {
+ String data = graph.getRelatedValue2(table, DN.TechType_TechTypeTable_HasData);
+ int[] enabled = graph.getPossibleRelatedValue2(table, DN.TechType_TechTypeTable_HasEnabledItems);
+ TechTypeTableView.table.getDisplay().asyncExec(() -> {
+ TechTypeTableView.table.setComponentType(null);
+ TechTypeTableView.table.setTechTypeData(data, enabled);
+ });
+ }