import org.simantics.db.layer0.util.Layer0Utils;\r
import org.simantics.db.layer0.util.ModelDependenciesBean;\r
import org.simantics.db.layer0.util.ModelDependency;\r
+import org.simantics.db.layer0.util.ModelTransferableGraphSourceRequest;\r
import org.simantics.db.layer0.util.RemoverUtil;\r
import org.simantics.db.request.Read;\r
import org.simantics.diagram.stubs.DiagramResource;\r
import org.simantics.issues.common.AllBatchIssueSources;\r
import org.simantics.issues.common.BatchIssueSource;\r
+import org.simantics.issues.common.BatchIssueValidationContext;\r
import org.simantics.issues.ontology.IssueResource;\r
import org.simantics.layer0.Layer0;\r
import org.simantics.layer0.utils.direct.GraphUtils;\r
SubMonitor progress = null;\r
if(monitor != null)\r
progress = SubMonitor.convert(monitor, "Validate Model", 100);\r
- Collection<Resource> contexts = Collections.singletonList(conf);\r
+ BatchIssueValidationContext context = new BatchIssueValidationContext();\r
+ context.domain = ModelTransferableGraphSourceRequest.getDomainOnly(session, monitor, conf);\r
+ context.contexts = BatchValidations.fillConfig(progress, Collections.singletonList(conf));\r
for(BatchIssueSource bis : validations) {\r
- Map<Resource, Set<Issue>> is = BatchValidations.validate(monitor != null ? progress.newChild(90, SubMonitor.SUPPRESS_NONE) : null, bis, contexts);\r
+ Map<Resource, Set<Issue>> is = BatchValidations.validate(monitor != null ? progress.newChild(90, SubMonitor.SUPPRESS_NONE) : null, bis, context);\r
BatchValidations.store(monitor != null ? progress.newChild(10, SubMonitor.SUPPRESS_NONE) : null, bis.getResource(), is);\r
}\r
}\r