private static boolean attemptSaveInternal(Saveable saveable) {
		if (saveable.isModified()) {
			saveable.toFrontAndFocus();
			int answer = JOptionPane.showConfirmDialog(UIUtilities.getComponentForDialog(saveable), MessageFormat.format(SAVE_CHANGES, saveable.getSaveTitle()), SAVE, JOptionPane.YES_NO_CANCEL_OPTION);
			if (answer == JOptionPane.CANCEL_OPTION || answer == JOptionPane.CLOSED_OPTION) {
				return false;
			}
			if (answer == JOptionPane.YES_OPTION) {
				SaveCommand.save(saveable);
				if (saveable.isModified()) {
					return false;
				}
			}
		}
		return true;
	}