Program: 168104
Project: 168104
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (WeightedWordCountImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceed()) {
        return;
      }
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      final String stopWordPath=CommonUiActivator.getDefault().getPreferenceStore().getString(IPreprocessorSettingsConstant.STOP_PATH);
      final String outputPath=layoutData.getOutputLabel().getText();
      String fileName="String_Node_Str";
      DateFormat df=new SimpleDateFormat("String_Node_Str");
      final Date dateobj=new Date();
      if (weightedWordCountButton.getSelection()) {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
 else {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
      final File oFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      final File sFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> inputFiles=inputLayoutData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      final Map<String,String[]> fileCorpusMap=tacitHelper.getFileCorpusMembership();
      final List<String> dictionaryFiles=dictLayoutData.getSelectedFiles(false);
      final boolean isLiwcStemming=false;
      final boolean isSnowBall=false;
      final boolean isSpss=spssRawFile.getSelection();
      final boolean isWdist=wordDistributionFile.getSelection();
      final boolean isStemDic=false;
      final boolean isPreprocess=false;
      wordCountJob=new Job("String_Node_Str"){
        private String dirPath;
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          List<File> selectedFiles=new ArrayList<File>();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",inputFiles.size() + 20);
          Preprocessor ppObj=null;
          List<String> inFiles;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",inputFiles);
            Display.getDefault().syncExec(new Runnable(){
              @Override public void run(){
                if (weightedWordCountButton.getSelection()) {
                  wordCountController=new WordCountApi(true);
                }
 else {
                  wordCountController=new WordCountApi(false);
                }
              }
            }
);
            for (            String f : inFiles) {
              selectedFiles.add(new File(f));
            }
            wordCountController.wordCount(monitor,selectedFiles,dictionaryFiles,isPreprocess ? stopWordPath : "String_Node_Str",outputPath,"String_Node_Str",true,isLiwcStemming,isSnowBall,isSpss,isWdist,isStemDic,oFile,sFile,dateobj,fileCorpusMap);
            ppObj.clean();
          }
 catch (          IOException e) {
            e.printStackTrace();
          }
catch (          DictionaryInvalidException die) {
            die.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          Exception e) {
            e.printStackTrace();
          }
          monitor.subTask("String_Node_Str");
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      wordCountJob.setUser(true);
      if (canProceed()) {
        wordCountJob.schedule();
        wordCountJob.addJobChangeListener(new JobChangeAdapter(){
          @Override public void done(          IJobChangeEvent event){
            if (!event.getResult().isOK()) {
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
            }
 else {
              TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            }
          }
        }
);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (WeightedWordCountImageRegistry.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 (WeightedWordCountImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceed()) {
        return;
      }
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      final String stopWordPath=CommonUiActivator.getDefault().getPreferenceStore().getString(IPreprocessorSettingsConstant.STOP_PATH);
      final String outputPath=layoutData.getOutputLabel().getText();
      String fileName="String_Node_Str";
      DateFormat df=new SimpleDateFormat("String_Node_Str");
      final Date dateobj=new Date();
      if (weightedWordCountButton.getSelection()) {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
 else {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
      final File oFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      final File sFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> inputFiles=inputLayoutData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      final Map<String,String[]> fileCorpusMap=tacitHelper.getFileCorpusMembership();
      final List<String> dictionaryFiles=dictLayoutData.getSelectedFiles(false);
      final boolean isLiwcStemming=false;
      final boolean isSnowBall=false;
      final boolean isSpss=spssRawFile.getSelection();
      final boolean isWdist=wordDistributionFile.getSelection();
      final boolean isStemDic=false;
      final boolean isPreprocess=false;
      wordCountJob=new Job("String_Node_Str"){
        private String dirPath;
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          List<File> selectedFiles=new ArrayList<File>();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",inputFiles.size() + 20);
          Preprocessor ppObj=null;
          List<String> inFiles;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",inputFiles);
            Display.getDefault().syncExec(new Runnable(){
              @Override public void run(){
                if (weightedWordCountButton.getSelection()) {
                  wordCountController=new WordCountApi(true);
                }
 else {
                  wordCountController=new WordCountApi(false);
                }
              }
            }
);
            for (            String f : inFiles) {
              selectedFiles.add(new File(f));
            }
            wordCountController.wordCount(monitor,selectedFiles,dictionaryFiles,isPreprocess ? stopWordPath : "String_Node_Str",outputPath,"String_Node_Str",true,isLiwcStemming,isSnowBall,isSpss,isWdist,isStemDic,oFile,sFile,dateobj,fileCorpusMap);
            ppObj.clean();
          }
 catch (          IOException e) {
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          DictionaryInvalidException die) {
            die.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          Exception e) {
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
          monitor.subTask("String_Node_Str");
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      wordCountJob.setUser(true);
      if (canProceed()) {
        wordCountJob.schedule();
        wordCountJob.addJobChangeListener(new JobChangeAdapter(){
          @Override public void done(          IJobChangeEvent event){
            if (!event.getResult().isOK()) {
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
            }
 else {
              TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            }
          }
        }
);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (WeightedWordCountImageRegistry.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);
}