X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2FImmutableComponentVariableBuilder.java;h=6d1388caf374635bd1b5d0e54fd36b83cde835df;hb=1f8b50d81a1aa1bbd67a77f7cbc1060f2eb805d4;hp=87a342f13b9fa0284e17e961e66dfb736446a629;hpb=5bc1c2b950d374ecfcc206981724c3b9286dcbd6;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/ImmutableComponentVariableBuilder.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/ImmutableComponentVariableBuilder.java index 87a342f13..6d1388caf 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/ImmutableComponentVariableBuilder.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/ImmutableComponentVariableBuilder.java @@ -17,18 +17,10 @@ public class ImmutableComponentVariableBuilder implements VariableBuilder< @Override public Variable buildChild(ReadGraph graph, Variable parent, VariableNode node, Resource child) throws DatabaseException { boolean isImmutable = graph.isImmutable(child); - Resource possibleIndexRoot = graph.syncRequest(new PossibleIndexRoot(child)); - if(possibleIndexRoot != null) { -// String puri = graph.getURI(possibleIndexRoot); -// if(puri.contains("ModelBroker")) -// isImmutable = true; -// if(NameUtils.getSafeName(graph, child).equals("Project")) -// isImmutable = false; - } if(isImmutable) { -// System.err.println("ImmutableComponentVariableContentRequest " + parent.getURI(graph) + " " + NameUtils.getSafeName(graph, child)); - ImmutableComponentVariableContent content = graph.syncRequest(new ImmutableComponentVariableContentRequest(child), TransientCacheListener.instance()); - return new ImmutableComponentVariable(parent, content); +// ImmutableComponentVariableContent content = graph.syncRequest(new ImmutableComponentVariableContentRequest(child), TransientCacheListener.instance()); +// return new ImmutableComponentVariable(parent, content); + return new StandardGraphChildVariable(parent, node, child); } else { return new StandardGraphChildVariable(parent, node, child); }