.getChemModel().getID()
+ " " + GT.get("has unsaved data. Do you want to save it?"),
GT.get("Unsaved data"), JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.WARNING_MESSAGE);
if (answer == JOptionPane.YES_OPTION) {
SaveAction saveaction = new SaveAction(this, false);
saveaction.actionPerformed(new ActionEvent(
this, 12, ""));
if(saveaction.getWasCancelled())
answer = JOptionPane.CANCEL_OPTION;
}
return answer;
} else if (guistring.equals(JChemPaintEditorApplet.GUI_APPLET)) {
// In case of the applet we do not ask for save but put the clear