]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.tests.modelled.ui.ontology/graph/TestsUI.pgraph
Merge "Resolve some dependency problems with SDK features"
[simantics/platform.git] / bundles / org.simantics.tests.modelled.ui.ontology / graph / TestsUI.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 TESTS = <http://www.simantics.org/Tests-1.0>
3 VP = <http://www.simantics.org/Viewpoint-1.2>
4 PROJECT = <http://www.simantics.org/Project-1.2>
5 MOD = <http://www.simantics.org/Modeling-1.2>
6 SILK = <http://www.simantics.org/Silk-1.1>
7 IMAGE = <http://www.simantics.org/Image2-1.2>
8
9 TestsUI = <http://www.simantics.org/TestsUI-1.0> : L0.Ontology
10     @L0.new
11     L0.HasResourceClass "org.simantics.tests.modelled.ui.ontology.TestsUIResource"
12
13 TestsUI.SCLMain : L0.SCLModule
14     L0.SCLModule.definition _ : L0.String 
15       @L0.loadString "scl/SCLMain.scl" 
16
17 TestsUI.testImage : IMAGE.PngImage
18   @L0.loadBytes "images/test.png"
19
20 TestsUI.testIgnoredImage : IMAGE.PngImage
21   @L0.loadBytes "images/testignored.gif"
22
23 TestsUI.testSuiteImage : IMAGE.PngImage
24   @L0.loadBytes "images/tsuite.png"
25
26 // Library containing all testing viewpoint contributions
27 TestsUI.Contributions : L0.Library
28
29 MBC = TestsUI.BrowseContext : VP.BrowseContext
30     VP.BrowseContext.IsIncludedIn PROJECT.ProjectBrowseContext
31
32 MBC.TestImageRule : VP.ImageRule
33
34 MBC
35     @VP.namedRelationChildRule    TestsUI.Contributions.STSSuites           L0.Entity                              L0.ConsistsOf TESTS.STSSuite
36     @VP.namedConstantImageRule    TestsUI.Contributions.SuiteImage          TESTS.STSSuite                         TestsUI.testSuiteImage
37     @VP.namedRelationChildRule    TestsUI.Contributions.STSTests            L0.Entity                              L0.ConsistsOf TESTS.STSTest
38     @VP.customImageRule           TESTS.STSTest                             MBC.TestImageRule
39     @VP.namedRelationChildRule    TestsUI.Contributions.STSVariables        L0.Entity                              L0.ConsistsOf TESTS.STSVariable
40     @VP.namedConstantImageRule    TestsUI.Contributions.VariableImage       TESTS.STSVariable                      SILK.page_white_edit
41
42 MBC
43     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
44         VP.VisualsContribution.HasNodeType TESTS.STSSuite
45         VP.VisualsContribution.HasRule MBC.STSSuiteSorterRule
46
47 MBC.STSSuiteSorterRule : VP.SorterRule
48
49 MAC = TestsUI.ModelingActionContext : VP.BrowseContext
50     VP.BrowseContext.IsIncludedIn PROJECT.ProjectActionContext
51
52 ACTIONS = MAC.Actions : L0.Library
53
54 ACTIONS.NewSTSSuite
55   @MOD.sclAction "createSTSSuiteAction"
56 ACTIONS.NewSTSTest
57   @MOD.sclAction "createSTSTestAction"
58 ACTIONS.RunSTSTest
59   @MOD.sclAction "runSTSTestAction"
60 ACTIONS.NewSTSVariable
61   @MOD.sclAction "createSTSVariableAction"
62
63 MAC
64     VP.BrowseContext.HasActionContribution TestsUI.Contributions.NewSTSSuite : VP.ActionContribution
65         L0.HasLabel "STS Suite"
66         VP.ActionContribution.HasImage TestsUI.testSuiteImage
67         VP.ActionContribution.HasCategory VP.NewActionCategory
68         VP.ActionContribution.HasNodeType
69             L0.Library
70         VP.ActionContribution.HasAction ACTIONS.NewSTSSuite
71     VP.BrowseContext.HasActionContribution TestsUI.Contributions.NewSTSTest : VP.ActionContribution
72         L0.HasLabel "STS Test"
73         VP.ActionContribution.HasImage TestsUI.testImage
74         VP.ActionContribution.HasCategory VP.NewActionCategory
75         VP.ActionContribution.HasNodeType
76             TESTS.STSSuite
77         VP.ActionContribution.HasAction ACTIONS.NewSTSTest
78     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
79         L0.HasLabel "Run"
80         VP.ActionContribution.HasImage SILK.control_play
81         VP.ActionContribution.HasCategory VP.EditActionCategory
82         VP.ActionContribution.HasNodeType TESTS.STSSuite
83         VP.ActionContribution.HasNodeType TESTS.STSTest
84         VP.ActionContribution.HasAction ACTIONS.RunSTSTest
85     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
86         L0.HasLabel "STS Variable"
87         VP.ActionContribution.HasImage SILK.page_white_edit
88         VP.ActionContribution.HasCategory VP.NewActionCategory
89         VP.ActionContribution.HasNodeType TESTS.STSSuite
90         VP.ActionContribution.HasNodeType TESTS.STSTest
91         VP.ActionContribution.HasAction ACTIONS.NewSTSVariable