private Control createDetailsViewer(final Composite parent){
  if (details == null) {
    return null;
  }
  final Text text=new Text(parent,SWT.MULTI | SWT.READ_ONLY | SWT.BORDER| SWT.H_SCROLL| SWT.V_SCROLL);
  text.setLayoutData(new GridData(GridData.FILL_BOTH));
  final StringWriter writer=new StringWriter(1000);
  if (details instanceof Throwable) {
    appendException(new PrintWriter(writer),(Throwable)details);
  }
 else   if (details instanceof IStatus) {
    appendCommandStatus(new PrintWriter(writer),(IStatus)details,0);
  }
  text.setText(writer.toString());
  return text;
}

private Control createDetailsViewer ( final Composite parent ) { if ( details == null ) { return null ; } final Text text = new Text ( parent , SWT . MULTI | SWT . READ_ONLY | SWT . BORDER | SWT . H_SCROLL | SWT . V_SCROLL ) ; text . setLayoutData ( new GridData ( GridData . FILL_BOTH ) ) ; final StringWriter writer = new StringWriter ( 1000 ) ; if ( details instanceof Throwable ) { appendException ( new PrintWriter ( writer ) , ( Throwable ) details ) ; } else if ( details instanceof IStatus ) { appendCommandStatus ( new PrintWriter ( writer ) , ( IStatus ) details , 0 ) ; } text . setText ( writer . toString ( ) ) ; return text ; }
create the details field based upon the details object . do nothing if the details object is not specified .
