finds the most severe status from a array of stati . an error is more severe than a warning , and a warning is more severe than ok . concode_field_sep PlaceHolder placeHolder concode_field_sep IStatus getMoreSevere concode_elem_sep void applyToStatusLine
IStatus function ( IStatus [ ] arg0 ) { IStatus loc0 = null ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { IStatus loc2 = arg0 [ loc1 ] ; if ( loc2 . matches ( IStatus . ERROR ) ) { return loc2 ; } if ( loc0 == null || loc2 . getSeverity ( ) > loc0 . getSeverity ( ) ) { loc0 = loc2 ; } } return loc0 ; }