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