Display.getDefault().getActiveShell(), SWT.SAVE);
dialog.setFilterExtensions(new String[] { "*.xls" });
String path = dialog.open();
if (path != null) {
ExcelFormatter formatter = new ExcelFormatter();
byte[] data = formatter.format(results.toArray(new CountResult[results.size()]));
FileOutputStream out = null;
try {
out = new FileOutputStream(path);
out.write(data);
} catch (Exception ex) {