Program: 10705
Project: 10705
Buggy source:
private void createGeneralSectionRestartRequired(Composite parent){
  generalSectionRestartRequired=toolkit.createSection(parent,Section.TITLE_BAR);
  generalSectionRestartRequired.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().grab(true,false).applyTo(generalSectionRestartRequired);
  generalSectionRestartRequired.setText("String_Node_Str");
  generalSectionRestartRequired.clientVerticalSpacing=0;
  Composite client=toolkit.createComposite(generalSectionRestartRequired);
  client.setLayout(new GridLayout(2,false));
  GridDataFactory.fillDefaults().grab(true,false).applyTo(client);
  generalSectionRestartRequired.setClient(client);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  Composite memoryArea=toolkit.createComposite(client);
  GridLayoutFactory.fillDefaults().numColumns(2).margins(0,0).applyTo(memoryArea);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(memoryArea);
  memoryText=new Text(memoryArea,SWT.BORDER);
  GridDataFactory.fillDefaults().align(SWT.LEFT,SWT.FILL).hint(50,SWT.DEFAULT).applyTo(memoryText);
  final Button button=createGeneralPushButton(memoryArea,"String_Node_Str");
  button.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (canUpdate && memoryText != null && !memoryText.isDisposed()) {
        int memory=-1;
        try {
          memory=Integer.parseInt(memoryText.getText());
        }
 catch (        NumberFormatException nfe) {
        }
        if (memory > 0) {
          try {
            CloudFoundryApplicationModule appModule=getExistingApplication();
            new UpdateApplicationMemoryAction(editorPage,memory,appModule).run();
          }
 catch (          CoreException ce) {
            logApplicationModuleFailureError(Messages.ERROR_FAILED_MEMORY_UPDATE);
          }
        }
 else {
          logApplicationModuleFailureError(Messages.ERROR_INVALID_MEMORY);
        }
      }
    }
  }
);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  Button envVarsButton=createGeneralPushButton(client,"String_Node_Str");
  envVarsButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      try {
        final CloudFoundryApplicationModule appModule=getExistingApplication();
        if (appModule != null) {
          UIJob uiJob=new UIJob("String_Node_Str"){
            public IStatus runInUIThread(            IProgressMonitor monitor){
              try {
                DeploymentInfoWorkingCopy infoWorkingCopy=appModule.resolveDeploymentInfoWorkingCopy(monitor);
                EnvVarsWizard wizard=new EnvVarsWizard(cloudServer,appModule,infoWorkingCopy);
                WizardDialog dialog=new WizardDialog(editorPage.getEditorSite().getShell(),wizard);
                dialog.open();
                return Status.OK_STATUS;
              }
 catch (              CoreException e) {
                return e.getStatus();
              }
            }
          }
;
          uiJob.setSystem(true);
          uiJob.setPriority(Job.INTERACTIVE);
          uiJob.schedule();
        }
      }
 catch (      CoreException ce) {
        logError("String_Node_Str" + ce.getMessage());
      }
    }
  }
);
}

Fixed version (ground truth):
private void createGeneralSectionRestartRequired(Composite parent){
  generalSectionRestartRequired=toolkit.createSection(parent,Section.TITLE_BAR);
  generalSectionRestartRequired.setLayout(new GridLayout());
  GridDataFactory.fillDefaults().grab(true,false).applyTo(generalSectionRestartRequired);
  generalSectionRestartRequired.setText("String_Node_Str");
  generalSectionRestartRequired.clientVerticalSpacing=0;
  Composite client=toolkit.createComposite(generalSectionRestartRequired);
  client.setLayout(new GridLayout(2,false));
  GridDataFactory.fillDefaults().grab(true,false).applyTo(client);
  generalSectionRestartRequired.setClient(client);
  createLabel(client,org.cloudfoundry.ide.eclipse.internal.server.ui.Messages.LABEL_MEMORY_LIMIT,SWT.CENTER);
  Composite memoryArea=toolkit.createComposite(client);
  GridLayoutFactory.fillDefaults().numColumns(2).margins(0,0).applyTo(memoryArea);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(memoryArea);
  memoryText=new Text(memoryArea,SWT.BORDER);
  memoryText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      try {
        Integer.parseInt(memoryText.getText());
        logError(null);
      }
 catch (      NumberFormatException nfe) {
        logError(Messages.ERROR_INVALID_MEMORY);
      }
    }
  }
);
  GridDataFactory.fillDefaults().align(SWT.LEFT,SWT.FILL).hint(50,SWT.DEFAULT).applyTo(memoryText);
  final Button setMemoryButton=createGeneralPushButton(memoryArea,"String_Node_Str");
  setMemoryButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (canUpdate && memoryText != null && !memoryText.isDisposed()) {
        int memory=-1;
        try {
          memory=Integer.parseInt(memoryText.getText());
        }
 catch (        NumberFormatException nfe) {
        }
        if (memory > 0) {
          try {
            CloudFoundryApplicationModule appModule=getExistingApplication();
            new UpdateApplicationMemoryAction(editorPage,memory,appModule).run();
            logError(null);
          }
 catch (          CoreException ce) {
            logError(Messages.ERROR_FAILED_MEMORY_UPDATE);
          }
        }
 else {
          logError(Messages.ERROR_INVALID_MEMORY);
        }
      }
    }
  }
);
  createLabel(client,"String_Node_Str",SWT.CENTER);
  Button envVarsButton=createGeneralPushButton(client,"String_Node_Str");
  envVarsButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      try {
        final CloudFoundryApplicationModule appModule=getExistingApplication();
        if (appModule != null) {
          UIJob uiJob=new UIJob("String_Node_Str"){
            public IStatus runInUIThread(            IProgressMonitor monitor){
              try {
                DeploymentInfoWorkingCopy infoWorkingCopy=appModule.resolveDeploymentInfoWorkingCopy(monitor);
                EnvVarsWizard wizard=new EnvVarsWizard(cloudServer,appModule,infoWorkingCopy);
                WizardDialog dialog=new WizardDialog(editorPage.getEditorSite().getShell(),wizard);
                dialog.open();
                return Status.OK_STATUS;
              }
 catch (              CoreException e) {
                return e.getStatus();
              }
            }
          }
;
          uiJob.setSystem(true);
          uiJob.setPriority(Job.INTERACTIVE);
          uiJob.schedule();
        }
      }
 catch (      CoreException ce) {
        logError("String_Node_Str" + ce.getMessage());
      }
    }
  }
);
}