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>
9 TestsUI = <http://www.simantics.org/TestsUI-1.0> : L0.Ontology
11 L0.HasResourceClass "org.simantics.tests.modelled.ui.ontology.TestsUIResource"
13 TestsUI.SCLMain : L0.SCLModule
14 L0.SCLModule.definition _ : L0.String
15 @L0.loadString "scl/SCLMain.scl"
17 TestsUI.testImage : IMAGE.PngImage
18 @L0.loadBytes "images/test.png"
20 TestsUI.testIgnoredImage : IMAGE.PngImage
21 @L0.loadBytes "images/testignored.gif"
23 TestsUI.testSuiteImage : IMAGE.PngImage
24 @L0.loadBytes "images/tsuite.png"
26 // Library containing all testing viewpoint contributions
27 TestsUI.Contributions : L0.Library
29 MBC = TestsUI.BrowseContext : VP.BrowseContext
30 VP.BrowseContext.IsIncludedIn PROJECT.ProjectBrowseContext
32 MBC.TestImageRule : VP.ImageRule
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
43 VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
44 VP.VisualsContribution.HasNodeType TESTS.STSSuite
45 VP.VisualsContribution.HasRule MBC.STSSuiteSorterRule
47 MBC.STSSuiteSorterRule : VP.SorterRule
49 MAC = TestsUI.ModelingActionContext : VP.BrowseContext
50 VP.BrowseContext.IsIncludedIn PROJECT.ProjectActionContext
52 ACTIONS = MAC.Actions : L0.Library
55 @MOD.sclAction "createSTSSuiteAction"
57 @MOD.sclAction "createSTSTestAction"
59 @MOD.sclAction "runSTSTestAction"
60 ACTIONS.NewSTSVariable
61 @MOD.sclAction "createSTSVariableAction"
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
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
77 VP.ActionContribution.HasAction ACTIONS.NewSTSTest
78 VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
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