X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.network.ontology%2Fgraph%2FDistrictNetworkViewpoint.pgraph;fp=org.simantics.district.network.ontology%2Fgraph%2FDistrictNetworkViewpoint.pgraph;h=8fa53c93ae2d49045f76c58a78b0a404feaf1edc;hb=a3b6137601545ac6e3484995d0ec6d39224bbf3f;hp=0000000000000000000000000000000000000000;hpb=1e6f4461465fc45d71b30535d02bbe1cd7672d4a;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network.ontology/graph/DistrictNetworkViewpoint.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetworkViewpoint.pgraph new file mode 100644 index 00000000..8fa53c93 --- /dev/null +++ b/org.simantics.district.network.ontology/graph/DistrictNetworkViewpoint.pgraph @@ -0,0 +1,47 @@ +L0 = +DIA = +STR = +MOD = +VP = +IMAGE = +SEL = +SEL_UI = +G2D = +DN = + +// ---------------------------------------------------------------------------- + +MBC = MOD.ModelingBrowseContext + +DNAC.newDiagramContribution : L0.Template + @template %actionContext %label %image %action + %actionContext + VP.BrowseContext.HasActionContribution _ : VP.ActionContribution + L0.HasLabel %label + VP.ActionContribution.HasImage %image + VP.ActionContribution.HasCategory VP.NewActionCategory + VP.ActionContribution.HasNodeType MBC.Configuration + VP.ActionContribution.HasAction %action + +DNAC = DN.ActionContext : VP.BrowseContext + VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext + @DNAC.newDiagramContribution "Network Diagram" IMAGES.MapImage ACTIONS.NewDNDiagram + +DNBC = DN.BrowseContext : VP.BrowseContext + VP.BrowseContext.IsIncludedIn MOD.ModelingBrowseContext + VP.BrowseContext.Includes SEL_UI.StandardPropertiesBase.BrowseContext + + @VP.customModifierRule DN.Edge VP.ResourceLabelModifierRule + @VP.constantImageRule DN.Composite IMAGES.MapImage + + +ACTIONS = DN.Actions : L0.Library + +ACTIONS.NewDNDiagram : MOD.NewComposite + MOD.NewComposite.HasCompositeType DN.Composite + MOD.NewComposite.HasDefaultName "NewNetworkDiagram" + +IMAGES = DN.Images : L0.Library + +IMAGES.MapImage : IMAGE.PngImage + @L0.loadBytes "images/map.png"