dialogBuilder.setTitle("Import previous saved bug collection xml");
final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
final String exportDir = preferences.getProperty(FindBugsPreferences.EXPORT_BASE_DIR, FindBugsPluginConstants.DEFAULT_EXPORT_DIR) + File.separatorChar + project.getName();
final ImportFileDialog importFileDialog = new ImportFileDialog(exportDir, dialogBuilder);
dialogBuilder.showModal(true);
if (dialogBuilder.getDialogWrapper().getExitCode() == DialogWrapper.CANCEL_EXIT_CODE) {
return;
}
final String fileToImport = importFileDialog.getText();
if (fileToImport == null || fileToImport.trim().isEmpty()) {
return;
}