Program: 168099
Project: 168099
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (KmeansClusterViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceedCluster()) {
        return;
      }
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      final int noOfClusters=Integer.valueOf(noClusterTxt.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String outputPath=layoutData.getOutputLabel().getText();
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> selectedFiles=layData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      performCluster=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);
          Preprocessor ppObj=null;
          List<File> inputFiles=new ArrayList<File>();
          List<String> inFiles=null;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",selectedFiles);
            for (            String string : inFiles) {
              inputFiles.add(new File(string));
            }
            monitor.worked(10);
          }
 catch (          IOException e) {
            e.printStackTrace();
          }
catch (          Exception e) {
            e.printStackTrace();
          }
          long startTime=System.currentTimeMillis();
          monitor.subTask("String_Node_Str");
          Date dateObj=new Date();
          boolean isSuccessful=KmeansClusterAnalysis.runClustering(noOfClusters,inputFiles,outputPath,dateObj);
          if (!isSuccessful)           return Status.CANCEL_STATUS;
          monitor.worked(80);
          ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          if (monitor.isCanceled()) {
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            throw new OperationCanceledException();
          }
          ppObj.clean();
          monitor.worked(10);
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      performCluster.setUser(true);
      if (canProceedCluster()) {
        performCluster.schedule();
        performCluster.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");
            }
          }
        }
);
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (KmeansClusterViewImageRegistry.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 (KmeansClusterViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceedCluster()) {
        return;
      }
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      final int noOfClusters=Integer.valueOf(noClusterTxt.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String outputPath=layoutData.getOutputLabel().getText();
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> selectedFiles=layData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      performCluster=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);
          Preprocessor ppObj=null;
          List<File> inputFiles=new ArrayList<File>();
          List<String> inFiles=null;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",selectedFiles);
            for (            String string : inFiles) {
              inputFiles.add(new File(string));
            }
            monitor.worked(10);
          }
 catch (          IOException e) {
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          Exception e) {
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
          long startTime=System.currentTimeMillis();
          monitor.subTask("String_Node_Str");
          Date dateObj=new Date();
          boolean isSuccessful=KmeansClusterAnalysis.runClustering(noOfClusters,inputFiles,outputPath,dateObj);
          if (!isSuccessful)           return Status.CANCEL_STATUS;
          monitor.worked(80);
          ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          if (monitor.isCanceled()) {
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            throw new OperationCanceledException();
          }
          ppObj.clean();
          monitor.worked(10);
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      performCluster.setUser(true);
      if (canProceedCluster()) {
        performCluster.schedule();
        performCluster.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");
            }
          }
        }
);
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (KmeansClusterViewImageRegistry.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);
}