Composite selectorComposite = new Composite(content, SWT.NONE);
GridDataFactory.swtDefaults().applyTo(selectorComposite);
- RowLayoutFactory.swtDefaults().applyTo(selectorComposite);
+ RowLayoutFactory.fillDefaults().applyTo(selectorComposite);
nField = new Text(selectorComposite, SWT.BORDER);
RowDataFactory.swtDefaults().hint(40, SWT.DEFAULT).applyTo(nField);
RowDataFactory.swtDefaults().hint(40, SWT.DEFAULT).applyTo(selectorField);
propertyField = new Combo(selectorComposite, SWT.NONE);
- RowDataFactory.swtDefaults().hint(80, SWT.DEFAULT).applyTo(propertyField);
+ RowDataFactory.swtDefaults().hint(120, SWT.DEFAULT).applyTo(propertyField);
propertyField.setItems(propertyLabels.toArray(new String[] {}));
{
int index = propertyName != null ? propertyNames.indexOf(propertyName) : -1;
Composite sourceComposite = new Composite(content, SWT.NONE);
GridDataFactory.swtDefaults().applyTo(sourceComposite);
- RowLayoutFactory.swtDefaults().applyTo(sourceComposite);
+ RowLayoutFactory.fillDefaults().applyTo(sourceComposite);
sourceField = new Combo(sourceComposite, SWT.BORDER | SWT.READ_ONLY);
RowDataFactory.swtDefaults().applyTo(sourceField);
sourceField.select(generatorIndex);
diagramField = new Combo(sourceComposite, SWT.BORDER | SWT.READ_ONLY);
- RowDataFactory.swtDefaults().applyTo(diagramField);
+ RowDataFactory.swtDefaults().hint(120, SWT.DEFAULT).applyTo(diagramField);
diagramField.setItems(diagramNames.toArray(new String[diagramNames.size()]));
diagramField.setEnabled(isDiagramFieldVisible());
// Create combo-box
Combo routeCombo = new Combo(conditionComp, SWT.READ_ONLY);
- RowDataFactory.swtDefaults().applyTo(routeCombo);
+ RowDataFactory.swtDefaults().hint(120, SWT.DEFAULT).applyTo(routeCombo);
routeCombo.setItems(routeNames);
// Set current selection
// Create combo-box
Combo regionCombo = new Combo(conditionComp, SWT.READ_ONLY);
- RowDataFactory.swtDefaults().applyTo(regionCombo);
+ RowDataFactory.swtDefaults().hint(120, SWT.DEFAULT).applyTo(regionCombo);
regionCombo.setItems(regionNames);
// Set current selection
ROW_LAYOUT.applyTo(conditionComp);
Text lowerLimitText = new Text(conditionComp, SWT.BORDER);
- RowDataFactory.swtDefaults().applyTo(lowerLimitText);
+ RowDataFactory.swtDefaults().hint(40, SWT.DEFAULT).applyTo(lowerLimitText);
lowerLimitText.setText(condition.lowerLimit != null ? Double.toString(condition.lowerLimit) : "");
new Label(conditionComp, SWT.NONE).setText("\u2264");
Combo propertyNameText = new Combo(conditionComp, SWT.NONE);
- RowDataFactory.swtDefaults().applyTo(propertyNameText);
+ RowDataFactory.swtDefaults().hint(120, SWT.DEFAULT).applyTo(propertyNameText);
propertyNameText.setItems(propertyLabels.toArray(new String[] {}));
int index = propertyNames.indexOf(condition.propertyName);
if (index >= 0)
new Label(conditionComp, SWT.NONE).setText("\u2264");
Text upperLimitText = new Text(conditionComp, SWT.BORDER);
- RowDataFactory.swtDefaults().applyTo(upperLimitText);
+ RowDataFactory.swtDefaults().hint(40, SWT.DEFAULT).applyTo(upperLimitText);
upperLimitText.setText(condition.upperLimit != null ? Double.toString(condition.upperLimit) : "");
// Register update