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()); } }
public String[] getExportExtensions() { IValidateService validateService = ServiceProvider.getInstance().getValidateService(); return validateService.getExportExtentions(); }