}
private boolean validateParameterValues() {
// Create new parameters and set values
for (int columnIndex = 0; columnIndex < parameterValues.keySet().size(); columnIndex++) {
UserParameter parameter = tablemodelParameterValues
.getParameter(columnIndex + 1);
if (parameter instanceof DoubleParameter) {
for (int dataFileIndex = 0; dataFileIndex < dataFiles.length; dataFileIndex++) {
Object objValue = tablemodelParameterValues.getValueAt(
dataFileIndex, columnIndex + 1);
if (objValue instanceof String) {
try {
Double.parseDouble((String) objValue);
} catch (NumberFormatException ex) {
desktop.displayErrorMessage("Incorrect value ("
+ objValue + ") for parameter "
+ parameter.getName() + " in data file "
+ dataFiles[dataFileIndex].getName() + ".");
return false;
}
}
}