ExportToHTMLDialog (@NotNull final Project project, @NotNull final DataContext dataContext, @NotNull final CoverageSuitesBundle currentSuite) { final ExportToHTMLDialog dialog = new ExportToHTMLDialog(project, true); dialog.setTitle(CoverageBundle.message("generate.coverage.report.for", currentSuite.getPresentableName())); final ExportToHTMLSettings settings = ExportToHTMLSettings.getInstance(project); if (StringUtil.isEmpty(settings.OUTPUT_DIRECTORY)) { final VirtualFile file = ProjectUtil.guessProjectDir(project); if (file != null) { final String path = file.getCanonicalPath(); if (path != null) { settings.OUTPUT_DIRECTORY = FileUtil.toSystemDependentName(path) + File.separator + "htmlReport"; } } } return dialog; }