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=86171a31a445049705b104c7bfa9b89eb5e42d4c;hp=7e572df9f69e3aeb385fe98b5f4034bfaa0bd08d;hb=6e09484741c188de8a64c668db8d5cb823a12216;hpb=0dc0aca2a1944a19ebece6c535386a8769e7871d diff --git a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph index 7e572df9f..86171a31a 100644 --- a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph @@ -20,7 +20,7 @@ MOD.Contributions : L0.Library MOD.SCLChildRule -- MOD.SCLChildRule.getChildren ==> "Resource -> [Resource]" -- MOD.SCLLabelRule.getLabels ==> "Resource -> [String]" MOD.SCLDropAction.action ==> "Resource -> Dynamic -> Integer -> ()" MOD.SCLTest.test ==> "Resource -> Boolean" [Resource]" + +MOD.sclLabelRule : L0.Template + @template %action %expression + %action : MOD.SCLLabelRule + MOD.SCLLabelRule.getLabels _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> [String]" + MOD.sclAction : L0.Template @template %action %expression %action : MOD.SCLAction @@ -406,10 +420,23 @@ MOD.Contributions.Help : VP.ActionContribution VP.ActionContribution.HasCategory VP.EditActionCategory VP.ActionContribution.HasNodeType L0.Entity VP.ActionContribution.HasAction ACTIONS.Help - + +MOD.Contributions.CopyURI : VP.ActionContribution + L0.HasLabel "Copy URI" + VP.ActionContribution.HasImage SILK.clipboard + VP.ActionContribution.HasCategory VP.EditActionCategory + VP.ActionContribution.HasNodeType L0.Entity + VP.ActionContribution.HasNodeType MBC.Variable + VP.ActionContribution.HasAction ACTIONS.CopyURI + VP.ActionContribution.IsVisibleIf _ : VP.AndTest + VP.AndTest.HasTest + _ : VP.InDevelopmentModeTest + _ : VP.HasURITest + // Actions MAC VP.BrowseContext.HasActionContribution MOD.Contributions.Help + VP.BrowseContext.HasActionContribution MOD.Contributions.CopyURI VP.BrowseContext.HasActionContribution _ : VP.ActionContribution L0.HasLabel "Migrate" VP.ActionContribution.HasImage SILK.star @@ -645,6 +672,7 @@ ACTIONS.CompilePGraphs : ACT.Action //ACTIONS.MigrateMasterTypical : ACT.Action ACTIONS.RenameDiagramComponents : ACT.Action ACTIONS.Help : ACT.Action +ACTIONS.CopyURI : ACT.Action ACTIONS.NavigateToSubstructure @MOD.sclAction "navigateToSubstructureAction" @@ -659,6 +687,15 @@ MOD.InstantiateUnder -- MOD.InstanceOfTest.HasType --> L0.Type Boolean" + +MOD.instanceOfTest : L0.Template + @template %test %type + %test : MOD.InstanceOfTest + MOD.InstanceOfTest.HasType %type + TESTS = MAC.Tests : L0.Library TESTS.IsNotPublished @MOD.sclTest "isNotPublished"