Program: 140417
Project: 140417
Buggy source:
@Override public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
  monitor.beginTask("String_Node_Str" + analysis.getName() + "String_Node_Str",IProgressMonitor.UNKNOWN);
  final ReturnCode executed=AnalysisExecutorSelector.executeAnalysis(finalAnalysis);
  monitor.done();
  if (executed.isOk()) {
    if (log.isInfoEnabled()) {
      int executionDuration=analysis.getResults().getResultMetadata().getExecutionDuration();
      log.info("String_Node_Str" + finalAnalysis.getName() + "String_Node_Str"+ executed+ "String_Node_Str"+ FORMAT_SECONDS.format(Double.valueOf(executionDuration) / 1000)+ "String_Node_Str");
    }
    AnaResourceFileHelper.getInstance().save(finalAnalysis);
    if (page != null) {
      Display.getDefault().asyncExec(new Runnable(){
        public void run(){
          if (page instanceof ColumnMasterDetailsPage) {
            ColumnMasterDetailsPage columnMasterPage=(ColumnMasterDetailsPage)page;
            columnMasterPage.refreshChart(columnMasterPage.getForm());
          }
 else           if (page instanceof ConnectionMasterDetailsPage) {
            ConnectionMasterDetailsPage connDetailsPage=(ConnectionMasterDetailsPage)page;
            connDetailsPage.doSetInput();
          }
        }
      }
);
    }
    return Status.OK_STATUS;
  }
 else {
    int executionDuration=analysis.getResults().getResultMetadata().getExecutionDuration();
    log.warn("String_Node_Str" + finalAnalysis.getName() + "String_Node_Str"+ executed+ "String_Node_Str"+ FORMAT_SECONDS.format(Double.valueOf(executionDuration) / 1000)+ "String_Node_Str");
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        MessageDialogWithToggle.openError(null,"String_Node_Str","String_Node_Str" + finalAnalysis.getName() + "String_Node_Str"+ executed.getMessage());
      }
    }
);
    return Status.CANCEL_STATUS;
  }
}

Fixed version (ground truth):
@Override public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
  monitor.beginTask("String_Node_Str" + analysis.getName() + "String_Node_Str",IProgressMonitor.UNKNOWN);
  final ReturnCode executed=AnalysisExecutorSelector.executeAnalysis(finalAnalysis);
  monitor.done();
  AnaResourceFileHelper.getInstance().save(finalAnalysis);
  if (page != null) {
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        if (page instanceof ColumnMasterDetailsPage) {
          ColumnMasterDetailsPage columnMasterPage=(ColumnMasterDetailsPage)page;
          columnMasterPage.refreshChart(columnMasterPage.getForm());
        }
 else         if (page instanceof ConnectionMasterDetailsPage) {
          ConnectionMasterDetailsPage connDetailsPage=(ConnectionMasterDetailsPage)page;
          connDetailsPage.doSetInput();
        }
      }
    }
);
  }
  if (executed.isOk()) {
    if (log.isInfoEnabled()) {
      int executionDuration=analysis.getResults().getResultMetadata().getExecutionDuration();
      log.info("String_Node_Str" + finalAnalysis.getName() + "String_Node_Str"+ executed+ "String_Node_Str"+ FORMAT_SECONDS.format(Double.valueOf(executionDuration) / 1000)+ "String_Node_Str");
    }
    return Status.OK_STATUS;
  }
 else {
    int executionDuration=analysis.getResults().getResultMetadata().getExecutionDuration();
    log.warn("String_Node_Str" + finalAnalysis.getName() + "String_Node_Str"+ executed+ "String_Node_Str"+ FORMAT_SECONDS.format(Double.valueOf(executionDuration) / 1000)+ "String_Node_Str");
    Display.getDefault().asyncExec(new Runnable(){
      public void run(){
        MessageDialogWithToggle.openError(null,"String_Node_Str","String_Node_Str" + finalAnalysis.getName() + "String_Node_Str"+ executed.getMessage());
      }
    }
);
    return Status.CANCEL_STATUS;
  }
}