// section.setTitle(labelText);
bar.setToolTipText(tooltip);
final UnionTypeValue[] valueTypes = complexProperty.getValueTypes();
final Object[] values = new Object[valueTypes.length];
bar.addSelectionListener(new SelectionListener() {
@Override
public void widgetSelected(SelectionEvent e) {
int idx = bar.getSelectionIndex();
if (idx >= 0 && idx < valueTypes.length) {
// lets update the model with the value for this tab