Program: 10647
Project: 10647
Buggy source:
private void createApplicationOperationsSection(Composite parent){
  operationsSection=toolkit.createSection(parent,Section.TITLE_BAR);
  operationsSection.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().grab(true,false).applyTo(operationsSection);
  operationsSection.setText(Messages.ApplicationDetailsPart_TEXT_APP_OP);
  operationsSection.clientVerticalSpacing=0;
  Composite client=toolkit.createComposite(operationsSection);
  client.setLayout(new GridLayout(2,false));
  GridDataFactory.fillDefaults().grab(true,false).applyTo(client);
  operationsSection.setClient(client);
  topButtonRow=toolkit.createComposite(client);
  GridDataFactory.fillDefaults().span(2,1).applyTo(topButtonRow);
  RowLayout layout=RowLayoutFactory.fillDefaults().margins(0,2).wrap(false).create();
  layout.center=true;
  topButtonRow.setLayout(layout);
  startAppButton=toolkit.createButton(topButtonRow,Messages.ApplicationDetailsPart_TEXT_START,SWT.PUSH);
  startAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_START));
  startAppButton.setToolTipText(Messages.ApplicationDetailsPart_TEXT_START_TOOLTIP);
  startAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      restartApplication(ApplicationAction.RESTART);
    }
  }
);
  startAppButton.setEnabled(true);
  stopAppButton=toolkit.createButton(topButtonRow,Messages.ApplicationDetailsPart_TEXT_STOP,SWT.PUSH);
  stopAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_STOP));
  stopAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.STOP);
    }
  }
);
  updateRestartAppButton=toolkit.createButton(topButtonRow,Messages.ApplicationDetailsPart_TEXT_UPDATE_RESTART,SWT.PUSH);
  updateRestartAppButton.setImage(CloudFoundryImages.getImage(CloudFoundryImages.RESTART));
  updateRestartAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      restartApplication(ApplicationAction.UPDATE_RESTART);
    }
  }
);
  updateRestartAppButton.setToolTipText(Messages.ApplicationDetailsPart_TEXT_UPDATE_RESTART_TOOLTIP);
  lowerButtonRow=toolkit.createComposite(client);
  GridDataFactory.fillDefaults().span(2,1).applyTo(lowerButtonRow);
  layout=RowLayoutFactory.fillDefaults().margins(0,2).wrap(false).create();
  layout.center=true;
  lowerButtonRow.setLayout(layout);
  pushAppButton=toolkit.createButton(lowerButtonRow,Messages.ApplicationDetailsPart_TEXT_PUSH,SWT.PUSH);
  pushAppButton.setImage(CloudFoundryImages.getImage(CloudFoundryImages.PUSH));
  pushAppButton.setEnabled(true);
  pushAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.START);
    }
  }
);
  pushAppButton.setToolTipText(Messages.ApplicationDetailsPart_TEXT_PUSH_TOOLTIP);
  createDebugArea(lowerButtonRow);
}

Fixed version (ground truth):
private void createApplicationOperationsSection(Composite parent){
  operationsSection=toolkit.createSection(parent,Section.TITLE_BAR);
  operationsSection.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().grab(true,false).applyTo(operationsSection);
  operationsSection.setText(Messages.ApplicationDetailsPart_TEXT_APP_OP);
  operationsSection.clientVerticalSpacing=0;
  Composite client=toolkit.createComposite(operationsSection);
  client.setLayout(new GridLayout(2,false));
  GridDataFactory.fillDefaults().grab(true,false).applyTo(client);
  operationsSection.setClient(client);
  topButtonRow=toolkit.createComposite(client);
  GridDataFactory.fillDefaults().span(2,1).applyTo(topButtonRow);
  RowLayout layout=RowLayoutFactory.fillDefaults().margins(0,2).wrap(false).create();
  layout.center=true;
  topButtonRow.setLayout(layout);
  startAppButton=toolkit.createButton(topButtonRow,Messages.ApplicationDetailsPart_TEXT_START,SWT.PUSH);
  startAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_START));
  startAppButton.setToolTipText(Messages.ApplicationDetailsPart_TEXT_START_TOOLTIP);
  startAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      restartApplication(ApplicationAction.RESTART);
    }
  }
);
  startAppButton.setEnabled(true);
  stopAppButton=toolkit.createButton(topButtonRow,Messages.ApplicationDetailsPart_TEXT_STOP,SWT.PUSH);
  stopAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_STOP));
  stopAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.STOP);
    }
  }
);
  updateRestartAppButton=toolkit.createButton(topButtonRow,Messages.ApplicationDetailsPart_TEXT_UPDATE_RESTART,SWT.PUSH);
  updateRestartAppButton.setImage(CloudFoundryImages.getImage(CloudFoundryImages.RESTART));
  updateRestartAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      restartApplication(ApplicationAction.UPDATE_RESTART);
    }
  }
);
  updateRestartAppButton.setToolTipText(Messages.ApplicationDetailsPart_TEXT_UPDATE_RESTART_TOOLTIP);
  lowerButtonRow=toolkit.createComposite(client);
  GridDataFactory.fillDefaults().span(2,1).applyTo(lowerButtonRow);
  layout=RowLayoutFactory.fillDefaults().margins(0,2).wrap(false).create();
  layout.center=true;
  lowerButtonRow.setLayout(layout);
  pushAppButton=toolkit.createButton(lowerButtonRow,Messages.ApplicationDetailsPart_TEXT_PUSH,SWT.PUSH);
  pushAppButton.setImage(CloudFoundryImages.getImage(CloudFoundryImages.PUSH));
  pushAppButton.setEnabled(false);
  pushAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.START);
    }
  }
);
  pushAppButton.setToolTipText(Messages.ApplicationDetailsPart_TEXT_PUSH_TOOLTIP);
  createDebugArea(lowerButtonRow);
}