@ SuppressWarnings ( "static-method" ) public IStatus createMultiStatus ( Iterable < ? extends IStatus > status ) { final IStatus max = findMax ( status ) ; final MultiStatus multiStatus ; if ( max == null ) { multiStatus = new MultiStatus ( PLUGIN_ID , 0 , null , null ) ; } else { multiStatus = new MultiStatus ( PLUGIN_ID , 0 , max . getMessage ( ) , max . getException ( ) ) ; } for ( final IStatus s : status ) { multiStatus . add ( s ) ; } return multiStatus ; }
Create a multistatus .