L0 = <http://www.simantics.org/Layer0-1.1>
VP = <http://www.simantics.org/Viewpoint-1.2>
+ACT = <http://www.simantics.org/Action-1.1>
PROJ = <http://www.simantics.org/Project-1.2>
SIM = <http://www.simantics.org/Simulation-1.1>
IMAGE = <http://www.simantics.org/Image2-1.2>
@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
@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 : ACT.Action