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