}
}
private void checkOverwriteFileOnQuit(File file) {
if (file.exists()) {
ConfirmActionModel actModel = getOverwriteConfirmActionModel();
ConfirmActionReceiver actReceiver =
new ConfirmOverwriteOnQuitActionReceiver(file);
ConfirmActionCtrl actCtrl =
new ConfirmActionCtrl(actModel, mainFrame, actReceiver);
actCtrl.showDialog(); // will call performSaveAction() on OK