]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.selectionview.ui.ontology/graph/SelectionViewUi.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.selectionview.ui.ontology / graph / SelectionViewUi.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 L0X = <http://www.simantics.org/Layer0X-1.1>
3 VP = <http://www.simantics.org/Viewpoint-1.2>
4 VIEW = <http://www.simantics.org/Views-1.2>
5 MOD = <http://www.simantics.org/Modeling-1.2>
6
7 SEL_BASE = <http://www.simantics.org/SelectionView-1.2> : L0.Ontology
8
9 SEL = <http://www.simantics.org/SelectionViewUI-1.1> : L0.Ontology
10     @L0.new
11     L0.HasResourceClass "org.simantics.selectionview.ui.ontology.SelectionViewUIResources"
12
13 SEL.CategoryNode : VP.NodeType
14   VP.HasContentType "org.simantics.selectionview.CategoryNode"
15   VP.HasBundle "org.simantics.selectionview"
16
17 SEL.CategoryNodeLabelRule : VP.LabelRule
18 SEL.CategoryDecorationRule : VP.ConstantLabelDecorationRule
19     VP.ConstantLabelDecorationRule.HasStyle "B"
20
21 SEL.VariableDecorationRule : VP.ConstantLabelDecorationRule
22     VP.ConstantLabelDecorationRule.HasFormat " %s"
23
24 SEL.VariableColoringDecorationRule : VP.LabelDecorationRule
25
26 SEL.VariablePropertyCategoryRule <T VP.ChildRule
27 SEL.VariablePropertyLabelRule : VP.LabelRule
28 SEL.VariablePropertyModifierRule : VP.ModifierRule
29     L0.HasDescription """Modifier rule based on variable."""
30
31 SEL.StandardPropertySorterRuleType <T VP.SorterRule
32   >-- SEL_BASE.getSpecialCategory
33
34 SEL.StandardPropertySorterRule : SEL.StandardPropertySorterRuleType
35
36 SEL.PropertyColumn 
37   @VIEW.Explorer.Column.full "HasDisplayProperty" "Property" "LEFT" 150 "The name of the property" true 1
38 SEL.ValueColumn
39   @VIEW.Explorer.Column.full "HasDisplayValue" "Value" "RIGHT" 60 "The representation of the property value" true 1
40 SEL.UnitColumn
41   @VIEW.Explorer.Column.full "HasDisplayUnit" "Unit" "LEFT" 60 "The selected unit for the value" false 0
42
43 SEL.StandardPropertiesBase <T VIEW.Explorer
44   @L0.assert VIEW.Control.layoutData
45     _ : VIEW.GridLayout.GridData
46       VIEW.GridLayout.GridData.horizontalGrab true
47       VIEW.GridLayout.GridData.verticalGrab true
48   @L0.assert VIEW.Control.style 
49     _ : VIEW.Control.Style
50       VIEW.Control.Style.HasConstant VIEW.Control.Style.Constant.Multi
51       VIEW.Control.Style.HasConstant VIEW.Control.Style.Constant.FullSelection
52   @L0.assert VIEW.Explorer.columns 
53     _ : VIEW.Explorer.ColumnList
54       @L0.list
55         SEL.PropertyColumn
56         SEL.ValueColumn
57         SEL.UnitColumn
58   @L0.assert VIEW.Explorer.editingColumns 
59     _ : VIEW.Explorer.ColumnList
60       @L0.list
61         SEL.ValueColumn
62   @L0.assert VIEW.Explorer.input MOD.Functions.singleVariableSelection
63   @L0.assert VIEW.Explorer.browseContext
64     _ : VIEW.ResourceURI
65       VIEW.ResourceURI.HasResource SEL.StandardPropertiesBase.BrowseContext : SEL.StandardProperties.BrowseContextStandardChildren
66   @L0.assert VIEW.Explorer.uiContext "org.simantics.modeling.ui.properties"
67   @L0.assert VIEW.Explorer.useNodeBrowseContexts true
68   @L0.assert VIEW.Explorer.useNodeActionContexts true
69
70 SEL.StandardProperties : SEL.StandardPropertiesBase
71
72 SEL.StandardProperties.BrowseContextStandardChildren <T SEL.StandardProperties.BrowseContextWithoutChildren
73   @L0.assert VP.BrowseContext.HasChildContribution 
74     _ : VP.ChildContribution
75       VP.ChildContribution.HasParentNodeType MOD.ModelingBrowseContext.Variable
76       VP.ChildContribution.HasChildNodeType MOD.ModelingBrowseContext.Variable
77       VP.ChildContribution.HasRule 
78         SEL.StandardProperties.BrowseContextStandardChildren.Var : MOD.ModelingBrowseContext.VariablePropertyRule
79           MOD.ModelingBrowseContext.VariablePropertyRule.RequireProperty "HasStandardPropertyInfo"
80   @L0.assert VP.BrowseContext.HasChildContribution 
81     _ : VP.ChildContribution
82       VP.ChildContribution.HasParentNodeType MOD.ModelingBrowseContext.Variable
83       VP.ChildContribution.HasChildNodeType SEL.CategoryNode
84       VP.ChildContribution.HasRule 
85         SEL.StandardProperties.BrowseContextStandardChildren.Cat : SEL.VariablePropertyCategoryRule
86   @L0.assert VP.BrowseContext.HasVisualsContribution
87     _ : VP.VisualsContribution
88       VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
89       VP.VisualsContribution.HasRule
90         SEL.StandardProperties.BrowseContextStandardChildren.Sorter : SEL.StandardPropertySorterRuleType
91
92 SEL.StandardProperties.BrowseContextWithoutChildren <T VP.BrowseContext
93   @L0.assert VP.BrowseContext.HasVisualsContribution
94     _ : VP.VisualsContribution
95       VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
96       VP.VisualsContribution.HasRule SEL.VariablePropertyLabelRule
97   @L0.assert VP.BrowseContext.HasVisualsContribution
98     _ : VP.VisualsContribution
99       VP.VisualsContribution.HasNodeType SEL.CategoryNode
100       VP.VisualsContribution.HasRule SEL.CategoryNodeLabelRule
101   @L0.assert VP.BrowseContext.HasVisualsContribution
102     _ : VP.VisualsContribution
103       VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
104       VP.VisualsContribution.HasRule SEL.VariablePropertyModifierRule
105   @L0.assert VP.BrowseContext.HasVisualsContribution
106     _ : VP.VisualsContribution
107       VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
108       VP.VisualsContribution.HasRule SEL.VariableDecorationRule
109   @L0.assert VP.BrowseContext.HasVisualsContribution
110     _ : VP.VisualsContribution
111       VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
112       VP.VisualsContribution.HasRule SEL.VariableColoringDecorationRule
113   @L0.assert VP.BrowseContext.HasVisualsContribution
114     _ : VP.VisualsContribution
115       VP.VisualsContribution.HasNodeType SEL.CategoryNode
116       VP.VisualsContribution.HasRule SEL.CategoryDecorationRule
117
118