]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d.ontology/graph/plant3d_viewpoint.pgraph
Add "New Plant" as model browser action.
[simantics/3d.git] / org.simantics.plant3d.ontology / graph / plant3d_viewpoint.pgraph
index 0c42f7ff38de3230b37fe3e824ef2b757729388b..5be0264c6b26bac365eb34702ceb96b479dd1e74 100644 (file)
@@ -19,8 +19,8 @@ PBC = P3D.P3DBrowseContext : VP.BrowseContext
     @VP.constantImageRule P3D.Builtin.Straight IMAGES.Straight
     @VP.constantImageRule P3D.EndComponent IMAGES.Component
     @VP.constantImageRule P3D.PipeRun IMAGES.Straight
-    @VP.relationChildRule PROJ.Project L0.ConsistsOf P3D.Plant
-    @VP.relationChildRule PROJ.Project L0.ConsistsOf CSG.Model
+    @VP.relationChildRule L0.Library L0.ConsistsOf P3D.Plant
+    @VP.relationChildRule L0.Library L0.ConsistsOf CSG.Model
     @VP.relationChildRule P3D.Node P3D.children P3D.Node
     @VP.relationChildRule P3D.Node P3D.HasNozzle P3D.Node
 
@@ -40,35 +40,9 @@ IMAGES.Tank : IMAGE.PngImage
     @L0.loadBytes "images/tank.png"
     
 MAC = P3D.P3DActionContext : VP.BrowseContext
-    VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext    
-
-
-MAC.newContribution : L0.Template
-    @template %actionContext %label %action %image
-        %actionContext
-            VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
-                L0.HasLabel %label
-                VP.ActionContribution.HasImage %image
-                VP.ActionContribution.HasCategory VP.NewActionCategory
-                VP.ActionContribution.HasNodeType P3D.Plant
-                VP.ActionContribution.HasAction %action
+    VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext
     
-MAC.newTypeContribution : L0.Template
-    @template %actionContext %label %action %type %image
-        %actionContext
-            VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
-                L0.HasLabel %label
-                VP.ActionContribution.HasImage %image
-                VP.ActionContribution.HasCategory VP.NewActionCategory
-                VP.ActionContribution.HasNodeType %type
-                VP.ActionContribution.HasAction %action
-                
-MAC.editTypeContribution : L0.Template
-    @template %actionContext %label %action %type %image
-        %actionContext
-            VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
-                L0.HasLabel %label
-                VP.ActionContribution.HasImage %image
-                VP.ActionContribution.HasCategory VP.EditActionCategory
-                VP.ActionContribution.HasNodeType %type
-                VP.ActionContribution.HasAction %action
\ No newline at end of file
+    @VP.actionContribution "Plant" L0.Library IMAGES.Factory VP.NewActionCategory P3D.Actions.NewPlant
+
+P3D.Actions : L0.Library
+P3D.Actions.NewPlant : L0.Action