else if ( e instanceof DesignFileException )
if ( e instanceof DesignFileException )
	private static ErrorStatus createErrorStatus( Throwable e )	{		Throwable exception = null;		String reason = null;		String[] detail = null;		if ( e instanceof NullPointerException				|| e instanceof ArrayIndexOutOfBoundsException				|| e instanceof SWTException				|| e instanceof CoreException )		{			exception = e;		}		else if ( e instanceof DesignFileException )		{			detail = e.toString( ).split( "\n" );			reason = detail[0];		}		else		{			reason = e.getClass( ).getName( ) + " " + MSG_OCURR;			if ( e.getLocalizedMessage( ) != null )			{				detail = new String[]{					e.getLocalizedMessage( )				};			}			else			{				detail = new String[]{					e.getClass( ).getName( )				};			}		}		ErrorStatus status = new ErrorStatus( ReportPlugin.REPORT_UI,				1001,				reason,				exception );		for ( int i = 0; i < detail.length; i++ )		{			status.addError( detail[i] );		}		for ( Throwable cause = e.getCause( ); cause != null; cause = cause.getCause( ) )		{			status.addCause( cause );		}		return status;	}