// if it is a no station error show an error message dialog
else if ((problemSubType == ModelChecker.NO_STATION_ERROR) && (problemType == ModelChecker.ERROR_PROBLEM)) {
JOptionPane.showMessageDialog(null, "Please insert at least one server or delay before starting simulation.", "Error",
JOptionPane.ERROR_MESSAGE);
} else if ((problemSubType == ModelChecker.SIMULATION_ERROR) && (problemType == ModelChecker.ERROR_PROBLEM)) {
dialogFactory.getDialog(new MeasurePanel(model, model, model), "Edit Performance Indices");
}
// if a measure is inconsistent (i.e have one or more 'null' field) show
// performance indices panel
else if ((problemSubType == ModelChecker.INCONSISTENT_MEASURE_ERROR) && (problemType == ModelChecker.ERROR_PROBLEM)) {
dialogFactory.getDialog(new MeasurePanel(model, model, model), "Edit Performance Indices");
}
else if ((problemSubType == ModelChecker.SINK_PERF_IND_WITH_NO_SINK_ERROR) && (problemType == ModelChecker.ERROR_PROBLEM)) {
dialogFactory.getDialog(new MeasurePanel(model, model, model), "Edit Performance Indices");
}
else if ((problemSubType == ModelChecker.SINK_PERF_WITH_CLOSED_CLASS_ERROR) && (problemType == ModelChecker.ERROR_PROBLEM)) {
dialogFactory.getDialog(new MeasurePanel(model, model, model), "Edit Performance Indices");
}
// if a measure was defined more than once ask to erase all redundant
// measure
else if ((problemSubType == ModelChecker.DUPLICATE_MEASURE_ERROR) && (problemType == ModelChecker.ERROR_PROBLEM)) {
int k = JOptionPane.showConfirmDialog(null, "Delete all redundant performance indices?\n", "Redundant performance indices found",