Program: 122463
Project: 122463
Buggy source:
private void createButtons(Composite parent){
  Label label1=new Label(compositesSachForm.getMidComposite(),SWT.NONE);
  GridDataFactory.swtDefaults().hint(42,18).applyTo(label1);
  Composite buttonComposite=new Composite(compositesSachForm.getMidComposite(),SWT.BORDER);
  Label label2=new Label(compositesSachForm.getMidComposite(),SWT.NONE);
  GridDataFactory.swtDefaults().hint(42,0).applyTo(label2);
  GridLayout gridLayout=new GridLayout(1,true);
  buttonComposite.setLayout(gridLayout);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  buttonComposite.setLayoutData(gridData);
  Composite buttonComposite2=new Composite(buttonComposite,SWT.NONE);
  gridLayout=new GridLayout(1,true);
  gridLayout.marginBottom=0;
  gridLayout.marginHeight=0;
  gridLayout.marginLeft=0;
  gridLayout.marginRight=0;
  gridLayout.marginTop=0;
  gridLayout.marginWidth=0;
  buttonComposite2.setLayout(gridLayout);
  gridData=new GridData(GridData.FILL_BOTH);
  gridData.verticalAlignment=GridData.CENTER;
  buttonComposite2.setLayoutData(gridData);
  displayComponentsButton=new Button(buttonComposite2,SWT.NONE);
  displayComponentsButton.setImage(ImageProvider.getImage(EImage.RIGHT_ICON));
  displayComponentsButton.setToolTipText("String_Node_Str");
  GridDataFactory.swtDefaults().align(SWT.CENTER,SWT.CENTER).applyTo(displayComponentsButton);
  displayComponentsButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      setComponentVisible(hiddenViewer.getSelection(),true);
      setValid(true);
      needCodeGen=true;
    }
  }
);
  hideCompnentsButton=new Button(buttonComposite2,SWT.NONE);
  hideCompnentsButton.setImage(ImageProvider.getImage(EImage.LEFT_ICON));
  hideCompnentsButton.setToolTipText("String_Node_Str");
  gridData=new GridData();
  gridData.verticalAlignment=GridData.CENTER;
  hideCompnentsButton.setLayoutData(gridData);
  hideCompnentsButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      setComponentVisible(displayViewer.getSelection(),false);
      setValid(true);
    }
  }
);
  displayComponentsButton.setEnabled(false);
  hideCompnentsButton.setEnabled(false);
}

Fixed version (ground truth):
private void createButtons(Composite parent){
  Label label1=new Label(compositesSachForm.getMidComposite(),SWT.NONE);
  GridDataFactory.swtDefaults().hint(42,18).applyTo(label1);
  Composite buttonComposite=new Composite(compositesSachForm.getMidComposite(),SWT.BORDER);
  Label label2=new Label(compositesSachForm.getMidComposite(),SWT.NONE);
  GridDataFactory.swtDefaults().hint(42,0).applyTo(label2);
  GridLayout gridLayout=new GridLayout(1,true);
  buttonComposite.setLayout(gridLayout);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  buttonComposite.setLayoutData(gridData);
  Composite buttonComposite2=new Composite(buttonComposite,SWT.NONE);
  gridLayout=new GridLayout(1,true);
  gridLayout.marginBottom=0;
  gridLayout.marginHeight=0;
  gridLayout.marginLeft=0;
  gridLayout.marginRight=0;
  gridLayout.marginTop=0;
  gridLayout.marginWidth=0;
  buttonComposite2.setLayout(gridLayout);
  gridData=new GridData(GridData.FILL_BOTH);
  gridData.verticalAlignment=GridData.CENTER;
  buttonComposite2.setLayoutData(gridData);
  displayComponentsButton=new Button(buttonComposite2,SWT.NONE);
  displayComponentsButton.setImage(ImageProvider.getImage(EImage.RIGHT_ICON));
  displayComponentsButton.setToolTipText("String_Node_Str");
  GridDataFactory.swtDefaults().align(SWT.CENTER,SWT.CENTER).applyTo(displayComponentsButton);
  displayComponentsButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      setComponentVisible(hiddenViewer.getSelection(),true);
      setValid(true);
      needCodeGen=true;
    }
  }
);
  hideCompnentsButton=new Button(buttonComposite2,SWT.NONE);
  hideCompnentsButton.setImage(ImageProvider.getImage(EImage.LEFT_ICON));
  hideCompnentsButton.setToolTipText("String_Node_Str");
  gridData=new GridData();
  gridData.verticalAlignment=GridData.CENTER;
  hideCompnentsButton.setLayoutData(gridData);
  hideCompnentsButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      setComponentVisible(displayViewer.getSelection(),false);
      setValid(true);
    }
  }
);
  displayComponentsButton.setEnabled(false);
  hideCompnentsButton.setEnabled(false);
}