Program: 168166
Project: 168166
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (CooccurrenceWordCountImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
      final String outputPath=layoutData.getOutputLabel().getText();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final List<String> selectedFiles=inputLayoutData.getSelectedFiles();
      final boolean isBuildMatrix=buildMAtrix.getSelection();
      final String windowSizeStr=windowSize.getText();
      final String thresholdLimit=thresholdValue.getText();
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      cooccurrenceAnalysisJob=new Job("String_Node_Str"){
        private Preprocess preprocessTask;
        private String dirPath;
        private String seedFilePath;
        private String seedFileLocation;
        protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",selectedFiles.size() + 40);
          preprocessTask=null;
          dirPath="String_Node_Str";
          seedFilePath=seedFile.getText();
          List<File> inputFiles=new ArrayList<File>();
          if (isPreprocess) {
            monitor.subTask("String_Node_Str");
            preprocessTask=new Preprocess("String_Node_Str");
            try {
              dirPath=preprocessTask.doPreprocessing(selectedFiles,"String_Node_Str");
              monitor.worked(10);
              ArrayList<String> seedList=new ArrayList<String>();
              seedList.add(seedFilePath);
              monitor.subTask("String_Node_Str");
              preprocessTask.doPreprocessing(seedList,"String_Node_Str");
              monitor.worked(5);
              seedFileLocation=new File(dirPath + File.separator + new File(seedFilePath).getName()).getAbsolutePath();
              File[] inputFile=new File(dirPath).listFiles();
              for (              File iFile : inputFile) {
                inputFiles.add(iFile);
              }
            }
 catch (            IOException e) {
              e.printStackTrace();
            }
          }
 else {
            for (            String filepath : selectedFiles) {
              if ((new File(filepath).isDirectory())) {
                continue;
              }
              inputFiles.add(new File(filepath));
            }
            monitor.worked(15);
          }
          long startTime=System.currentTimeMillis();
          boolean result=new CooccurrenceAnalysis().invokeCooccurrence(selectedFiles,seedFileLocation,outputPath,windowSizeStr,thresholdLimit,isBuildMatrix,monitor);
          if (result) {
            TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
            ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
            if (preprocessEnabled.getSelection()) {
              monitor.subTask("String_Node_Str");
              preprocessTask.clean();
            }
            monitor.worked(5);
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.OK_STATUS;
          }
 else {
            TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
            if (preprocessEnabled.getSelection()) {
              monitor.subTask("String_Node_Str");
              preprocessTask.clean();
            }
            monitor.worked(5);
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
        }
      }
;
      cooccurrenceAnalysisJob.setUser(true);
      if (canProceed()) {
        cooccurrenceAnalysisJob.schedule();
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (CooccurrenceWordCountImageRegistry.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 (CooccurrenceWordCountImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
      final String outputPath=layoutData.getOutputLabel().getText();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final List<String> selectedFiles=inputLayoutData.getSelectedFiles();
      final boolean isBuildMatrix=buildMAtrix.getSelection();
      final String windowSizeStr=windowSize.getText();
      final String thresholdLimit=thresholdValue.getText();
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      cooccurrenceAnalysisJob=new Job("String_Node_Str"){
        private Preprocess preprocessTask;
        private String dirPath;
        private String seedFilePath=seedFile.getText();
        private String seedFileLocation;
        protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",selectedFiles.size() + 40);
          preprocessTask=null;
          dirPath="String_Node_Str";
          List<File> inputFiles=new ArrayList<File>();
          seedFileLocation=seedFilePath;
          if (isPreprocess) {
            monitor.subTask("String_Node_Str");
            preprocessTask=new Preprocess("String_Node_Str");
            try {
              dirPath=preprocessTask.doPreprocessing(selectedFiles,"String_Node_Str");
              monitor.worked(10);
              ArrayList<String> seedList=new ArrayList<String>();
              seedList.add(seedFilePath);
              monitor.subTask("String_Node_Str");
              preprocessTask.doPreprocessing(seedList,"String_Node_Str");
              monitor.worked(5);
              seedFileLocation=new File(dirPath + File.separator + new File(seedFilePath).getName()).getAbsolutePath();
              File[] inputFile=new File(dirPath).listFiles();
              for (              File iFile : inputFile) {
                inputFiles.add(iFile);
              }
            }
 catch (            IOException e) {
              e.printStackTrace();
            }
          }
 else {
            for (            String filepath : selectedFiles) {
              if ((new File(filepath).isDirectory())) {
                continue;
              }
              inputFiles.add(new File(filepath));
            }
            monitor.worked(15);
          }
          long startTime=System.currentTimeMillis();
          boolean result=new CooccurrenceAnalysis().invokeCooccurrence(selectedFiles,seedFileLocation,outputPath,windowSizeStr,thresholdLimit,isBuildMatrix,monitor);
          if (result) {
            TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
            ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
            if (isPreprocess) {
              monitor.subTask("String_Node_Str");
              preprocessTask.clean();
            }
            monitor.worked(5);
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.OK_STATUS;
          }
 else {
            TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
            if (isPreprocess) {
              monitor.subTask("String_Node_Str");
              preprocessTask.clean();
            }
            monitor.worked(5);
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
        }
      }
;
      cooccurrenceAnalysisJob.setUser(true);
      if (canProceed()) {
        cooccurrenceAnalysisJob.schedule();
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (CooccurrenceWordCountImageRegistry.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);
}