252253254255256257258259260261262263
} if (select == JOptionPane.YES_OPTION) { // Try to save the project SaveCmd cmd = new SaveCmd(_context); cmd.run(); // If it is still modified, then the save was canceled. if (doc.isModified()) { select = JOptionPane.CANCEL_OPTION; }