Program: 126690
Project: 126690
Buggy source:
/** 
 * add Field to Group File Viewer.
 * @param parent
 * @param form
 * @param width
 * @param height
 */
private void addGroupFileViewer(final Composite parent,final int width,int height){
  tabFolder=new CTabFolder(parent,SWT.BORDER);
  tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
  previewTabItem=new CTabItem(tabFolder,SWT.BORDER);
  previewTabItem.setText(Messages.getString("String_Node_Str"));
  outputTabItem=new CTabItem(tabFolder,SWT.BORDER);
  outputTabItem.setText(Messages.getString("String_Node_Str"));
  Composite previewComposite=Form.startNewGridLayout(tabFolder,1);
  outputComposite=Form.startNewGridLayout(tabFolder,1);
  Composite compositeDelimitedFilePreviewButton=Form.startNewDimensionnedGridLayout(previewComposite,4,width,HEIGHT_BUTTON_PIXEL);
  height=height - HEIGHT_BUTTON_PIXEL - 15;
  firstRowIsCaptionCheckbox=new Button(compositeDelimitedFilePreviewButton,SWT.CHECK);
  firstRowIsCaptionCheckbox.setText(Messages.getString("String_Node_Str"));
  firstRowIsCaptionCheckbox.setAlignment(SWT.LEFT);
  previewButton=new Button(compositeDelimitedFilePreviewButton,SWT.NONE);
  previewButton.setText(Messages.getString("String_Node_Str"));
  previewButton.setSize(WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  new Label(compositeDelimitedFilePreviewButton,SWT.NONE);
  previewInformationLabel=new Label(compositeDelimitedFilePreviewButton,SWT.NONE);
  previewInformationLabel.setText("String_Node_Str");
  previewInformationLabel.setForeground(getDisplay().getSystemColor(SWT.COLOR_BLUE));
  Composite compositeDelimitedFilePreview=Form.startNewDimensionnedGridLayout(previewComposite,1,width,height);
  delimitedFilePreview=new ShadowProcessPreview(compositeDelimitedFilePreview,null,width,height - 10);
  delimitedFilePreview.newTablePreview();
  previewTabItem.setControl(previewComposite);
  outputTabItem.setControl(outputComposite);
  tabFolder.setSelection(previewTabItem);
  tabFolder.pack();
}

Fixed version (ground truth):
/** 
 * add Field to Group File Viewer.
 * @param parent
 * @param form
 * @param width
 * @param height
 */
private void addGroupFileViewer(final Composite parent,final int width,int height){
  tabFolder=new CTabFolder(parent,SWT.BORDER);
  tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridData tabFolderLayoutData=(GridData)tabFolder.getLayoutData();
  tabFolderLayoutData.heightHint=height;
  previewTabItem=new CTabItem(tabFolder,SWT.BORDER);
  previewTabItem.setText(Messages.getString("String_Node_Str"));
  outputTabItem=new CTabItem(tabFolder,SWT.BORDER);
  outputTabItem.setText(Messages.getString("String_Node_Str"));
  Composite previewComposite=Form.startNewGridLayout(tabFolder,1);
  outputComposite=Form.startNewGridLayout(tabFolder,1);
  Composite compositeDelimitedFilePreviewButton=Form.startNewDimensionnedGridLayout(previewComposite,4,width,HEIGHT_BUTTON_PIXEL);
  height=height - HEIGHT_BUTTON_PIXEL - 15;
  firstRowIsCaptionCheckbox=new Button(compositeDelimitedFilePreviewButton,SWT.CHECK);
  firstRowIsCaptionCheckbox.setText(Messages.getString("String_Node_Str"));
  firstRowIsCaptionCheckbox.setAlignment(SWT.LEFT);
  previewButton=new Button(compositeDelimitedFilePreviewButton,SWT.NONE);
  previewButton.setText(Messages.getString("String_Node_Str"));
  previewButton.setSize(WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  new Label(compositeDelimitedFilePreviewButton,SWT.NONE);
  previewInformationLabel=new Label(compositeDelimitedFilePreviewButton,SWT.NONE);
  previewInformationLabel.setText("String_Node_Str");
  previewInformationLabel.setForeground(getDisplay().getSystemColor(SWT.COLOR_BLUE));
  Composite compositeDelimitedFilePreview=Form.startNewDimensionnedGridLayout(previewComposite,1,width,height);
  delimitedFilePreview=new ShadowProcessPreview(compositeDelimitedFilePreview,null,width,height - 10);
  delimitedFilePreview.newTablePreview();
  previewTabItem.setControl(previewComposite);
  outputTabItem.setControl(outputComposite);
  tabFolder.setSelection(previewTabItem);
  tabFolder.pack();
}