]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.viewpoint.ontology/graph/ViewpointActions.pgraph
Fixed a typo in Viewpoint ontology
[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.ExportActionCategory : VP.ActionCategory
40     L0.HasLabel "Export"
41     VP.ActionCategory.IsSubmenu L0.True
42 VP.EditActionCategory : VP.ActionCategory
43     L0.HasLabel "Edit"
44     VP.ActionCategory.IsSubmenu L0.False
45     
46 // Templates
47
48 VP.defineActionContribution: L0.Template
49     @template %actionContribution %label %parentType %image %category %action
50         %actionContribution : VP.ActionContribution
51             L0.HasLabel %label
52             VP.ActionContribution.HasImage %image
53             VP.ActionContribution.HasCategory %category
54             VP.ActionContribution.HasNodeType %parentType
55             VP.ActionContribution.HasAction %action
56
57 VP.actionContribution: L0.Template
58     @template %actionContext %label %parentType %image %category %action
59         %actionContext
60             VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
61                 L0.HasLabel %label
62                 VP.ActionContribution.HasImage %image
63                 VP.ActionContribution.HasCategory %category
64                 VP.ActionContribution.HasNodeType %parentType
65                 VP.ActionContribution.HasAction %action
66
67 VP.actionContributionWithVisibility: L0.Template
68     @template %actionContext %label %parentType %image %category %action %test
69         %actionContext
70             VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
71                 L0.HasLabel %label
72                 VP.ActionContribution.HasImage %image
73                 VP.ActionContribution.HasCategory %category
74                 VP.ActionContribution.HasNodeType %parentType
75                 VP.ActionContribution.HasAction %action
76                 VP.ActionContribution.IsVisibleIf %test
77
78 VP.removalTestContribution: L0.Template
79     @template %actionContext %parentType %test %priority
80         %actionContext
81             VP.BrowseContext.HasTestContribution _ : VP.RemovalTestContribution
82                 VP.TestContribution.HasNodeType %parentType
83                 VP.TestContribution.HasTest %test
84                 VP.TestContribution.HasPriority %priority
85
86 VP.renamingTestContribution: L0.Template
87     @template %actionContext %parentType %test %priority
88         %actionContext
89             VP.BrowseContext.HasTestContribution _ : VP.RenamingTestContribution
90                 VP.TestContribution.HasNodeType %parentType
91                 VP.TestContribution.HasTest %test
92                 VP.TestContribution.HasPriority %priority