public void addContentRow(String title,Image image,DetailsCellContent... cellContents){
  createRowHeading(title,image);
  if (null != title) {
    copyStringBuilder.append(title);
  }
  copyStringBuilder.append('\t');
  for (int i=0; i < columns; i++) {
    if (i < cellContents.length) {
      DetailsCellContent cellContent=cellContents[i];
      String content=cellContent.getText();
      int heightHint=0;
      boolean canFitWidth=true;
      if (null != content) {
        canFitWidth=canFit(content,CONTENT_CONTROL_MAX_WIDTH);
        if (!canFitWidth) {
          heightHint=heightHint(content,CONTENT_CONTROL_MAX_WIDTH,CONTENT_CONTROL_MAX_HEIGHT);
        }
      }
      TableWrapData tableWrapData=getLayoutData(cellContent);
      if (!canFitWidth) {
        int style=SWT.WRAP | SWT.READ_ONLY | SWT.MULTI| SWT.V_SCROLL;
        int borderStyle=toolkit.getBorderStyle();
        toolkit.setBorderStyle(SWT.NULL);
        Text text=toolkit.createText(contentComposite,cellContent.getText(),style);
        toolkit.setBorderStyle(borderStyle);
        tableWrapData.grabHorizontal=true;
        tableWrapData.maxWidth=CONTENT_CONTROL_MAX_WIDTH;
        tableWrapData.maxHeight=CONTENT_CONTROL_MAX_HEIGHT;
        tableWrapData.heightHint=heightHint;
        text.setLayoutData(tableWrapData);
        textControls.add(text);
      }
 else {
        FormText formText=toolkit.createFormText(contentComposite,false);
        fillFormText(formText,cellContent);
        formText.setLayoutData(tableWrapData);
      }
      if (null != cellContent.getText()) {
        copyStringBuilder.append(cellContent.getText());
      }
 else       if (null != cellContent.getImageToolTip()) {
        copyStringBuilder.append(cellContent.getImageToolTip());
      }
    }
 else {
      toolkit.createLabel(contentComposite,"");
    }
    if (i < (columns - 1)) {
      copyStringBuilder.append('\t');
    }
  }
  copyStringBuilder.append('\n');
}

public void addContentRow ( String title , Image image , DetailsCellContent ... cellContents ) { createRowHeading ( title , image ) ; if ( null != title ) { copyStringBuilder . append ( title ) ; } copyStringBuilder . append ( '\t' ) ; for ( int i = 0 ; i < columns ; i ++ ) { if ( i < cellContents . length ) { DetailsCellContent cellContent = cellContents [ i ] ; String content = cellContent . getText ( ) ; int heightHint = 0 ; boolean canFitWidth = true ; if ( null != content ) { canFitWidth = canFit ( content , CONTENT_CONTROL_MAX_WIDTH ) ; if ( ! canFitWidth ) { heightHint = heightHint ( content , CONTENT_CONTROL_MAX_WIDTH , CONTENT_CONTROL_MAX_HEIGHT ) ; } } TableWrapData tableWrapData = getLayoutData ( cellContent ) ; if ( ! canFitWidth ) { int style = SWT . WRAP | SWT . READ_ONLY | SWT . MULTI | SWT . V_SCROLL ; int borderStyle = toolkit . getBorderStyle ( ) ; toolkit . setBorderStyle ( SWT . NULL ) ; Text text = toolkit . createText ( contentComposite , cellContent . getText ( ) , style ) ; toolkit . setBorderStyle ( borderStyle ) ; tableWrapData . grabHorizontal = true ; tableWrapData . maxWidth = CONTENT_CONTROL_MAX_WIDTH ; tableWrapData . maxHeight = CONTENT_CONTROL_MAX_HEIGHT ; tableWrapData . heightHint = heightHint ; text . setLayoutData ( tableWrapData ) ; textControls . add ( text ) ; } else { FormText formText = toolkit . createFormText ( contentComposite , false ) ; fillFormText ( formText , cellContent ) ; formText . setLayoutData ( tableWrapData ) ; } if ( null != cellContent . getText ( ) ) { copyStringBuilder . append ( cellContent . getText ( ) ) ; } else if ( null != cellContent . getImageToolTip ( ) ) { copyStringBuilder . append ( cellContent . getImageToolTip ( ) ) ; } } else { toolkit . createLabel ( contentComposite , "" ) ; } if ( i < ( columns - 1 ) ) { copyStringBuilder . append ( '\t' ) ; } } copyStringBuilder . append ( '\n' ) ; }
adds one row to the table . .
