]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - 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
diff --git a/bundles/org.simantics.help.ontology/graph/Help.pgraph b/bundles/org.simantics.help.ontology/graph/Help.pgraph
new file mode 100644 (file)
index 0000000..ac5a9a4
--- /dev/null
@@ -0,0 +1,57 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+VP = <http://www.simantics.org/Viewpoint-1.2>
+MOD = <http://www.simantics.org/Modeling-1.2>
+SILK = <http://www.simantics.org/Silk-1.1>
+
+HELP = <http://www.simantics.org/Help-1.0> : L0.Ontology
+    @L0.new
+    L0.HasResourceClass "org.simantics.help.HelpResources"
+
+HELP.SCLMain : L0.SCLModule
+    L0.SCLModule.definition _ : L0.String
+      @L0.loadString "scl/SCLMain.scl"
+
+HELP.HelpLibrary <T L0.Library
+
+HELP.HelpFile <T L0.Entity : MOD.TypeWithChangeInformation : L0.TypeWithIdentifier
+    >-- HELP.HelpFile.contents --> L0.String <R L0.HasProperty : L0.TotalFunction
+    @L0.assert HELP.HelpFile.contents ""
+
+HELP.TutorialFile <T HELP.HelpFile
+
+MAC = MOD.ModelingActionContext
+MBC = MOD.ModelingBrowseContext
+
+ACTIONS = HELP.Actions : L0.Library
+
+ACTIONS.NewHelpLibrary
+    @MOD.sclAction "createHelpLibraryAction"
+ACTIONS.NewHelpTutorial
+    @MOD.sclAction "createHelpTutorialAction"
+
+CONTRIBUTIONS = HELP.Contributions : L0.Library
+
+TESTS = MAC.Tests
+
+MAC
+    VP.BrowseContext.HasActionContribution CONTRIBUTIONS.NewHelpLibrary : VP.ActionContribution
+        L0.HasLabel "Help Library"
+        VP.ActionContribution.HasImage SILK.book
+        VP.ActionContribution.HasCategory VP.NewActionCategory
+        VP.ActionContribution.HasNodeType
+            L0.Library
+        VP.ActionContribution.HasAction ACTIONS.NewHelpLibrary
+        VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
+    VP.BrowseContext.HasActionContribution CONTRIBUTIONS.NewHelpTutorial : VP.ActionContribution
+        L0.HasLabel "Help Tutorial"
+        VP.ActionContribution.HasImage SILK.page_white_text
+        VP.ActionContribution.HasCategory VP.NewActionCategory
+        VP.ActionContribution.HasNodeType
+            HELP.HelpLibrary
+        VP.ActionContribution.HasAction ACTIONS.NewHelpTutorial
+        VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
+
+MBC
+    @VP.namedRelationChildRule    CONTRIBUTIONS.HelpFiles           L0.Entity    L0.ConsistsOf    HELP.HelpFile
+    @VP.namedConstantImageRule    CONTRIBUTIONS.HelpFileImage       HELP.HelpFile       SILK.page_white_text
+    @VP.namedConstantImageRule    CONTRIBUTIONS.HelpLibraryImage    HELP.HelpLibrary    SILK.book