easFile = new File(dia.getDirectory() + File.separator + dia.getFile());
} else {
easFile = new File(dia.getDirectory() + File.separator + dia.getFile() + ".eas");
}
SerializableSimulationState simState = new SerializableSimulationState(
this.liveWindow.environment.getSimTime(), easFile);
try {
if (dia2.getResult().equals(butt1)) {
simState.save();
} else if (dia2.getResult().equals(butt2)) {
GlobalVariables.getPrematureParameters().logInfo("Creating executable simState (this may take a while).");
simState.createExecutableSimState();
}
} catch (SimStateUnserializableException e) {
String info =
"The simulation state could not be saved. This probably means that one or more objects\n"
+ "stored as field variables are not implementing the Serializable interface.\n"