public void exportDependencies(File file) { IAnalyseService analyseService = ServiceProvider.getInstance().getAnalyseService(); try { analyseService.exportDependencies(file.getAbsolutePath()); } catch (Exception exception) { IControlService controlService = ServiceProvider.getInstance().getControlService(); controlService.showErrorMessage(exception.getMessage()); } }
public void exportViolationsReport(File file) { Filename filename = new Filename(file, File.separatorChar, '.'); IValidateService validateService = ServiceProvider.getInstance().getValidateService(); try { validateService.exportViolations(file, filename.getExtension()); } catch (Exception exception) { IControlService controlService = ServiceProvider.getInstance().getControlService(); controlService.showErrorMessage(exception.getMessage()); } }