1 L0 = <http://www.simantics.org/Layer0-1.1>
2 VP = <http://www.simantics.org/Viewpoint-1.2>
3 MOD = <http://www.simantics.org/Modeling-1.2>
4 SILK = <http://www.simantics.org/Silk-1.1>
6 HELP = <http://www.simantics.org/Help-1.0> : L0.Ontology
8 L0.HasResourceClass "org.simantics.help.HelpResources"
10 HELP.SCLMain : L0.SCLModule
11 L0.SCLModule.definition _ : L0.String
12 @L0.loadString "scl/SCLMain.scl"
14 HELP.HelpLibrary <T L0.Library
16 HELP.HelpFile <T L0.Entity : MOD.TypeWithChangeInformation : L0.TypeWithIdentifier
17 >-- HELP.HelpFile.contents --> L0.String <R L0.HasProperty : L0.TotalFunction
18 @L0.assert HELP.HelpFile.contents ""
20 HELP.TutorialFile <T HELP.HelpFile
22 MAC = MOD.ModelingActionContext
23 MBC = MOD.ModelingBrowseContext
25 ACTIONS = HELP.Actions : L0.Library
27 ACTIONS.NewHelpLibrary
28 @MOD.sclAction "createHelpLibraryAction"
29 ACTIONS.NewHelpTutorial
30 @MOD.sclAction "createHelpTutorialAction"
32 CONTRIBUTIONS = HELP.Contributions : L0.Library
37 VP.BrowseContext.HasActionContribution CONTRIBUTIONS.NewHelpLibrary : VP.ActionContribution
38 L0.HasLabel "Help Library"
39 VP.ActionContribution.HasImage SILK.book
40 VP.ActionContribution.HasCategory VP.NewActionCategory
41 VP.ActionContribution.HasNodeType
43 VP.ActionContribution.HasAction ACTIONS.NewHelpLibrary
44 VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
45 VP.BrowseContext.HasActionContribution CONTRIBUTIONS.NewHelpTutorial : VP.ActionContribution
46 L0.HasLabel "Help Tutorial"
47 VP.ActionContribution.HasImage SILK.page_white_text
48 VP.ActionContribution.HasCategory VP.NewActionCategory
49 VP.ActionContribution.HasNodeType
51 VP.ActionContribution.HasAction ACTIONS.NewHelpTutorial
52 VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
55 @VP.namedRelationChildRule CONTRIBUTIONS.HelpFiles L0.Entity L0.ConsistsOf HELP.HelpFile
56 @VP.namedConstantImageRule CONTRIBUTIONS.HelpFileImage HELP.HelpFile SILK.page_white_text
57 @VP.namedConstantImageRule CONTRIBUTIONS.HelpLibraryImage HELP.HelpLibrary SILK.book