Program: 126333
Project: 126333
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));
  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);
  GridData groupLayoutData=(GridData)compositeDelimitedFilePreviewButton.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=false;
  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);
  groupLayoutData=(GridData)compositeDelimitedFilePreview.getLayoutData();
  groupLayoutData.heightHint=-1;
  groupLayoutData.minimumHeight=-1;
  groupLayoutData.minimumWidth=-1;
  groupLayoutData.widthHint=-1;
  groupLayoutData.grabExcessVerticalSpace=true;
  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,SWT.DEFAULT,SWT.DEFAULT);
  GridData groupLayoutData=(GridData)compositeDelimitedFilePreviewButton.getLayoutData();
  groupLayoutData.grabExcessVerticalSpace=false;
  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,SWT.DEFAULT,SWT.DEFAULT);
  groupLayoutData=(GridData)compositeDelimitedFilePreview.getLayoutData();
  groupLayoutData.grabExcessVerticalSpace=true;
  delimitedFilePreview=new ShadowProcessPreview(compositeDelimitedFilePreview,null,width,height - 10);
  delimitedFilePreview.newTablePreview();
  previewTabItem.setControl(previewComposite);
  outputTabItem.setControl(outputComposite);
  tabFolder.setSelection(previewTabItem);
  tabFolder.pack();
}