private boolean askBeforeExit(SwingFrame navigationFrameView) {
		if (Configuration.isDevModeActive()) {
			return true;
		} else {
			int answer = JOptionPane.showConfirmDialog(navigationFrameView, Resources.getString("Exit.confirm"), Resources.getString("Exit.confirm.title"), JOptionPane.YES_NO_OPTION);
			return answer == JOptionPane.YES_OPTION;
		}
	}
private boolean askBeforeExit ( SwingFrame navigationFrameView ) { if ( Configuration . isDevModeActive ( ) ) { return true ; } else { int answer = JOptionPane . showConfirmDialog ( navigationFrameView , Resources . getString ( "Exit.confirm" ) , Resources . getString ( "Exit.confirm.title" ) , JOptionPane . YES_NO_OPTION ) ; return answer == JOptionPane . YES_OPTION ; } }
Asks about leaving the application

@param navigationFrameView used as parent of question dialog
@return true if user wants to leave