Program: 168184
Project: 168184
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (ZlabelLdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
      final int noOfTopics=Integer.valueOf(topics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String inputPath=inputLayoutData.getOutputLabel().getText();
      final String outputPath=layoutData.getOutputLabel().getText();
      final String seedFilePath=seedFileText.getText();
      NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          NlputilsFormComposite.setConsoleViewInFocus();
          NlputilsFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",100);
          List<String> inputFiles=new ArrayList<String>();
          String topicModelDirPath=inputPath;
          Preprocess preprocessTask=null;
          if (isPreprocess) {
            monitor.subTask("String_Node_Str");
            preprocessTask=new Preprocess("String_Node_Str");
            try {
              File[] inputFile=new File(inputPath).listFiles();
              for (              File iFile : inputFile) {
                inputFiles.add(iFile.toString());
              }
              topicModelDirPath=preprocessTask.doPreprocessing(inputFiles,"String_Node_Str");
            }
 catch (            IOException e) {
              NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              e.printStackTrace();
            }
            monitor.worked(10);
          }
          long startTime=System.currentTimeMillis();
          ZlabelTopicModelAnalysis zlda=new ZlabelTopicModelAnalysis(new SubProgressMonitor(monitor,70));
          monitor.subTask("String_Node_Str");
          zlda.invokeLDA(topicModelDirPath,seedFilePath,noOfTopics,outputPath);
          System.out.println("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          if (monitor.isCanceled()) {
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          monitor.subTask("String_Node_Str");
          preprocessTask.clean();
          monitor.worked(10);
          monitor.done();
          NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          ;
          NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedJob()) {
        job.schedule();
      }
 else {
        NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (ZlabelLdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
    }
  }
);
  form.getToolBarManager().update(true);
}

Fixed version (ground truth):
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (ZlabelLdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
      final int noOfTopics=Integer.valueOf(topics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String inputPath=inputLayoutData.getOutputLabel().getText();
      final String outputPath=layoutData.getOutputLabel().getText();
      final String seedFilePath=seedFileText.getText();
      NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          NlputilsFormComposite.setConsoleViewInFocus();
          NlputilsFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",100);
          List<String> inputFiles=new ArrayList<String>();
          String topicModelDirPath=inputPath;
          Preprocess preprocessTask=null;
          if (isPreprocess) {
            monitor.subTask("String_Node_Str");
            preprocessTask=new Preprocess("String_Node_Str");
            try {
              File[] inputFile=new File(inputPath).listFiles();
              for (              File iFile : inputFile) {
                inputFiles.add(iFile.toString());
              }
              topicModelDirPath=preprocessTask.doPreprocessing(inputFiles,"String_Node_Str");
            }
 catch (            IOException e) {
              NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              e.printStackTrace();
            }
            monitor.worked(10);
          }
          long startTime=System.currentTimeMillis();
          ZlabelTopicModelAnalysis zlda=new ZlabelTopicModelAnalysis(new SubProgressMonitor(monitor,70));
          monitor.subTask("String_Node_Str");
          zlda.invokeLDA(topicModelDirPath,seedFilePath,noOfTopics,outputPath);
          System.out.println("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          if (monitor.isCanceled()) {
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          monitor.subTask("String_Node_Str");
          if (isPreprocess)           preprocessTask.clean();
          monitor.worked(10);
          monitor.done();
          NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          ;
          NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedJob()) {
        job.schedule();
      }
 else {
        NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (ZlabelLdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
    }
  }
);
  form.getToolBarManager().update(true);
}