summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
4c6e2a3)
gitlab #408
Change-Id: I331016fcae55434cc612c6301b74189a47142e90
import org.simantics.db.layer0.variable.VariableMap;
import org.simantics.db.layer0.variable.VariableMapImpl;
import org.simantics.db.layer0.variable.VariableNode;
import org.simantics.db.layer0.variable.VariableMap;
import org.simantics.db.layer0.variable.VariableMapImpl;
import org.simantics.db.layer0.variable.VariableNode;
+import org.simantics.db.layer0.variable.Variables;
import org.simantics.db.service.CollectionSupport;
import org.simantics.issues.common.IssueUtils;
import org.simantics.layer0.Layer0;
import org.simantics.db.service.CollectionSupport;
import org.simantics.issues.common.IssueUtils;
import org.simantics.layer0.Layer0;
public static List<SubstructureElement> getProceduralDesc(ReadGraph graph, final Variable context) throws DatabaseException {
StructuralResource2 STR = StructuralResource2.getInstance(graph);
public static List<SubstructureElement> getProceduralDesc(ReadGraph graph, final Variable context) throws DatabaseException {
StructuralResource2 STR = StructuralResource2.getInstance(graph);
- final Resource type = context.getPossibleType(graph);
+ Variable config = Variables.getConfigurationVariable(graph, context);
+ final Resource type = config.getPossibleType(graph);
if(type != null) {
if(graph.isInstanceOf(type, STR.ProceduralComponentType)) {
if(type != null) {
if(graph.isInstanceOf(type, STR.ProceduralComponentType)) {
- return graph.syncRequest(new SubstructureRequest(context));
+ return graph.syncRequest(new SubstructureRequest(config));