Allow special category treatment for any predicate 68/1068/2
authorAntti Villberg <antti.villberg@semantum.fi>
Mon, 2 Oct 2017 18:24:40 +0000 (21:24 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 2 Oct 2017 19:27:23 +0000 (22:27 +0300)
refs #7525

Change-Id: I69b3e64d2d01bd7688f689b4f6facab96a87f127

bundles/org.simantics.selectionview.ui.ontology/graph/SelectionViewUi.pgraph
bundles/org.simantics.selectionview/src/org/simantics/selectionview/SelectionViewUtils.java

index 704e7430c417a7541255b2cd8d3e6f3242c9f02e..6f103f4bfa4add2ac8dc422429680556b4e34c71 100644 (file)
@@ -82,7 +82,7 @@ SEL.StandardProperties.BrowseContextStandardChildren <T SEL.StandardProperties.B
         SEL.StandardProperties.BrowseContextStandardChildren.Var : MOD.ModelingBrowseContext.VariablePropertyRule
           MOD.ModelingBrowseContext.VariablePropertyRule.RequireProperty "HasStandardPropertyInfo"
   @L0.assert VP.BrowseContext.HasChildContribution 
-    _ : VP.ChildContribution
+    SEL.StandardProperties.BrowseContextStandardChildren.CatContribution : VP.ChildContribution
       VP.ChildContribution.HasParentNodeType MOD.ModelingBrowseContext.Variable
       VP.ChildContribution.HasChildNodeType SEL.CategoryNode
       VP.ChildContribution.HasRule 
index ce80c9f827f41bfb9e2045432d1ea0e8c514efe2..a455848d4d7ee12bc1eb5523cfea755692881bc2 100644 (file)
@@ -18,7 +18,7 @@ public class SelectionViewUtils {
                SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
                Resource categoryResource = info.getPossibleRepresents(graph);
                
-               if(SEL.CategoryHidden.equals(categoryResource)) {
+               //if(SEL.CategoryHidden.equals(categoryResource)) {
                        
                        Variable property = info.getParent(graph);
                        Variable parent = property.getParent(graph);
@@ -41,7 +41,7 @@ public class SelectionViewUtils {
                        } finally {
                    sclContext.put("graph", oldGraph);
                        }
-               }
+               //}
                
                return null;