]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.viewpoint.ontology/graph/Viewpoint.pgraph
Column support in ConstantLabelDecorationRule
[simantics/platform.git] / bundles / org.simantics.viewpoint.ontology / graph / Viewpoint.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 IMAGE = <http://www.simantics.org/Image2-1.2>
3 COLOR = <http://www.simantics.org/Color-1.1>
4
5 VP = <http://www.simantics.org/Viewpoint-1.2> : L0.Ontology
6     @L0.new
7     L0.HasResourceClass "org.simantics.viewpoint.ontology.ViewpointResource"
8
9 VP.NodeType <T L0.Entity
10     @L0.singleProperty VP.HasContentType
11     @L0.optionalProperty VP.HasBundle
12 VP.HasBundle <R L0.HasProperty : L0.FunctionalRelation
13     L0.HasDescription """Bundle specifies the symbolic ID of the bundle which should be used for loading the class pointed to by HasContentType. This needs to be used if a class is not loadable by bundle org.simantics.browsing.ui.model."""
14     L0.HasRange L0.String
15 VP.HasContentType <R L0.HasProperty : L0.FunctionalRelation
16     L0.HasDescription """Content type specifies the (SCL) type of the node content, if the subject is used as a node type. If not specified the content type is Resource."""
17     L0.HasRange L0.String
18 VP.ResourceNodeType <T VP.NodeType
19     @L0.assert VP.HasContentType "Resource"
20     
21 VP.BrowseContext <T L0.Entity
22     L0.HasDescription """All viewpoint contributions are associated with a browse context. They can be used to control which contributions are enabled for a specific browsing component. Browse contexts form a hierarchy: by enabling a super context also the contexts inherited from it are enabled."""
23 VP.BrowseContext.Includes <R L0.IsRelatedTo
24     L0.HasDomain VP.BrowseContext
25     L0.HasRange VP.BrowseContext
26     L0.InverseOf VP.BrowseContext.IsIncludedIn <R L0.IsRelatedTo
27 VP.BrowseContext.HasChildContribution <R L0.IsRelatedTo
28     L0.HasDomain VP.BrowseContext
29     L0.HasRange VP.ChildContribution
30 VP.BrowseContext.HasVisualsContribution <R L0.IsRelatedTo
31     L0.HasDomain VP.BrowseContext
32     L0.HasRange VP.VisualsContribution
33
34 VP.BrowseContextContribution <T L0.Entity
35     >-- VP.BrowseContextContribution.HasType --> L0.Type <R L0.IsRelatedTo
36     >-- VP.BrowseContextContribution.HasBrowseContext --> VP.BrowseContext <R L0.IsRelatedTo
37     >-- VP.BrowseContextContribution.allowedUIContexts --> L0.StringArray <R L0.HasProperty : L0.FunctionalRelation
38
39 VP.ActionBrowseContextContribution <T L0.Entity
40     >-- VP.ActionBrowseContextContribution.HasType --> L0.Type <R L0.IsRelatedTo
41     >-- VP.ActionBrowseContextContribution.HasTest --> VP.Test <R L0.IsRelatedTo
42     >-- VP.ActionBrowseContextContribution.HasActionBrowseContext --> VP.BrowseContext <R L0.IsRelatedTo
43     >-- VP.ActionBrowseContextContribution.allowedUIContexts --> L0.StringArray <R L0.HasProperty : L0.FunctionalRelation
44
45 VP.ChildContribution <T L0.Entity
46     L0.HasDescription """A child contribution is adds child nodes to the instances of a specific node type."""
47     >-- VP.ChildContribution.HasParentNodeType --> L0.Entity <R L0.IsRelatedTo : L0.TotalFunction
48     >-- VP.ChildContribution.HasChildNodeType --> L0.Entity <R L0.IsRelatedTo : L0.TotalFunction
49     >-- VP.ChildContribution.HasRule --> L0.Entity <R L0.IsRelatedTo : L0.TotalFunction
50     >-- VP.ChildContribution.identifier --> L0.String <R L0.HasProperty : L0.TotalFunction
51     >-- VP.ChildContribution.priority --> L0.Double <R L0.HasProperty : L0.TotalFunction
52     @L0.assert VP.ChildContribution.identifier "" 
53     @L0.assert VP.ChildContribution.priority 0.0 
54
55 VP.ChildRule <T L0.Entity
56     L0.HasDescription """A child rule is a part of child contribution that tells how the child nodes are found."""
57 VP.EqualContentChildRule <T VP.ChildRule
58     L0.HasDescription """A child rule that says that there is exactly one child node whose content is equal to the content of the parent.
59 There is an optional condition restricting when the rule is applied."""
60 VP.EqualContentChildRule.HasCondition <R L0.IsRelatedTo : L0.FunctionalRelation
61     L0.HasDomain VP.EqualContentChildRule
62     L0.HasRange VP.Test
63 VP.RelationChildRule <T VP.ChildRule
64     L0.HasDescription """A child rule that follows the given relation. Content type of both parent and child node types must be Resources."""
65     >-- VP.RelationChildRule.HasRelation --> L0.Relation <R L0.IsRelatedTo : L0.TotalFunction
66     >-- VP.RelationChildRule.HasTest --> VP.Test <R L0.IsRelatedTo : L0.FunctionalRelation
67 VP.RelationStatementRule <T VP.ChildRule
68     L0.HasDescription """A child rule that follows the given relation. Content type of parent must be Resource. Content type of child must be Statement."""
69     >-- VP.RelationStatementRule.HasRelation --> L0.Relation <R L0.IsRelatedTo : L0.TotalFunction
70     >-- VP.RelationStatementRule.HasTest --> VP.Test <R L0.IsRelatedTo : L0.FunctionalRelation
71 VP.CompositeChildRule <T VP.ChildRule
72     L0.HasDescription """A child rule composed of other child rules."""
73 VP.CompositeChildRule.HasChildRules <R L0.IsComposedOf : L0.TotalFunction
74     L0.HasDomain VP.CompositeChildRule
75     L0.HasRange L0.OrderedSet
76 VP.ConstantChildRule <T VP.ChildRule
77     L0.HasDescription """Says that a certain constant resource is a child of the parent."""
78 VP.ConstantChildRule.HasChild <R L0.IsComposedOf
79     L0.HasDomain VP.ConstantChildRule
80     
81 VP.VisualsContribution <T L0.Entity
82     L0.HasDescription """A visuals contribution adds visual properties to the instances of a specific node type."""
83 VP.VisualsContribution.HasNodeType <R L0.IsRelatedTo : L0.TotalFunction
84     L0.HasDomain VP.VisualsContribution
85     L0.HasRange L0.Entity    
86 VP.VisualsContribution.HasRule <R L0.IsRelatedTo
87     L0.HasDomain VP.VisualsContribution
88     L0.HasRange VP.VisualsRule
89 VP.VisualsContribution.HasPriority <R L0.HasProperty : L0.FunctionalRelation
90     L0.HasDomain VP.VisualsContribution
91     L0.HasRange L0.Double
92 VP.VisualsContribution.HasCondition <R L0.IsRelatedTo : L0.FunctionalRelation
93     L0.HasDomain VP.VisualsContribution
94     L0.HasRange VP.Test    
95     
96 VP.VisualsRule <T L0.Entity   
97     
98 VP.LabelRule <T VP.VisualsRule
99     L0.HasDescription """Label rule gives a label to a node."""
100 VP.ConstantLabelRule <T VP.LabelRule     
101     L0.HasDescription """Constant label rule gives a fixed label to a node."""
102 VP.ConstantLabelRule.HasLabel <R L0.HasProperty : L0.TotalFunction            
103     L0.HasDomain VP.ConstantLabelRule
104     L0.HasRange L0.String
105 VP.ConstantLabelRule.HasColumnKey <R L0.HasProperty : L0.TotalFunction            
106     L0.HasDomain VP.ConstantLabelRule
107     L0.HasRange L0.String
108 VP.StandardNameLabelRule : VP.LabelRule     
109     L0.HasDescription """Label rule based on resource names and labels controlled by PlatformUI.hasNameLabelMode."""
110 VP.ResourceNameLabelRule : VP.LabelRule     
111     L0.HasDescription """Label rule based on resource names."""
112 VP.ResourceLabelLabelRule : VP.LabelRule
113     L0.HasDescription """Label rule based on resource labels."""
114
115 VP.TooltipRule <T VP.VisualsRule
116     L0.HasDescription """Tooltip rule gives a tooltip to a node."""
117 VP.DescriptionTooltipRule : VP.TooltipRule
118     L0.HasDescription """Tooltip rule that reads tooltip from node's L0.HasDescription."""
119
120 VP.ModifierRule <T VP.VisualsRule
121     L0.HasDescription """Modifier rule gives a modifier to a node."""
122 VP.NoModifierRule : VP.ModifierRule
123     L0.HasDescription """Modifier rule that denies modifications."""
124 VP.ResourceNameModifierRule : VP.ModifierRule
125     L0.HasDescription """Modifier rule based on resource names."""
126 VP.ResourceLabelModifierRule : VP.ModifierRule
127     L0.HasDescription """Modifier rule based on resource labels."""
128 VP.VariableLabelModifierRule : VP.ModifierRule
129     L0.HasDescription """Modifier rule based on variable labels."""
130
131 VP.ImageRule <T VP.VisualsRule
132     L0.HasDescription """Label rule gives an image to a node."""
133 VP.ConstantImageRule <T VP.ImageRule
134     L0.HasDescription """Constant label rule gives a fixed image to a node."""
135 VP.ConstantImageRule.HasImage <R L0.HasProperty : L0.TotalFunction            
136     L0.HasDomain VP.ConstantLabelRule
137     L0.HasRange IMAGE.Image
138 VP.ConstantImageRule.HasColumnKey <R L0.HasProperty : L0.TotalFunction            
139     L0.HasDomain VP.ConstantLabelRule
140     L0.HasRange IMAGE.Image
141
142 VP.LabelDecorationRule <T VP.VisualsRule
143     L0.HasDescription """Label decoration rule decorates the label of a node."""    
144 VP.ConstantLabelDecorationRule <T VP.LabelDecorationRule
145 VP.ConstantLabelDecorationRule.HasFormat <R L0.HasProperty : L0.FunctionalRelation            
146     L0.HasDomain VP.ConstantLabelDecorationRule
147     L0.HasRange L0.String
148 VP.ConstantLabelDecorationRule.HasForegroundColor <R L0.HasProperty : L0.FunctionalRelation            
149     L0.HasDomain VP.ConstantLabelDecorationRule
150     L0.HasRange COLOR.RGB
151 VP.ConstantLabelDecorationRule.HasBackgroundColor <R L0.HasProperty : L0.FunctionalRelation        
152     L0.HasDomain VP.ConstantLabelDecorationRule
153     L0.HasRange COLOR.RGB
154 VP.ConstantLabelDecorationRule.HasFont <R L0.HasProperty : L0.FunctionalRelation            
155     L0.HasDomain VP.ConstantLabelDecorationRule
156     L0.HasRange L0.String
157 VP.ConstantLabelDecorationRule.HasStyle <R L0.HasProperty : L0.FunctionalRelation            
158     L0.HasDomain VP.ConstantLabelDecorationRule
159     L0.HasRange L0.String
160 VP.ConstantLabelDecorationRule.HasColumn <R L0.HasProperty : L0.FunctionalRelation
161     L0.HasDomain VP.ConstantLabelDecorationRule
162     L0.HasRange L0.String
163
164 VP.FlatNodeRule : VP.VisualsRule
165
166 VP.ImageDecorationRule <T VP.VisualsRule
167     L0.HasDescription """Image decoration rule decorates the image of a node."""
168
169 VP.SorterRule <T VP.VisualsRule
170 VP.PassThruSorterRule : VP.SorterRule
171 VP.AlphanumericSorterRule : VP.SorterRule
172 VP.LinkedListSorterRule : VP.SorterRule
173
174 VP.CheckedStateRule <T VP.VisualsRule
175
176 VP.Test <T L0.Entity
177     L0.HasDescription """Tests may be used to control if contributions are enabled for specific node content."""  
178             
179 // Templates 
180 VP.relationChildRule : L0.Template
181     @template %browseContext %parentType %relation %childType
182         %browseContext
183             VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
184                 VP.ChildContribution.HasParentNodeType %parentType
185                 VP.ChildContribution.HasChildNodeType %childType
186                 VP.ChildContribution.HasRule _ : VP.RelationChildRule
187                     VP.RelationChildRule.HasRelation %relation
188
189 VP.relationStatementRule : L0.Template
190     @template %browseContext %parentType %relation %childType
191         %browseContext
192             VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
193                 VP.ChildContribution.HasParentNodeType %parentType
194                 VP.ChildContribution.HasChildNodeType %childType
195                 VP.ChildContribution.HasRule _ : VP.RelationStatementRule
196                     VP.RelationStatementRule.HasRelation %relation
197
198 VP.equalContentChildRule : L0.Template
199     @template %browseContext %parentType %childType
200         %browseContext
201             VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
202                 VP.ChildContribution.HasParentNodeType %parentType
203                 VP.ChildContribution.HasChildNodeType %childType
204                 VP.ChildContribution.HasRule _ : VP.EqualContentChildRule
205
206 VP.constantChildRule : L0.Template
207     @template %browseContext %parentType %child
208         %browseContext
209             VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
210                 VP.ChildContribution.HasParentNodeType %parentType
211                 VP.ChildContribution.HasChildNodeType L0.Entity
212                 VP.ChildContribution.HasRule _ : VP.ConstantChildRule
213                     VP.ConstantChildRule.HasChild %child                    
214                 
215 VP.customChildRule : L0.Template
216     @template %browseContext %parentType %childRule %childType
217         %browseContext
218             VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
219                 VP.ChildContribution.HasParentNodeType %parentType
220                 VP.ChildContribution.HasChildNodeType %childType
221                 VP.ChildContribution.HasRule %childRule
222
223 VP.customModifierRule : L0.Template
224     @template %browseContext %parentType %modifierRule
225         %browseContext
226             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
227                 VP.VisualsContribution.HasNodeType %parentType
228                 VP.VisualsContribution.HasRule %modifierRule
229
230 VP.customVisualsRule : L0.Template
231     @template %browseContext %parentType %labelRule
232         %browseContext
233             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
234                 VP.VisualsContribution.HasNodeType %parentType
235                 VP.VisualsContribution.HasRule %labelRule
236
237 VP.customVisualsRuleWithPriority : L0.Template
238     @template %browseContext %parentType %labelRule %priority
239         %browseContext
240             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
241                 VP.VisualsContribution.HasNodeType %parentType
242                 VP.VisualsContribution.HasRule %labelRule
243                 VP.VisualsContribution.HasPriority %priority
244
245 VP.customVisualsRuleWithPriorityAndTest : L0.Template
246     @template %browseContext %parentType %labelRule %priority %condition
247         %browseContext
248             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
249                 VP.VisualsContribution.HasNodeType %parentType
250                 VP.VisualsContribution.HasRule %labelRule
251                 VP.VisualsContribution.HasPriority %priority
252                 VP.VisualsContribution.HasCondition %condition
253
254 VP.constantLabelRule : L0.Template
255     @template %browseContext %parentType %label
256         %browseContext
257             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
258                 VP.VisualsContribution.HasNodeType %parentType
259                 VP.VisualsContribution.HasRule _ : VP.ConstantLabelRule
260                     VP.ConstantLabelRule.HasLabel %label
261                     VP.ConstantLabelRule.HasColumnKey "single"
262
263 VP.constantLabelRuleWithColumn : L0.Template
264     @template %browseContext %parentType %key %label
265         %browseContext
266             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
267                 VP.VisualsContribution.HasNodeType %parentType
268                 VP.VisualsContribution.HasRule _ : VP.ConstantLabelRule
269                     VP.ConstantLabelRule.HasLabel %label
270                     VP.ConstantLabelRule.HasColumnKey %key
271
272 VP.customLabelRule : L0.Template
273     @template %browseContext %parentType %labelRule
274         %browseContext
275             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
276                 VP.VisualsContribution.HasNodeType %parentType
277                 VP.VisualsContribution.HasRule %labelRule
278
279 VP.customLabelRuleWithPriority : L0.Template
280     @template %browseContext %parentType %labelRule %priority
281         %browseContext
282             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
283                 VP.VisualsContribution.HasNodeType %parentType
284                 VP.VisualsContribution.HasRule %labelRule
285                 VP.VisualsContribution.HasPriority %priority
286
287 VP.constantImageRule : L0.Template
288     @template %browseContext %parentType %image
289         %browseContext
290             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
291                 VP.VisualsContribution.HasNodeType %parentType
292                 VP.VisualsContribution.HasRule _ : VP.ConstantImageRule
293                     VP.ConstantImageRule.HasColumnKey "single"
294                     VP.ConstantImageRule.HasImage %image
295
296 VP.constantImageRuleWithColumn : L0.Template
297     @template %browseContext %parentType %columnKey %image
298         %browseContext
299             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
300                 VP.VisualsContribution.HasNodeType %parentType
301                 VP.VisualsContribution.HasRule _ : VP.ConstantImageRule
302                     VP.ConstantImageRule.HasColumnKey %columnKey
303                     VP.ConstantImageRule.HasImage %image
304
305 VP.customImageRule : L0.Template
306     @template %browseContext %parentType %imageRule
307         %browseContext
308             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
309                 VP.VisualsContribution.HasNodeType %parentType
310                 VP.VisualsContribution.HasRule %imageRule
311
312 VP.customCheckedStateRule : L0.Template
313     @template %browseContext %parentType %stateRule
314         %browseContext
315             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
316                 VP.VisualsContribution.HasNodeType %parentType
317                 VP.VisualsContribution.HasRule %stateRule
318
319 VP.relationChildRuleWithFolder : L0.Template
320     @template %browseContext %parentType %relation %childType %folder 
321         %browseContext
322             VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
323                 VP.ChildContribution.HasParentNodeType %parentType
324                 VP.ChildContribution.HasChildNodeType %folder
325                 VP.ChildContribution.HasRule _ : VP.EqualContentChildRule
326             VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
327                 VP.ChildContribution.HasParentNodeType %folder
328                 VP.ChildContribution.HasChildNodeType %childType
329                 VP.ChildContribution.HasRule _ : VP.RelationChildRule
330                     VP.RelationChildRule.HasRelation %relation
331
332 VP.customLabelDecorationRule : L0.Template
333     @template %browseContext %parentType %decorationRule
334         %browseContext
335             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
336                 VP.VisualsContribution.HasNodeType %parentType
337                 VP.VisualsContribution.HasRule %decorationRule 
338
339 VP.customImageDecorationRule : L0.Template
340     @template %browseContext %parentType %decorationRule
341         %browseContext
342             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
343                 VP.VisualsContribution.HasNodeType %parentType
344                 VP.VisualsContribution.HasRule %decorationRule 
345
346 VP.defineRelationChildRule : L0.Template
347     @template %rule %parentType %relation %childType
348         %rule : VP.ChildContribution
349             VP.ChildContribution.HasParentNodeType %parentType
350             VP.ChildContribution.HasChildNodeType %childType
351             VP.ChildContribution.HasRule _ : VP.RelationChildRule
352                 VP.RelationChildRule.HasRelation %relation
353
354 // Templates for named rules 
355 VP.namedRelationChildRule : L0.Template
356     @template %browseContext %name %parentType %relation %childType
357         %browseContext
358             VP.BrowseContext.HasChildContribution %name : VP.ChildContribution
359                 VP.ChildContribution.HasParentNodeType %parentType
360                 VP.ChildContribution.HasChildNodeType %childType
361                 VP.ChildContribution.HasRule _ : VP.RelationChildRule
362                     VP.RelationChildRule.HasRelation %relation
363
364 VP.namedRelationStatementRule : L0.Template
365     @template %browseContext %name %parentType %relation %childType
366         %browseContext
367             VP.BrowseContext.HasChildContribution %name : VP.ChildContribution
368                 VP.ChildContribution.HasParentNodeType %parentType
369                 VP.ChildContribution.HasChildNodeType %childType
370                 VP.ChildContribution.HasRule _ : VP.RelationStatementRule
371                     VP.RelationStatementRule.HasRelation %relation
372
373 VP.namedEqualContentChildRule : L0.Template
374     @template %browseContext %name %parentType %childType
375         %browseContext
376             VP.BrowseContext.HasChildContribution %name : VP.ChildContribution
377                 VP.ChildContribution.HasParentNodeType %parentType
378                 VP.ChildContribution.HasChildNodeType %childType
379                 VP.ChildContribution.HasRule _ : VP.EqualContentChildRule
380
381 VP.namedConstantChildRule : L0.Template
382     @template %browseContext %name %parentType %child
383         %browseContext
384             VP.BrowseContext.HasChildContribution %name : VP.ChildContribution
385                 VP.ChildContribution.HasParentNodeType %parentType
386                 VP.ChildContribution.HasChildNodeType L0.Entity
387                 VP.ChildContribution.HasRule _ : VP.ConstantChildRule
388                     VP.ConstantChildRule.HasChild %child                    
389                 
390 VP.namedCustomChildRule : L0.Template
391     @template %browseContext %name %parentType %childRule %childType
392         %browseContext
393             VP.BrowseContext.HasChildContribution %name : VP.ChildContribution
394                 VP.ChildContribution.HasParentNodeType %parentType
395                 VP.ChildContribution.HasChildNodeType %childType
396                 VP.ChildContribution.HasRule %childRule
397
398 VP.namedCustomModifierRule : L0.Template
399     @template %browseContext %name %parentType %modifierRule
400         %browseContext
401             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
402                 VP.VisualsContribution.HasNodeType %parentType
403                 VP.VisualsContribution.HasRule %modifierRule
404
405 VP.namedCustomVisualsRule : L0.Template
406     @template %browseContext %name %parentType %labelRule
407         %browseContext
408             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
409                 VP.VisualsContribution.HasNodeType %parentType
410                 VP.VisualsContribution.HasRule %labelRule
411
412 VP.namedCustomVisualsRuleWithPriority : L0.Template
413     @template %browseContext %name %parentType %labelRule %priority
414         %browseContext
415             VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
416                 VP.VisualsContribution.HasNodeType %parentType
417                 VP.VisualsContribution.HasRule %labelRule
418                 VP.VisualsContribution.HasPriority %priority
419
420 VP.namedCustomVisualsRuleWithPriorityAndTest : L0.Template
421     @template %browseContext %name %parentType %labelRule %priority %condition
422         %browseContext
423             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
424                 VP.VisualsContribution.HasNodeType %parentType
425                 VP.VisualsContribution.HasRule %labelRule
426                 VP.VisualsContribution.HasPriority %priority
427                 VP.VisualsContribution.HasCondition %condition
428
429 VP.namedConstantLabelRule : L0.Template
430     @template %browseContext %name %parentType %label
431         %browseContext
432             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
433                 VP.VisualsContribution.HasNodeType %parentType
434                 VP.VisualsContribution.HasRule _ : VP.ConstantLabelRule
435                     VP.ConstantLabelRule.HasLabel %label
436                     VP.ConstantLabelRule.HasColumnKey "single"
437
438 VP.namedConstantLabelRuleWithColumn : L0.Template
439     @template %browseContext %name %parentType %key %label
440         %browseContext
441             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
442                 VP.VisualsContribution.HasNodeType %parentType
443                 VP.VisualsContribution.HasRule _ : VP.ConstantLabelRule
444                     VP.ConstantLabelRule.HasLabel %label
445                     VP.ConstantLabelRule.HasColumnKey %key
446
447 VP.namedCustomLabelRule : L0.Template
448     @template %browseContext %name %parentType %labelRule
449         %browseContext
450             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
451                 VP.VisualsContribution.HasNodeType %parentType
452                 VP.VisualsContribution.HasRule %labelRule
453
454 VP.namedCustomLabelRuleWithPriority : L0.Template
455     @template %browseContext %name %parentType %labelRule %priority
456         %browseContext
457             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
458                 VP.VisualsContribution.HasNodeType %parentType
459                 VP.VisualsContribution.HasRule %labelRule
460                 VP.VisualsContribution.HasPriority %priority
461
462 VP.namedConstantImageRule : L0.Template
463     @template %browseContext %name %parentType %image
464         %browseContext
465             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
466                 VP.VisualsContribution.HasNodeType %parentType
467                 VP.VisualsContribution.HasRule _ : VP.ConstantImageRule
468                     VP.ConstantImageRule.HasColumnKey "single"
469                     VP.ConstantImageRule.HasImage %image
470
471 VP.namedConstantImageRuleWithColumn : L0.Template
472     @template %browseContext %name %parentType %columnKey %image
473         %browseContext
474             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
475                 VP.VisualsContribution.HasNodeType %parentType
476                 VP.VisualsContribution.HasRule _ : VP.ConstantImageRule
477                     VP.ConstantImageRule.HasColumnKey %columnKey
478                     VP.ConstantImageRule.HasImage %image
479
480 VP.namedCustomImageRule : L0.Template
481     @template %browseContext %name %parentType %imageRule
482         %browseContext
483             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
484                 VP.VisualsContribution.HasNodeType %parentType
485                 VP.VisualsContribution.HasRule %imageRule
486
487 VP.namedCustomCheckedStateRule : L0.Template
488     @template %browseContext %name %parentType %stateRule
489         %browseContext
490             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
491                 VP.VisualsContribution.HasNodeType %parentType
492                 VP.VisualsContribution.HasRule %stateRule
493
494 VP.namedRelationChildRuleWithFolder : L0.Template
495     @template %browseContext %folderName %folderChildrenName %parentType %relation %childType %folder 
496         %browseContext
497             VP.BrowseContext.HasChildContribution %folderName : VP.ChildContribution
498                 VP.ChildContribution.HasParentNodeType %parentType
499                 VP.ChildContribution.HasChildNodeType %folder
500                 VP.ChildContribution.HasRule _ : VP.EqualContentChildRule
501             VP.BrowseContext.HasChildContribution %folderChildrenName : VP.ChildContribution
502                 VP.ChildContribution.HasParentNodeType %folder
503                 VP.ChildContribution.HasChildNodeType %childType
504                 VP.ChildContribution.HasRule _ : VP.RelationChildRule
505                     VP.RelationChildRule.HasRelation %relation
506
507 VP.namedCustomLabelDecorationRule : L0.Template
508     @template %browseContext %name %parentType %decorationRule
509         %browseContext
510             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
511                 VP.VisualsContribution.HasNodeType %parentType
512                 VP.VisualsContribution.HasRule %decorationRule 
513
514 VP.namedCustomImageDecorationRule : L0.Template
515     @template %browseContext %name %parentType %decorationRule
516         %browseContext
517             VP.BrowseContext.HasVisualsContribution %name : VP.VisualsContribution
518                 VP.VisualsContribution.HasNodeType %parentType
519                 VP.VisualsContribution.HasRule %decorationRule 
520