private void updateStatus ( Throwable event ) { Throwable cause = event ; while ( cause != null && ( ! ( cause instanceof CoreException ) ) && cause . getCause ( ) != null && cause . getCause ( ) != cause ) { cause = cause . getCause ( ) ; } if ( cause instanceof CoreException ) { updateStatus ( ( ( CoreException ) cause ) . getStatus ( ) ) ; } else { final String message ; if ( cause != null ) { message = cause . getLocalizedMessage ( ) ; } else { message = event . getLocalizedMessage ( ) ; } final IStatus status = new StatusInfo ( IStatus . ERROR , message ) ; updateStatus ( status ) ; } }
Update the status of this page according to the given exception .