]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.viewpoint.ontology/graph/ViewpointActions.pgraph
f0b11d63a6ea009579f8e739fdebfc5ee4227b90
[simantics/platform.git] / bundles / org.simantics.viewpoint.ontology / graph / ViewpointActions.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 ACT = <http://www.simantics.org/Action-1.1>
3 IMAGE = <http://www.simantics.org/Image2-1.2>
4
5 VP = <http://www.simantics.org/Viewpoint-1.2>
6
7 VP.BrowseContext
8     >-- VP.BrowseContext.HasActionContribution --> VP.ActionContribution <R L0.IsRelatedTo
9     >-- VP.BrowseContext.HasTestContribution --> VP.TestContribution <R L0.IsRelatedTo
10     >-- VP.BrowseContext.SupportsRemovalOf --> L0.Entity <R L0.IsRelatedTo
11     >-- VP.BrowseContext.SupportsRenamingOf --> L0.Entity <R L0.IsRelatedTo
12     
13 VP.ActionContribution <T L0.Entity
14     >-- VP.ActionContribution.HasNodeType --> L0.Entity <R L0.IsRelatedTo
15     >-- VP.ActionContribution.HasCategory --> VP.ActionCategory <R L0.IsRelatedTo : L0.TotalFunction
16     >-- VP.ActionContribution.HasAction --> ACT.Action <R L0.IsRelatedTo : L0.FunctionalRelation
17     >-- VP.ActionContribution.IsVisibleIf --> VP.Test <R L0.IsRelatedTo : L0.FunctionalRelation
18     >-- VP.ActionContribution.IsEnabledIf --> VP.Test <R L0.IsRelatedTo : L0.FunctionalRelation
19     >-- VP.ActionContribution.HasImage --> IMAGE.Image <R L0.IsRelatedTo : L0.FunctionalRelation
20     
21 VP.ActionCategory <T L0.Entity
22     >-- VP.ActionCategory.HasPriority --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
23     >-- VP.ActionCategory.IsSubmenu --> L0.Boolean <R L0.HasProperty : L0.FunctionalRelation
24
25 VP.TestContribution <T L0.Entity
26     >-- VP.TestContribution.HasNodeType --> L0.Entity <R L0.IsRelatedTo
27     >-- VP.TestContribution.HasTest --> VP.Test <R L0.IsRelatedTo : L0.FunctionalRelation
28     >-- VP.TestContribution.HasPriority --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
29
30 VP.RemovalTestContribution <T VP.TestContribution
31 VP.RenamingTestContribution <T VP.TestContribution
32
33 VP.NewActionCategory : VP.ActionCategory
34     L0.HasLabel "New"
35     VP.ActionCategory.IsSubmenu L0.True
36 VP.ImportActionCategory : VP.ActionCategory
37     L0.HasLabel "Import"
38     VP.ActionCategory.IsSubmenu L0.True
39 VP.EditActionCategory : VP.ActionCategory
40     L0.HasLabel "Edit"
41     VP.ActionCategory.IsSubmenu L0.False
42     
43 // Templates
44
45 VP.defineActionContribution: L0.Template
46     @template %actionContribution %label %parentType %image %category %action
47         %actionContribution : VP.ActionContribution
48             L0.HasLabel %label
49             VP.ActionContribution.HasImage %image
50             VP.ActionContribution.HasCategory %category
51             VP.ActionContribution.HasNodeType %parentType
52             VP.ActionContribution.HasAction %action
53
54 VP.actionContribution: L0.Template
55     @template %actionContext %label %parentType %image %category %action
56         %actionContext
57             VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
58                 L0.HasLabel %label
59                 VP.ActionContribution.HasImage %image
60                 VP.ActionContribution.HasCategory %category
61                 VP.ActionContribution.HasNodeType %parentType
62                 VP.ActionContribution.HasAction %action
63
64 VP.actionContributionWithVisibility: L0.Template
65     @template %actionContext %label %parentType %image %category %action %test
66         %actionContext
67             VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
68                 L0.HasLabel %label
69                 VP.ActionContribution.HasImage %image
70                 VP.ActionContribution.HasCategory %category
71                 VP.ActionContribution.HasNodeType %parentType
72                 VP.ActionContribution.HasAction %action
73                 VP.ActionContribution.IsVisibleIf %test
74
75 VP.removalTestContribution: L0.Template
76     @template %actionContext %parentType %test %priority
77         %actionContext
78             VP.BrowseContext.HasTestContribution _ : VP.RemovalTestContribution
79                 VP.TestContribution.HasNodeType %parentType
80                 VP.TestContribution.HasTest %test
81                 VP.TestContribution.HasPriority %priority
82
83 VP.renamingTestContribution: L0.Template
84     @template %actionContext %parentType %test %priority
85         %actionContext
86             VP.BrowseContext.HasTestContribution _ : VP.RenamingTestContribution
87                 VP.TestContribution.HasNodeType %parentType
88                 VP.TestContribution.HasTest %test
89                 VP.TestContribution.HasPriority %priority