Program: 168100
Project: 168100
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceedCluster()) {
        return;
      }
      final int noOfTopics=Integer.valueOf(numberOfTopics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String outputPath=layoutData.getOutputLabel().getText();
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> selectedFiles=inputLayoutData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      final String preFix=prefixTxt.getText();
      final boolean wordWeightFile=wordWeights.getSelection();
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",100);
          String topicModelDirPath=System.getProperty("String_Node_Str") + File.separator + "String_Node_Str"+ "String_Node_Str"+ String.valueOf(System.currentTimeMillis());
          Preprocessor ppObj=null;
          List<String> inFiles;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",selectedFiles);
            for (            String filename : inFiles) {
              File srcFile=new File(filename);
              File destDir=new File(topicModelDirPath);
              try {
                FileUtils.copyFileToDirectory(srcFile,destDir,false);
              }
 catch (              IOException e) {
                e.printStackTrace();
                return Status.CANCEL_STATUS;
              }
            }
          }
 catch (          IOException e1) {
            e1.printStackTrace();
          }
catch (          Exception e1) {
            e1.printStackTrace();
          }
          lda.initialize(topicModelDirPath,noOfTopics,outputPath,preFix,wordWeightFile);
          long startTime=System.currentTimeMillis();
          Date dateObj=new Date();
          monitor.subTask("String_Node_Str");
          try {
            lda.doLDA(monitor,dateObj);
          }
 catch (          FileNotFoundException e) {
            e.printStackTrace();
            monitor.done();
            return Status.CANCEL_STATUS;
          }
catch (          IOException e) {
            e.printStackTrace();
            monitor.done();
            return Status.CANCEL_STATUS;
          }
          monitor.worked(20);
          if (monitor.isCanceled()) {
            return Status.CANCEL_STATUS;
          }
          ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          ppObj.clean();
          try {
            FileUtils.deleteDirectory(new File(topicModelDirPath));
          }
 catch (          IOException e) {
            e.printStackTrace();
          }
          monitor.worked(10);
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedCluster()) {
        job.schedule();
        job.addJobChangeListener(new JobChangeAdapter(){
          @Override public void done(          IJobChangeEvent event){
            if (!event.getResult().isOK()) {
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
            }
 else {
              TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            }
          }
        }
);
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      PlatformUI.getWorkbench().getHelpSystem().displayHelp("String_Node_Str");
    }
  }
;
  mgr.add(helpAction);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(helpAction,"String_Node_Str");
  PlatformUI.getWorkbench().getHelpSystem().setHelp(form,"String_Node_Str");
  form.getToolBarManager().update(true);
}

Fixed version (ground truth):
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceedCluster()) {
        return;
      }
      final int noOfTopics=Integer.valueOf(numberOfTopics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String outputPath=layoutData.getOutputLabel().getText();
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> selectedFiles=inputLayoutData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      final String preFix=prefixTxt.getText();
      final boolean wordWeightFile=wordWeights.getSelection();
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",100);
          String topicModelDirPath=System.getProperty("String_Node_Str") + File.separator + "String_Node_Str"+ "String_Node_Str"+ String.valueOf(System.currentTimeMillis());
          Preprocessor ppObj=null;
          List<String> inFiles;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",selectedFiles);
            for (            String filename : inFiles) {
              File srcFile=new File(filename);
              File destDir=new File(topicModelDirPath);
              try {
                FileUtils.copyFileToDirectory(srcFile,destDir,false);
              }
 catch (              IOException e) {
                e.printStackTrace();
                return Status.CANCEL_STATUS;
              }
            }
          }
 catch (          IOException e1) {
            e1.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          Exception e1) {
            e1.printStackTrace();
            return Status.CANCEL_STATUS;
          }
          lda.initialize(topicModelDirPath,noOfTopics,outputPath,preFix,wordWeightFile);
          long startTime=System.currentTimeMillis();
          Date dateObj=new Date();
          monitor.subTask("String_Node_Str");
          try {
            lda.doLDA(monitor,dateObj);
          }
 catch (          FileNotFoundException e) {
            e.printStackTrace();
            monitor.done();
            return Status.CANCEL_STATUS;
          }
catch (          IOException e) {
            e.printStackTrace();
            monitor.done();
            return Status.CANCEL_STATUS;
          }
          monitor.worked(20);
          if (monitor.isCanceled()) {
            return Status.CANCEL_STATUS;
          }
          ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          ppObj.clean();
          try {
            FileUtils.deleteDirectory(new File(topicModelDirPath));
          }
 catch (          IOException e) {
            e.printStackTrace();
          }
          monitor.worked(10);
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedCluster()) {
        job.schedule();
        job.addJobChangeListener(new JobChangeAdapter(){
          @Override public void done(          IJobChangeEvent event){
            if (!event.getResult().isOK()) {
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
            }
 else {
              TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            }
          }
        }
);
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      PlatformUI.getWorkbench().getHelpSystem().displayHelp("String_Node_Str");
    }
  }
;
  mgr.add(helpAction);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(helpAction,"String_Node_Str");
  PlatformUI.getWorkbench().getHelpSystem().setHelp(form,"String_Node_Str");
  form.getToolBarManager().update(true);
}