示例#1
0
 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());
   }
 }
示例#2
0
 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());
   }
 }