Bug 172655 [ErrorHandling] [StatusHandling] Hooking into JFace dialogs
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java
private void populateCopyBuffer(IStatus buildingStatus,
            StringBuffer buffer, int nesting) {
        if (!buildingStatus.matches(displayMask)) {
            return;
        }
        for (int i = 0; i < nesting; i++) {
            buffer.append(NESTING_INDENT);
        }
        buffer.append(buildingStatus.getMessage());
        buffer.append("\n"); 
    
        
        Throwable t = buildingStatus.getException();
        if (t instanceof CoreException) {
            CoreException ce = (CoreException)t;
            populateCopyBuffer(ce.getStatus(), buffer, nesting + 1);
        } else if (t != null){
        	
            for (int i = 0; i < nesting; i++) {
                buffer.append(NESTING_INDENT);
            }
        	String message = t.getLocalizedMessage();
	        if (message == null) {
				message = t.toString();
			}
	        buffer.append(message);
	        buffer.append("\n"); 
        }
        
        IStatus[] children = buildingStatus.getChildren();