Program: 10752
Project: 10752
Buggy source:
private void createGeneralSection(Composite parent){
  generalSection=toolkit.createSection(parent,Section.TITLE_BAR);
  generalSection.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().grab(true,false).applyTo(generalSection);
  generalSection.setText("String_Node_Str");
  generalSection.clientVerticalSpacing=0;
  Composite client=toolkit.createComposite(generalSection);
  client.setLayout(new GridLayout(2,false));
  GridDataFactory.fillDefaults().grab(true,false).applyTo(client);
  generalSection.setClient(client);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  serverNameText=createText(client,SWT.NONE);
  createLabel(client,"String_Node_Str",SWT.TOP);
  Composite uriComposite=toolkit.createComposite(client);
  GridLayoutFactory.fillDefaults().numColumns(2).margins(0,0).applyTo(uriComposite);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(uriComposite);
  ImageHyperlink editURI=toolkit.createImageHyperlink(uriComposite,SWT.PUSH);
  GridDataFactory.fillDefaults().grab(false,false).align(SWT.BEGINNING,SWT.TOP).applyTo(editURI);
  editURI.setImage(CloudFoundryImages.getImage(CloudFoundryImages.EDIT));
  editURI.addHyperlinkListener(new HyperlinkAdapter(){
    @Override public void linkActivated(    HyperlinkEvent e){
      try {
        CloudFoundryApplicationModule appModule=getExistingApplication();
        MappedURLsWizard wizard=new MappedURLsWizard(cloudServer,appModule,URIs,isPublished);
        WizardDialog dialog=new WizardDialog(editorPage.getEditorSite().getShell(),wizard);
        if (dialog.open() == Window.OK) {
          CloudApplication application=appModule.getApplication();
          if (application != null) {
            URIs=wizard.getURLs();
            mappedURIsLink.setText(getURIsAsLinkText(wizard.getURLs()));
            generalSection.getParent().layout(true,true);
            editorPage.reflow();
            application.setUris(URIs);
          }
        }
      }
 catch (      CoreException ce) {
        logApplicationModuleFailureError("String_Node_Str");
      }
    }
  }
);
  mappedURIsLink=new Link(uriComposite,SWT.MULTI);
  GridDataFactory.fillDefaults().grab(true,false).hint(250,SWT.DEFAULT).applyTo(mappedURIsLink);
  adaptControl(mappedURIsLink);
  mappedURIsLink.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      CloudUiUtil.openUrl("String_Node_Str" + e.text);
    }
  }
);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  Composite memoryComposite=toolkit.createComposite(client);
  GridLayoutFactory.fillDefaults().margins(0,0).numColumns(2).equalWidth(false).applyTo(memoryComposite);
  memoryCombo=new Combo(memoryComposite,SWT.BORDER);
  GridDataFactory.fillDefaults().align(SWT.LEFT,SWT.FILL).applyTo(memoryCombo);
  memoryCombo.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (canUpdate) {
        int selectionIndex=memoryCombo.getSelectionIndex();
        if (selectionIndex != -1) {
          memory=editorPage.getApplicationMemoryChoices()[selectionIndex];
          try {
            CloudFoundryApplicationModule appModule=getExistingApplication();
            new UpdateApplicationMemoryAction(editorPage,memory,appModule).run();
          }
 catch (          CoreException ce) {
            logApplicationModuleFailureError("String_Node_Str");
          }
        }
      }
    }
  }
);
  memoryNoteLabel=toolkit.createLabel(memoryComposite,"String_Node_Str");
  GridDataFactory.fillDefaults().align(SWT.RIGHT,SWT.CENTER).applyTo(memoryNoteLabel);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  instanceSpinner=new Spinner(client,SWT.BORDER);
  GridDataFactory.fillDefaults().align(SWT.LEFT,SWT.CENTER).applyTo(instanceSpinner);
  instanceSpinner.setMinimum(0);
  instanceSpinner.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      if (canUpdate) {
        try {
          CloudFoundryApplicationModule appModule=getExistingApplication();
          new UpdateInstanceCountAction(editorPage,instanceSpinner,appModule).run();
        }
 catch (        CoreException ce) {
          logApplicationModuleFailureError("String_Node_Str");
        }
      }
    }
  }
);
  toolkit.adapt(instanceSpinner);
  buttonComposite=toolkit.createComposite(client);
  GridDataFactory.fillDefaults().span(2,1).applyTo(buttonComposite);
  RowLayout layout=RowLayoutFactory.fillDefaults().margins(0,5).wrap(false).create();
  layout.center=true;
  buttonComposite.setLayout(layout);
  startAppButton=toolkit.createButton(buttonComposite,"String_Node_Str",SWT.PUSH);
  startAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_START));
  startAppButton.setEnabled(true);
  startAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.START);
    }
  }
);
  stopAppButton=toolkit.createButton(buttonComposite,"String_Node_Str",SWT.PUSH);
  stopAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_STOP));
  stopAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.STOP);
    }
  }
);
  ApplicationAction[] restartActions=isDebugAllowed() ? new ApplicationAction[]{ApplicationAction.START,ApplicationAction.DEBUG} : null;
  restartAppButton=new ApplicationActionMenuControl(buttonComposite,restartActions,ApplicationAction.START,"String_Node_Str",CloudFoundryImages.getImage(CloudFoundryImages.RESTART),toolkit){
    public void setDefaultTooltipMessage(){
    }
  }
;
  restartAppButton.createControl();
  restartAppButton.addMenuListener(new IButtonMenuListener(){
    public void widgetSelected(    ApplicationAction actionType){
      restartApplication(ApplicationAction.RESTART,actionType);
    }
  }
);
  updateRestartAppButton=new ApplicationActionMenuControl(buttonComposite,restartActions,ApplicationAction.START,"String_Node_Str",CloudFoundryImages.getImage(CloudFoundryImages.RESTART),toolkit){
    public void setDefaultTooltipMessage(){
    }
  }
;
  updateRestartAppButton.createControl();
  updateRestartAppButton.addMenuListener(new IButtonMenuListener(){
    public void widgetSelected(    ApplicationAction actionType){
      restartApplication(ApplicationAction.UPDATE_RESTART,actionType);
    }
  }
);
}

Fixed version (ground truth):
private void createGeneralSection(Composite parent){
  generalSection=toolkit.createSection(parent,Section.TITLE_BAR);
  generalSection.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().grab(true,false).applyTo(generalSection);
  generalSection.setText("String_Node_Str");
  generalSection.clientVerticalSpacing=0;
  Composite client=toolkit.createComposite(generalSection);
  client.setLayout(new GridLayout(2,false));
  GridDataFactory.fillDefaults().grab(true,false).applyTo(client);
  generalSection.setClient(client);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  serverNameText=createText(client,SWT.NONE);
  createLabel(client,"String_Node_Str",SWT.TOP);
  Composite uriComposite=toolkit.createComposite(client);
  GridLayoutFactory.fillDefaults().numColumns(2).margins(0,0).applyTo(uriComposite);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(uriComposite);
  ImageHyperlink editURI=toolkit.createImageHyperlink(uriComposite,SWT.PUSH);
  GridDataFactory.fillDefaults().grab(false,false).align(SWT.BEGINNING,SWT.TOP).applyTo(editURI);
  editURI.setImage(CloudFoundryImages.getImage(CloudFoundryImages.EDIT));
  editURI.addHyperlinkListener(new HyperlinkAdapter(){
    @Override public void linkActivated(    HyperlinkEvent e){
      try {
        CloudFoundryApplicationModule appModule=getExistingApplication();
        MappedURLsWizard wizard=new MappedURLsWizard(cloudServer,appModule,URIs,isPublished);
        WizardDialog dialog=new WizardDialog(editorPage.getEditorSite().getShell(),wizard);
        if (dialog.open() == Window.OK) {
          CloudApplication application=appModule.getApplication();
          if (application != null) {
            URIs=wizard.getURLs();
            mappedURIsLink.setText(getURIsAsLinkText(wizard.getURLs()));
            generalSection.getParent().layout(true,true);
            editorPage.reflow();
            application.setUris(URIs);
          }
        }
      }
 catch (      CoreException ce) {
        logApplicationModuleFailureError("String_Node_Str");
      }
    }
  }
);
  mappedURIsLink=new Link(uriComposite,SWT.MULTI);
  GridDataFactory.fillDefaults().grab(true,false).hint(250,SWT.DEFAULT).applyTo(mappedURIsLink);
  adaptControl(mappedURIsLink);
  mappedURIsLink.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      CloudUiUtil.openUrl("String_Node_Str" + e.text);
    }
  }
);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  Composite memoryComposite=toolkit.createComposite(client);
  GridLayoutFactory.fillDefaults().margins(0,0).numColumns(2).equalWidth(false).applyTo(memoryComposite);
  memoryCombo=new Combo(memoryComposite,SWT.BORDER);
  GridDataFactory.fillDefaults().align(SWT.LEFT,SWT.FILL).applyTo(memoryCombo);
  memoryCombo.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (canUpdate) {
        int selectionIndex=memoryCombo.getSelectionIndex();
        if (selectionIndex != -1) {
          memory=editorPage.getApplicationMemoryChoices()[selectionIndex];
          try {
            CloudFoundryApplicationModule appModule=getExistingApplication();
            new UpdateApplicationMemoryAction(editorPage,memory,appModule).run();
          }
 catch (          CoreException ce) {
            logApplicationModuleFailureError("String_Node_Str");
          }
        }
      }
    }
  }
);
  memoryNoteLabel=toolkit.createLabel(memoryComposite,"String_Node_Str");
  GridDataFactory.fillDefaults().align(SWT.RIGHT,SWT.CENTER).applyTo(memoryNoteLabel);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  instanceSpinner=new Spinner(client,SWT.BORDER);
  GridDataFactory.fillDefaults().align(SWT.LEFT,SWT.CENTER).applyTo(instanceSpinner);
  instanceSpinner.setMinimum(0);
  instanceSpinner.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      if (canUpdate) {
        try {
          CloudFoundryApplicationModule appModule=getExistingApplication();
          new UpdateInstanceCountAction(editorPage,instanceSpinner,appModule).run();
        }
 catch (        CoreException ce) {
          logApplicationModuleFailureError("String_Node_Str");
        }
      }
    }
  }
);
  toolkit.adapt(instanceSpinner);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  saveManifest=toolkit.createButton(client,"String_Node_Str",SWT.PUSH);
  GridDataFactory.fillDefaults().align(SWT.LEFT,SWT.CENTER).applyTo(saveManifest);
  saveManifest.setEnabled(false);
  saveManifest.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      writeToManifest();
    }
  }
);
  buttonComposite=toolkit.createComposite(client);
  GridDataFactory.fillDefaults().span(2,1).applyTo(buttonComposite);
  RowLayout layout=RowLayoutFactory.fillDefaults().margins(0,5).wrap(false).create();
  layout.center=true;
  buttonComposite.setLayout(layout);
  startAppButton=toolkit.createButton(buttonComposite,"String_Node_Str",SWT.PUSH);
  startAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_START));
  startAppButton.setEnabled(true);
  startAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.START);
    }
  }
);
  stopAppButton=toolkit.createButton(buttonComposite,"String_Node_Str",SWT.PUSH);
  stopAppButton.setImage(ImageResource.getImage(ImageResource.IMG_CLCL_STOP));
  stopAppButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      startStopApplication(ApplicationAction.STOP);
    }
  }
);
  ApplicationAction[] restartActions=isDebugAllowed() ? new ApplicationAction[]{ApplicationAction.START,ApplicationAction.DEBUG} : null;
  restartAppButton=new ApplicationActionMenuControl(buttonComposite,restartActions,ApplicationAction.START,"String_Node_Str",CloudFoundryImages.getImage(CloudFoundryImages.RESTART),toolkit){
    public void setDefaultTooltipMessage(){
    }
  }
;
  restartAppButton.createControl();
  restartAppButton.addMenuListener(new IButtonMenuListener(){
    public void widgetSelected(    ApplicationAction actionType){
      restartApplication(ApplicationAction.RESTART,actionType);
    }
  }
);
  updateRestartAppButton=new ApplicationActionMenuControl(buttonComposite,restartActions,ApplicationAction.START,"String_Node_Str",CloudFoundryImages.getImage(CloudFoundryImages.RESTART),toolkit){
    public void setDefaultTooltipMessage(){
    }
  }
;
  updateRestartAppButton.createControl();
  updateRestartAppButton.addMenuListener(new IButtonMenuListener(){
    public void widgetSelected(    ApplicationAction actionType){
      restartApplication(ApplicationAction.UPDATE_RESTART,actionType);
    }
  }
);
}