Program: 126557
Project: 126557
Buggy source:
@Override protected void addFields(){
  int leftCompositeWidth=80;
  int rightCompositeWidth=WIDTH_GRIDDATA_PIXEL - leftCompositeWidth;
  int headerCompositeHeight=60;
  int tableSettingsCompositeHeight=90;
  int tableCompositeHeight=200;
  int height=headerCompositeHeight + tableSettingsCompositeHeight + tableCompositeHeight;
  Composite mainComposite=Form.startNewDimensionnedGridLayout(this,1,leftCompositeWidth + rightCompositeWidth,height);
  mainComposite.setLayout(new GridLayout(1,false));
  GridData gridData=new GridData(GridData.FILL_BOTH);
  mainComposite.setLayoutData(gridData);
  Composite rightComposite=Form.startNewDimensionnedGridLayout(mainComposite,1,rightCompositeWidth,height);
  Group groupTableSettings=Form.createGroup(rightComposite,1,Messages.getString("String_Node_Str"),tableSettingsCompositeHeight);
  Composite compositeTableSettings=Form.startNewDimensionnedGridLayout(groupTableSettings,1,rightCompositeWidth,tableSettingsCompositeHeight);
  gridData=new GridData(GridData.FILL_BOTH);
  gridData.widthHint=rightCompositeWidth;
  gridData.horizontalSpan=3;
  Composite filterComposite=new Composite(compositeTableSettings,SWT.NONE);
  GridLayout gridLayout=new GridLayout(2,false);
  filterComposite.setLayout(gridLayout);
  GridData gridData2=new GridData(GridData.FILL_HORIZONTAL);
  filterComposite.setLayoutData(gridData2);
  Label label=new Label(filterComposite,SWT.NONE);
  label.setText(Messages.getString("String_Node_Str"));
  nameFilter=new Text(filterComposite,SWT.BORDER);
  nameFilter.setToolTipText(Messages.getString("String_Node_Str"));
  nameFilter.setEditable(true);
  gridData2=new GridData(GridData.FILL_HORIZONTAL);
  nameFilter.setLayoutData(gridData2);
  scrolledCompositeFileViewer=new ScrolledComposite(compositeTableSettings,SWT.H_SCROLL | SWT.V_SCROLL | SWT.NONE);
  scrolledCompositeFileViewer.setExpandHorizontal(true);
  scrolledCompositeFileViewer.setExpandVertical(true);
  GridData gridData1=new GridData(GridData.FILL_BOTH);
  int width=700;
  int hight=325;
  if (forTemplate) {
    width=375;
    hight=300;
  }
  gridData1.widthHint=width;
  gridData1.heightHint=hight;
  gridData1.horizontalSpan=2;
  scrolledCompositeFileViewer.setLayoutData(gridData1);
  createTable();
  Composite compositeRetreiveSchemaButton=Form.startNewGridLayout(compositeTableSettings,3,false,SWT.CENTER,SWT.BOTTOM);
  GC gc=new GC(compositeRetreiveSchemaButton);
  String displayStr=Messages.getString("String_Node_Str");
  Point buttonSize=gc.stringExtent(displayStr);
  selectAllTablesButton=new UtilsButton(compositeRetreiveSchemaButton,displayStr,buttonSize.x + 12,HEIGHT_BUTTON_PIXEL);
  displayStr=Messages.getString("String_Node_Str");
  buttonSize=gc.stringExtent(displayStr);
  selectNoneTablesButton=new UtilsButton(compositeRetreiveSchemaButton,displayStr,buttonSize.x + 12,HEIGHT_BUTTON_PIXEL);
  displayStr=Messages.getString("String_Node_Str");
  buttonSize=gc.stringExtent(displayStr);
  checkConnectionButton=new UtilsButton(compositeRetreiveSchemaButton,displayStr,buttonSize.x + 12,HEIGHT_BUTTON_PIXEL);
  gc.dispose();
  metadataEditor=new MetadataEmfTableEditor("String_Node_Str");
  parentWizardPage.setPageComplete(false);
  if (this.typeName != null && this.typeName.getProduct().equals(EDatabaseTypeName.HBASE.getProduct())) {
    selectAllTablesButton.setEnabled(false);
    selectAllTablesButton.setToolTipText(Messages.getString("String_Node_Str"));
    selectNoneTablesButton.setEnabled(false);
    selectNoneTablesButton.setToolTipText(Messages.getString("String_Node_Str"));
  }
}

Fixed version (ground truth):
@Override protected void addFields(){
  int width=getSize().x;
  Composite mainComposite=Form.startNewGridLayout(this,1);
  mainComposite.setLayout(new GridLayout(1,false));
  GridData gridData=new GridData(GridData.FILL_BOTH);
  mainComposite.setLayoutData(gridData);
  Composite rightComposite=Form.startNewGridLayout(mainComposite,1);
  Group groupTableSettings=Form.createGroup(rightComposite,1,Messages.getString("String_Node_Str"));
  scrolledComposite=new ScrolledComposite(groupTableSettings,SWT.V_SCROLL | SWT.H_SCROLL);
  scrolledComposite.setExpandHorizontal(true);
  scrolledComposite.setExpandVertical(true);
  scrolledComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  newParent=new Composite(scrolledComposite,SWT.NONE);
  newParent.setLayout(new GridLayout());
  scrolledComposite.setContent(newParent);
  Composite compositeTableSettings=Form.startNewGridLayout(newParent,1);
  gridData=new GridData(GridData.FILL_BOTH);
  gridData.horizontalSpan=3;
  Composite filterComposite=new Composite(compositeTableSettings,SWT.NONE);
  GridLayout gridLayout=new GridLayout(2,false);
  filterComposite.setLayout(gridLayout);
  GridData gridData2=new GridData(GridData.FILL_HORIZONTAL);
  filterComposite.setLayoutData(gridData2);
  Label label=new Label(filterComposite,SWT.NONE);
  label.setText(Messages.getString("String_Node_Str"));
  nameFilter=new Text(filterComposite,SWT.BORDER);
  nameFilter.setToolTipText(Messages.getString("String_Node_Str"));
  nameFilter.setEditable(true);
  gridData2=new GridData(GridData.FILL_HORIZONTAL);
  nameFilter.setLayoutData(gridData2);
  scrolledCompositeFileViewer=new ScrolledComposite(compositeTableSettings,SWT.H_SCROLL | SWT.V_SCROLL | SWT.NONE);
  scrolledCompositeFileViewer.setExpandHorizontal(true);
  scrolledCompositeFileViewer.setExpandVertical(true);
  GridData gridData1=new GridData(GridData.FILL_BOTH);
  int hight=290;
  if (forTemplate) {
    width=375;
    hight=300;
  }
  gridData1.widthHint=width;
  gridData1.heightHint=hight;
  gridData1.horizontalSpan=2;
  scrolledCompositeFileViewer.setLayoutData(gridData1);
  createTable();
  Composite compositeRetreiveSchemaButton=Form.startNewGridLayout(compositeTableSettings,3,false,SWT.CENTER,SWT.BOTTOM);
  GC gc=new GC(compositeRetreiveSchemaButton);
  String displayStr=Messages.getString("String_Node_Str");
  Point buttonSize=gc.stringExtent(displayStr);
  selectAllTablesButton=new UtilsButton(compositeRetreiveSchemaButton,displayStr,buttonSize.x + 12,HEIGHT_BUTTON_PIXEL);
  displayStr=Messages.getString("String_Node_Str");
  buttonSize=gc.stringExtent(displayStr);
  selectNoneTablesButton=new UtilsButton(compositeRetreiveSchemaButton,displayStr,buttonSize.x + 12,HEIGHT_BUTTON_PIXEL);
  displayStr=Messages.getString("String_Node_Str");
  buttonSize=gc.stringExtent(displayStr);
  checkConnectionButton=new UtilsButton(compositeRetreiveSchemaButton,displayStr,buttonSize.x + 12,HEIGHT_BUTTON_PIXEL);
  gc.dispose();
  metadataEditor=new MetadataEmfTableEditor("String_Node_Str");
  parentWizardPage.setPageComplete(false);
  if (this.typeName != null && this.typeName.getProduct().equals(EDatabaseTypeName.HBASE.getProduct())) {
    selectAllTablesButton.setEnabled(false);
    selectAllTablesButton.setToolTipText(Messages.getString("String_Node_Str"));
    selectNoneTablesButton.setEnabled(false);
    selectNoneTablesButton.setToolTipText(Messages.getString("String_Node_Str"));
  }
  scrolledComposite.addControlListener(new ControlAdapter(){
    @Override public void controlResized(    ControlEvent e){
      scrolledComposite.setMinSize(newParent.computeSize(SWT.DEFAULT,SWT.DEFAULT));
    }
  }
);
}