]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.selectionview.ontology/graph/Selectionview.pgraph
Allow contributing os.selectionview.SelectionProcessors from ontologies
[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
52 SEL.HasDisplayProperty <R L0.HasProperty : L0.FunctionalRelation
53   L0.RequiresValueType "String"
54   SEL.HasDisplayColumn "HasDisplayProperty"
55   
56 SEL.DisplayProperty <T L0.Value
57   @L0.assert SEL.HasDisplayColumn "HasDisplayProperty"
58   @L0.assert L0.HasValueType "String"  
59   @L0.assert L0.valueAccessor
60     SEL.Functions.displayPropertyValueAccessor : L0.ExternalValue
61           L0.HasValueType "ValueAccessor"  
62
63 SEL.HasDisplayValue <R L0.HasProperty : L0.FunctionalRelation
64   L0.RequiresValueType "String"
65   SEL.HasDisplayColumn "HasDisplayValue"
66   
67 SEL.IsShownUnder <R L0.IsRelatedTo
68   L0.InverseOf SEL.UnderOf <R L0.IsRelatedTo
69
70 SEL.DisplayValue <T L0.Value
71   @L0.assert SEL.HasDisplayColumn "HasDisplayValue"
72   @L0.assert L0.HasValueType "String"
73   @L0.assert L0.valueAccessor
74     SEL.Functions.displayValueValueAccessor : L0.ExternalValue
75           L0.HasValueType "ValueAccessor"  
76
77 SEL.HasDisplayUnit <R L0.HasProperty : L0.FunctionalRelation
78   L0.RequiresValueType "String"
79   SEL.HasDisplayColumn "HasDisplayUnit"
80   
81 SEL.DisplayUnit <T L0.Value
82   @L0.assert SEL.HasDisplayColumn "HasDisplayUnit"
83   @L0.assert L0.HasValueType "String"
84   @L0.assert L0.valueAccessor
85     SEL.Functions.displayUnitValueAccessor : L0.ExternalValue
86           L0.HasValueType "ValueAccessor"  
87
88 SEL.StandardPropertyInfo <T L0.Literal
89     @L0.assert L0.HasDataType ${ categoryName : String, categorySortingName : String, isHidden : Boolean }
90     @L0.assert SEL.StandardPropertyInfo.CategorySortingName ""
91     @L0.assert SEL.StandardPropertyInfo.IsHidden false
92
93 SEL.HasStandardPropertyInfo <R L0.HasProperty : L0.FunctionalRelation
94 SEL.StandardPropertyInfo.CategoryName <R L0.HasProperty : L0.FunctionalRelation
95 SEL.StandardPropertyInfo.CategorySortingName <R L0.HasProperty : L0.FunctionalRelation
96 SEL.StandardPropertyInfo.IsHidden <R L0.HasProperty : L0.FunctionalRelation
97
98 SEL.HasEnumerationValues <R L0.HasProperty : L0.FunctionalRelation
99 SEL.HasCustomModifier <R L0.HasProperty : L0.FunctionalRelation
100 SEL.HasInputModifier <R L0.HasProperty : L0.FunctionalRelation
101
102 SEL.SortingName ==> "String" <R L0.HasProperty : L0.FunctionalRelation
103
104 SEL.canBeLifted ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
105
106 SEL.hidden ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
107
108 SEL.GenericParameterType <T L0.FunctionalRelation
109   @L0.assert SEL.HasDisplayProperty
110     _ : SEL.DisplayProperty
111       L0.readOnly true
112   @L0.assert SEL.HasDisplayValue
113     _ : SEL.DisplayValue
114       SEL.HasEnumerationValues _ : L0.Value
115         L0.ConvertsToValueWith 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