}
private FixedWidthDatastore createDatastore(String name, String filename, boolean failOnInconsistencies) {
int[] valueWidths = getValueWidths(true);
try {
return new FixedWidthDatastore(name, filename, _encodingComboBox.getSelectedItem().toString(), valueWidths,
failOnInconsistencies);
} catch (NumberFormatException e) {
throw new IllegalStateException("Value width must be a valid number.");
}
}