- Cache.log
- .debug("Asking user if the vamsas session should be stored.");
- int reply = JOptionPane
- .showInternalConfirmDialog(
- Desktop.desktop,
- "The current VAMSAS session has unsaved data - do you want to save it ?",
- "VAMSAS Session Shutdown",
- JOptionPane.YES_NO_OPTION,
- JOptionPane.QUESTION_MESSAGE);
-
- if (reply == JOptionPane.YES_OPTION)
+ if (client.promptUser)
+ {
+ Cache.log
+ .debug("Asking user if the vamsas session should be stored.");
+ int reply = JOptionPane
+ .showInternalConfirmDialog(
+ Desktop.desktop,
+ "The current VAMSAS session has unsaved data - do you want to save it ?",
+ "VAMSAS Session Shutdown",
+ JOptionPane.YES_NO_OPTION,
+ JOptionPane.QUESTION_MESSAGE);
+
+ if (reply == JOptionPane.YES_OPTION)
+ {
+ Cache.log.debug("Prompting for vamsas store filename.");
+ Desktop.instance.vamsasSave_actionPerformed(null);
+ Cache.log
+ .debug("Finished attempt at storing document.");
+ }
+ Cache.log
+ .debug("finished dealing with REQUESTTOCLOSE event.");
+ }
+ else