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