*/
private void openFile() {
if (checkForSave("<html>Save changes before opening a saved model?</html>")) {
return;
}
JSIMModel tmpmodel = new JSIMModel();
int state = modelLoader.loadModel(tmpmodel, this);
if (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {
currentFile = modelLoader.getSelectedFile();
// At this point loading was successful, so substitutes old model with loaded one
model = tmpmodel;