import org.eclipse.jface.dialogs.IPageChangedListener;
import org.eclipse.jface.dialogs.PageChangedEvent;
import org.eclipse.jface.layout.GridDataFactory;
-import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.ColumnWeightData;
import org.eclipse.jface.wizard.IWizardContainer;
private DynamicComboFieldEditor nominalPressureLossSelector;
private DynamicComboFieldEditor valvePositionSelector;
private DynamicComboFieldEditor addressSelector;
+ private DynamicComboFieldEditor lengthSelector;
// For edge import
private DynamicComboFieldEditor startXCoordSelector;
validatePageComplete();
}
});
+
+
}
private void createEdgeIndexMappingField(Group parent) {
validatePageComplete();
}
});
+ lengthSelector = new DynamicComboFieldEditor("lengthValue", "lengthSelector", parent);
+ lengthSelector.addComboListener(new SelectionListener() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ widgetDefaultSelected(e);
+ }
+
+ @Override
+ public void widgetDefaultSelected(SelectionEvent e) {
+ model.setLengthIndex(Integer.parseInt(lengthSelector.getValue()));
+ validatePageComplete();
+ }
+ });
}
private void updateCombos() {
kReturnSelector.updateCombo(namesAndValues);
kSupplySelector.updateCombo(namesAndValues);
tGroundSelector.updateCombo(namesAndValues);
+ lengthSelector.updateCombo(namesAndValues);
}
private void updateVertexCombos(String[][] namesAndValues) {
velocitySelector.updateCombo(namesAndValues);
flowAreaSelector.updateCombo(namesAndValues);
nominalPressureLossSelector.updateCombo(namesAndValues);
- addressSelector.updateCombo(namesAndValues);
+ addressSelector.updateCombo(namesAndValues);
}