]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.help.ontology/graph/Help.pgraph
merged svn revision 33114 and added desktop and help plugins
[simantics/platform.git] / bundles / org.simantics.help.ontology / graph / Help.pgraph
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>
5
6 HELP = <http://www.simantics.org/Help-1.0> : L0.Ontology
7     @L0.new
8     L0.HasResourceClass "org.simantics.help.HelpResources"
9
10 HELP.SCLMain : L0.SCLModule
11     L0.SCLModule.definition _ : L0.String
12       @L0.loadString "scl/SCLMain.scl"
13
14 HELP.HelpLibrary <T L0.Library
15
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 ""
19
20 HELP.TutorialFile <T HELP.HelpFile
21
22 MAC = MOD.ModelingActionContext
23 MBC = MOD.ModelingBrowseContext
24
25 ACTIONS = HELP.Actions : L0.Library
26
27 ACTIONS.NewHelpLibrary
28     @MOD.sclAction "createHelpLibraryAction"
29 ACTIONS.NewHelpTutorial
30     @MOD.sclAction "createHelpTutorialAction"
31
32 CONTRIBUTIONS = HELP.Contributions : L0.Library
33
34 TESTS = MAC.Tests
35
36 MAC
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
42             L0.Library
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
50             HELP.HelpLibrary
51         VP.ActionContribution.HasAction ACTIONS.NewHelpTutorial
52         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
53
54 MBC
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