]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.selectionview.ontology/graph/Selectionview.pgraph
c38966f655f89989c94b891efeb180d8e4fd1717
[simantics/platform.git] / bundles / org.simantics.selectionview.ontology / graph / Selectionview.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 L0X = <http://www.simantics.org/Layer0X-1.1>
3
4 SEL = <http://www.simantics.org/SelectionView-1.2> : L0.Ontology
5     @L0.new
6     L0.HasResourceClass "org.simantics.selectionview.SelectionViewResources"
7
8 SEL.Functions : L0.Library
9
10 SEL.SelectionProcessorContribution <T L0.Entity
11 SEL.TabContribution <T L0.Entity
12 SEL.SelectionTransformation <T L0.Function
13
14 SEL.Functions.getEnumerationValues : L0.Function
15 SEL.Functions.singleVariableTransformation : SEL.SelectionTransformation
16 SEL.Functions.singleResourceTransformation : SEL.SelectionTransformation
17 SEL.Functions.singleResourceToVariableTransformation : SEL.SelectionTransformation
18 SEL.Functions.standardSelectionInputTransformation : SEL.SelectionTransformation
19
20 SEL.AbstractVariableTabContribution <T SEL.TabContribution
21   >-- SEL.AbstractVariableTabContribution.testFunction ==> "Variable -> <ReadGraph> Boolean" <R L0.HasProperty
22   >-- SEL.AbstractVariableTabContribution.HasPriority ==> "Integer" <R L0.HasProperty : SEL.GenericParameterType
23   // This is deprecated
24   >-- SEL.AbstractVariableTabContribution.HasTest --> L0.Value <R L0.DependsOn
25
26 SEL.AbstractResourceTabContribution <T SEL.TabContribution
27   >-- SEL.AbstractResourceTabContribution.HasTest --> L0.Value <R L0.DependsOn
28   >-- SEL.AbstractResourceTabContribution.HasPriority ==> "Integer" <R L0.DependsOn
29
30 SEL.AbstractTypedVariableTabContribution <T SEL.AbstractVariableTabContribution
31   >-- SEL.AbstractTypedVariableTabContribution.HasType --> L0.Type <R L0.DependsOn
32
33 SEL.AbstractTypedResourceTabContribution <T SEL.AbstractResourceTabContribution
34   >-- SEL.AbstractTypedResourceTabContribution.HasType --> L0.Type <R L0.DependsOn
35
36 SEL.SCLTabContribution <T SEL.TabContribution
37   >-- SEL.SCLTabContribution.instantiate ==> "() -> <Proc> TabContribution" <R L0.HasProperty
38
39 SEL.VariableTabContribution <T SEL.TabContribution
40   >-- SEL.VariableTabContribution.HasTest <R L0.DependsOn
41   >-- SEL.VariableTabContribution.transformation ==> "Variable -> <ReadGraph> Variable" <R L0.HasProperty
42   >-- SEL.VariableTabContribution.HasView <R L0.DependsOn
43   >-- SEL.VariableTabContribution.HasPriority <R L0.DependsOn
44
45 SEL.TypedVariableTabContribution <T SEL.VariableTabContribution
46   >-- SEL.TypedVariableTabContribution.HasType <R L0.DependsOn
47
48 SEL.HasDisplayColumn <R L0.HasProperty : L0.FunctionalRelation
49
50 SEL.HasFormatter <R L0.HasProperty : L0X.ResourcePropertyRelation
51 SEL.formatter ==> "Dynamic -> String" <R L0.HasProperty
52
53 SEL.HasDisplayProperty <R L0.HasProperty : L0.FunctionalRelation
54   L0.RequiresValueType "String"
55   SEL.HasDisplayColumn "HasDisplayProperty"
56   
57 SEL.DisplayProperty <T L0.Value
58   @L0.assert SEL.HasDisplayColumn "HasDisplayProperty"
59   @L0.assert L0.HasValueType "String"  
60   @L0.assert L0.valueAccessor
61     SEL.Functions.displayPropertyValueAccessor : L0.ExternalValue
62           L0.HasValueType "ValueAccessor"  
63
64 SEL.HasDisplayValue <R L0.HasProperty : L0.FunctionalRelation
65   L0.RequiresValueType "String"
66   SEL.HasDisplayColumn "HasDisplayValue"
67   
68 SEL.IsShownUnder <R L0.IsRelatedTo
69   L0.InverseOf SEL.UnderOf <R L0.IsRelatedTo
70
71 SEL.DisplayValue <T L0.Value
72   @L0.assert SEL.HasDisplayColumn "HasDisplayValue"
73   @L0.assert L0.HasValueType "String"
74   @L0.assert L0.valueAccessor
75     SEL.Functions.displayValueValueAccessor : L0.ExternalValue
76           L0.HasValueType "ValueAccessor"  
77
78 SEL.HasDisplayUnit <R L0.HasProperty : L0.FunctionalRelation
79   L0.RequiresValueType "String"
80   SEL.HasDisplayColumn "HasDisplayUnit"
81   
82 SEL.DisplayUnit <T L0.Value
83   @L0.assert SEL.HasDisplayColumn "HasDisplayUnit"
84   @L0.assert L0.HasValueType "String"
85   @L0.assert L0.valueAccessor
86     SEL.Functions.displayUnitValueAccessor : L0.ExternalValue
87           L0.HasValueType "ValueAccessor"  
88
89 SEL.StandardPropertyInfo <T L0.Literal
90     @L0.assert L0.HasDataType ${ categoryName : String, categorySortingName : String, isHidden : Boolean }
91     @L0.assert SEL.StandardPropertyInfo.CategorySortingName ""
92     @L0.assert SEL.StandardPropertyInfo.IsHidden false
93
94 SEL.HasStandardPropertyInfo <R L0.HasProperty : L0.FunctionalRelation
95 SEL.StandardPropertyInfo.CategoryName <R L0.HasProperty : L0.FunctionalRelation
96 SEL.StandardPropertyInfo.CategorySortingName <R L0.HasProperty : L0.FunctionalRelation
97 SEL.StandardPropertyInfo.IsHidden <R L0.HasProperty : L0.FunctionalRelation
98
99 SEL.HasEnumerationValues <R L0.HasProperty : L0.FunctionalRelation
100 SEL.HasCustomModifier <R L0.HasProperty : L0.FunctionalRelation
101 SEL.HasInputModifier <R L0.HasProperty : L0.FunctionalRelation
102
103 SEL.SortingName ==> "String" <R L0.HasProperty : L0.FunctionalRelation
104
105 SEL.canBeLifted ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
106
107 SEL.hidden ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
108
109 SEL.GenericParameterType <T L0.FunctionalRelation
110   @L0.assert SEL.HasDisplayProperty
111     _ : SEL.DisplayProperty
112       L0.readOnly true
113   @L0.assert SEL.HasDisplayValue
114     _ : SEL.DisplayValue
115       SEL.HasEnumerationValues SEL.Functions.getEnumerationValues
116   @L0.assert SEL.HasDisplayUnit
117     _ : SEL.DisplayUnit
118       L0.readOnly true
119   @L0.assert SEL.HasStandardPropertyInfo
120     SEL.CategoryHidden = ( "", "", true )
121   @L0.assert SEL.HasInputModifier 
122     SEL.Functions.inputModifier : L0.ExternalValue
123
124 SEL.GenericPropertyChild <T L0.Entity
125   @L0.assert SEL.HasDisplayProperty
126       _ : L0.Value
127           L0.readOnly true
128           L0.ConvertsToValueWith SEL.Functions.getPropertyChildName : L0.ExternalValue
129   
130
131 SEL.CategoryHidden : SEL.StandardPropertyInfo
132   SEL.StandardPropertyInfo.CategoryName ""
133   SEL.StandardPropertyInfo.CategorySortingName ""
134   SEL.StandardPropertyInfo.IsHidden true
135
136 SEL.getSpecialCategory ==> "Resource -> <ReadGraph> Maybe Resource" <R L0.HasProperty : L0.FunctionalRelation
137
138 SEL.ColorParameterType <T SEL.GenericParameterType
139   @L0.assert SEL.HasDisplayValue
140     _ : SEL.DisplayValue
141       SEL.HasEnumerationValues SEL.Functions.getEnumerationValues
142       SEL.HasCustomModifier SEL.Functions.colorModifier : L0.Function
143
144 SEL.FontParameterType <T SEL.GenericParameterType
145   @L0.assert SEL.HasDisplayValue
146     _ : SEL.DisplayValue
147       SEL.HasEnumerationValues SEL.Functions.getEnumerationValues
148       SEL.HasCustomModifier SEL.Functions.fontModifier : L0.Function
149
150 SEL.GenericCategory = ( "Properties", "", false ) : SEL.StandardPropertyInfo
151   SEL.StandardPropertyInfo.CategoryName "Properties"
152   SEL.StandardPropertyInfo.CategorySortingName "0"
153
154 L0.HasName
155   SEL.canBeLifted false
156