X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.model%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fmodel%2Fbrowsecontexts%2FBrowseContext.java;h=8d5a427c2502bf573e22a87fd682f3eccd69ec34;hp=a1eaf78a8f87b4c64fb3eca61ca3a33cc9acd93f;hb=0b471805f017da83d715a0d8409f53bdd009d31e;hpb=145a2884933f2ffdd48d6835729e58f1152d274e diff --git a/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java b/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java index a1eaf78a8..8d5a427c2 100644 --- a/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java +++ b/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java @@ -261,7 +261,11 @@ public class BrowseContext { public static ArrayList augment(ReadGraph graph, BrowseContext bc, Collection contexts, boolean resolveABC) throws DatabaseException { ArrayList result = new ArrayList(); for(NodeContext context : contexts) { - ActionBrowseContext abc = resolveABC ? graph.syncRequest(new ResolveActionBrowseContext(context)) : null; + ActionBrowseContext abc = null; + if(resolveABC) { + abc = graph.syncRequest(new ResolveActionBrowseContext(context)); + if(abc == null) abc = (ActionBrowseContext)context.getConstant(BuiltinKeys.ACTION_BROWSE_CONTEXT); + } result.add(NodeContextBuilder.buildWithData(NodeType.KEY_SEQUENCE_EXT, new Object[] { context.getConstant(BuiltinKeys.INPUT),