if (JFileChooser.APPROVE_OPTION == directoryChooser.showSaveDialog(this)) {
int choice = JOptionPane.showConfirmDialog(this,
"Would you like the spatial function images "
+ "to show the A and B geometries?", "Confirmation",
JOptionPane.YES_NO_CANCEL_OPTION);
final HtmlWriter writer = new HtmlWriter();
switch (choice) {
case JOptionPane.CANCEL_OPTION:
return;
case JOptionPane.YES_OPTION:
writer.setShowingABwithSpatialFunction(true);
break;
case JOptionPane.NO_OPTION:
writer.setShowingABwithSpatialFunction(false);
break;
}
final File directory = directoryChooser.getSelectedFile();
Assert.isTrue(directory.exists());
// BusyDialog.setOwner(this);
// BusyDialog busyDialog = new BusyDialog();
// writer.setBusyDialog(busyDialog);
// try {
// busyDialog.execute("Saving .html and .gif files", new BusyDialog.Executable() {
// public void execute() throws Exception {
writer.write(directory, tbModel.getTestCaseList(), tbModel.getPrecisionModel());
// }
// });
// }
// catch (Exception e2) {
// System.out.println(busyDialog.getStackTrace());