From: jsimomaa Date: Mon, 3 Jul 2017 18:24:36 +0000 (+0300) Subject: Ignore ModuleCompilationOptions X-Git-Tag: v1.31.0~282 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=2ec5d3e88fb2277929b249fd0d2eb32ab24f2f58;p=simantics%2Fplatform.git Ignore ModuleCompilationOptions for now until UnsupportedOperationException in CHR is fixed.. Change-Id: I701cc6156a2f02b6eb2b5f84949f961a340dd286 --- diff --git a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java index 94ff2b6b6..e1eb08baf 100644 --- a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java +++ b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java @@ -102,22 +102,22 @@ public class ModelledSTSTest { ModuleRepository repo = new ModuleRepository(SCLOsgi.SOURCE_REPOSITORY); CommandSession session = null; try { - repo.setAdvisor(new ModuleCompilationOptionsAdvisor() { - - @Override - public ModuleCompilationOptions getOptions(String moduleName) { - // TODO: default to false - boolean coverage = true; - // TODO: add moduleName filters back - // for (Pattern p : getModuleNameFilterPatterns()) { - // if (p.matcher(moduleName.toLowerCase()).find()) { - // coverage = true; - // break; - // } - // } - return new ModuleCompilationOptions(coverage); - } - }); +// repo.setAdvisor(new ModuleCompilationOptionsAdvisor() { +// +// @Override +// public ModuleCompilationOptions getOptions(String moduleName) { +// // TODO: default to false +// boolean coverage = true; +// // TODO: add moduleName filters back +// // for (Pattern p : getModuleNameFilterPatterns()) { +// // if (p.matcher(moduleName.toLowerCase()).find()) { +// // coverage = true; +// // break; +// // } +// // } +// return new ModuleCompilationOptions(coverage); +// } +// }); SCLReportingHandler handler = (SCLReportingHandler) SCLContext.getCurrent().get(SCLReportingHandler.REPORTING_HANDLER); session = new CommandSession(repo, handler);