if (getFileNameExtensionFilter() != null) {
progressDescription += " of type "
+ getFileNameExtensionFilter().getDescription();
}
progressDialog = new ProgressDialog(viewerFrame, progressDescription);
progressDialog.setProgress(null);
progressDialog.setText("Writing file: " + file.getAbsolutePath());
performExport(file);