X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ontology%2Fgraph%2FModelingViewpoint.pgraph;h=47931cc4f1172e7eb0bc631471114d8fd648209b;hp=86171a31a445049705b104c7bfa9b89eb5e42d4c;hb=67918d39fd9a67b659dcb118412fe0313a8fc0e8;hpb=6f11a60dee43d620d500c0cf5af34a1d91c80a8b diff --git a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph index 86171a31a..47931cc4f 100644 --- a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph @@ -23,6 +23,15 @@ MOD.SCLChildRule -- MOD.SCLLabelRule.getLabels ==> "Resource -> [String]" -- MOD.SCLImageRule.getImages ==> "Resource -> [(String,ImageDescriptor)]" -- MOD.SCLLabelForegroundColorRule.getColor ==> "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)]" -- MOD.SCLLabelBackgroundColorRule.getColor ==> "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)]" MOD.SCLAction.action ==> "Resource -> ()" [String]" +MOD.sclImageRule : L0.Template + @template %action %expression + %action : MOD.SCLImageRule + MOD.SCLImageRule.getImages _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> [(String,ImageDescriptor)]" + +MOD.sclLabelForegroundColorRule : L0.Template + @template %action %expression + %action : MOD.SCLLabelForegroundColorRule + MOD.SCLLabelForegroundColorRule.getColor _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)" + +MOD.sclLabelBackgroundColorRule : L0.Template + @template %action %expression + %action : MOD.SCLLabelBackgroundColorRule + MOD.SCLLabelBackgroundColorRule.getColor _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)" + MOD.sclAction : L0.Template @template %action %expression %action : MOD.SCLAction @@ -497,6 +530,20 @@ MAC STR.ComponentType VP.ActionContribution.HasAction ACTIONS.NewSCLModule VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished + VP.BrowseContext.HasActionContribution MOD.Contributions.NewSCLScript : VP.ActionContribution + L0.HasLabel "SCL Script" + VP.ActionContribution.HasImage SILK.script_go + VP.ActionContribution.HasCategory VP.NewActionCategory + VP.ActionContribution.HasNodeType + L0.Library + VP.ActionContribution.HasAction ACTIONS.NewSCLScript + VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished + VP.BrowseContext.HasActionContribution _ : VP.ActionContribution + L0.HasLabel "Run SCL Script" + VP.ActionContribution.HasImage SILK.script_start + VP.ActionContribution.HasCategory VP.EditActionCategory + VP.ActionContribution.HasNodeType L0.SCLScript + VP.ActionContribution.HasAction ACTIONS.RunSCLScript VP.BrowseContext.HasActionContribution MOD.Contributions.NewPGraph : VP.ActionContribution L0.HasLabel "Ontology Definition File" VP.ActionContribution.HasImage SILK.page_white_text @@ -658,6 +705,9 @@ ACTIONS.CreateNewVersion @MOD.sclAction "newVersionAction" ACTIONS.NewSCLModule @MOD.sclAction "createSCLModuleAction" +ACTIONS.NewSCLScript + @MOD.sclAction "createSCLScriptAction" +ACTIONS.RunSCLScript : ACT.Action ACTIONS.NewPGraph @MOD.sclAction "createPGraphAction" ACTIONS.NewSCLQuery : ACT.Action