logger.logMessage(ConsoleLogger.INFO, "Analysis of " + project + " cancelled by user");
if (dialog.exceptionOccurred()) {  Exception e = dialog.getException(); AnalysisErrorDialog err = new AnalysisErrorDialog(this, true); err.addLine("Fatal analysis exception: " + e.toString()); StackTraceElement[] callList = e.getStackTrace(); for (int i = 0; i < callList.length; ++i) err.addLine("\t" + callList[i]); err.finish(); err.setSize(650,500); err.show(); } else {  logger.logMessage(ConsoleLogger.INFO, "Analysis of " + project + " cancelled by user"); }
    private void findBugsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_findBugsButtonActionPerformed        Project project = getCurrentProject();                if (project.getNumJarFiles() == 0) {            logger.logMessage(ConsoleLogger.ERROR, "Project " + project + " has no Jar files selected");            return;        }                bugDescriptionEditorPane.setText("");        sourceTextArea.setText("");        AnalysisRun analysisRun = new AnalysisRun(project, this);                logger.logMessage(ConsoleLogger.INFO, "Beginning analysis of " + project);                // Run the analysis!        RunAnalysisDialog dialog = new RunAnalysisDialog(this, analysisRun);        dialog.setSize(400, 300);        dialog.setLocationRelativeTo(null); // center the dialog        dialog.show();                if (dialog.isCompleted()) {            logger.logMessage(ConsoleLogger.INFO, "Analysis " + project + " completed");	    // Report any errors that might have occurred during analysis	    analysisRun.reportAnalysisErrors();                        // Now we have an analysis run to look at            synchAnalysisRun(analysisRun);        } else {            logger.logMessage(ConsoleLogger.INFO, "Analysis of " + project + " cancelled by user");        }    }//GEN-LAST:event_findBugsButtonActionPerformed