Shell activeShell = new Shell();
FileDialog d = new FileDialog(activeShell, SWT.SAVE);
String fileName = d.open();
if (fileName != null) {
File outputFile = new File(fileName);
XMLExporter exporter;
try {
exporter = new XMLExporter(outputFile);
doExport(activeShell, exporter);
} catch (FileNotFoundException e) {
logger.log(Level.WARNING,
"MetricsView::File not found", e);
} catch (InvocationTargetException e) {