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=b97753e5fc5c920061de1be78cd1f8b7adde20d9;hp=86171a31a445049705b104c7bfa9b89eb5e42d4c;hb=b000e272429e157638c0384878b07b8dcd758472;hpb=5f777aa757a8eef106aeaf621d3b030162fa6bb8 diff --git a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph index 86171a31a..b97753e5f 100644 --- a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph @@ -23,6 +23,18 @@ 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.SCLCheckedStateRule.getState ==> "BrowseNodeRule CheckedState" 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.sclCheckedStateRule : L0.Template + @template %action %expression + %action : MOD.SCLCheckedStateRule + MOD.SCLCheckedStateRule.getState _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Browsable a => a -> CheckedState" + MOD.sclAction : L0.Template @template %action %expression %action : MOD.SCLAction @@ -414,6 +457,13 @@ MOD.Contributions.ActivateModel : VP.ActionContribution VP.ActionContribution.HasNodeType SIMU.Model VP.ActionContribution.HasAction ACTIONS.ActivateModel +MOD.Contributions.ActivateExperiment : VP.ActionContribution + L0.HasLabel "Activate" + VP.ActionContribution.HasImage SILK.bullet_go + VP.ActionContribution.HasCategory VP.EditActionCategory + VP.ActionContribution.HasNodeType SIMU.Experiment + VP.ActionContribution.HasAction ACTIONS.ActivateExperiment + MOD.Contributions.Help : VP.ActionContribution L0.HasLabel "Help" VP.ActionContribution.HasImage SILK.help @@ -497,6 +547,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 +722,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 @@ -667,6 +734,8 @@ ACTIONS.NewSheetBook @MOD.sclAction "createSpreadsheetBookAction" ACTIONS.ActivateModel @MOD.sclAction "activateModelAction" +ACTIONS.ActivateExperiment + @MOD.sclAction "activateExperimentAction" ACTIONS.MigrateComponentType : ACT.Action ACTIONS.CompilePGraphs : ACT.Action //ACTIONS.MigrateMasterTypical : ACT.Action