label.setLayoutData(data);
return label;
}
private CCombo createCCombo(Composite parent, List<String> values, TabbedPropertySheetWidgetFactory factory, Control top) {
CCombo combo = factory.createCCombo(parent, SWT.NONE);
for (String value : values) {
combo.add(value);
}
FormData data = new FormData();
data.left = new FormAttachment(0, 160);
data.right = new FormAttachment(100, 0);
if(top == null) {
data.top = new FormAttachment(0, VSPACE);
} else {
data.top = new FormAttachment(top, VSPACE);
}
combo.setLayoutData(data);
combo.addFocusListener(listener);
return combo;
}