Program: 128237
Project: 128237
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");
}

Fixed version (ground truth):
@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);
}