From 2636fc31c16c23711cf2b06a4ae8537bba9c1d35 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Wed, 29 Mar 2017 19:47:59 +0300 Subject: [PATCH] Some fixes to district stuff 3 refs #6958 Change-Id: I58d80b1c6d5b80ff8dd465305f19865c3c9db99f --- .../graph.tg | Bin 11300 -> 12092 bytes .../graph/DistrictNetwork.pgraph | 7 ++++--- .../ontology/DistrictNetworkResource.java | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/org.simantics.district.network.ontology/graph.tg b/org.simantics.district.network.ontology/graph.tg index 317d8ce0641b5e4731d36d472db40508ab67870f..6737f9afa6f4e786bede66c9973c396fddd9bfb8 100644 GIT binary patch literal 12092 zcmeHNiGNg8mQKi4S&Aeipdf0Dpte9D36KO(Oh_PwAqm+)Swf}iB@|SuLM;h#MO*=u z77+zRaYsRHSzXd9q6jLB0)o=Cwu%e3!>H3bjpI1yJMW(4=E3y*15>}>sk+~HmV560 zs_Mox1)MFjBO)RqNh0F#rd~1jfD!bE11@8nKkN(j0G(jW4;j9o$L|Zq1IOYm32zA= zx8VzULLMV%1J)z;ut_8{h}&rN_{h}nON6O@z+Bc z-={j{^tqh@cV)oeVg%5qMb4l>svDrc-d+^&w*_ffs6F#T#KdsSq)C3a;q~~MC|C}$ zEns7M3u|@y6Vxqsiqhz53J07>h8P!nrIk8^;#gxew|J?qNO=n@lgf>@asK8Of6&A1 ztzd8INiM}kqciLcmD8{h^%eMA;~c(LBf#k|WWy9P>~yc8aV4up4$L7uPMVU>h$CSg`|Hm;ESva3g8p^mhpb6fl#Ur2Syji6(Dxx&GaznR+SY4jL@s<0O++|0UE z7tL+z{*a^D*<>iyO|0r$rPf24v%&CMykB9Hv^q~P?DSIee4&7+A*}lJRVZIcq;{9n z5UHkhFd0Xrs^v8fkxIU2B=9;^ui40!(<1N*nAf$weS=MsxNp7TX5ZCDJ6U`T_6^N! z6NuPU8bQ@%G_Xzn0Bkq2s#jN6YAx6T-DW+3t<1z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bKxPDGLyiR^( zwGV9!i(Y;$zS#U)e2%E*MzT$w|IfRo(ZD}P_$cu|3r!s|+qgsfpNT47IRkmAJuukc z7Y@zmEDT51^>DRuC#$bwO=tbByh<{@bC2_dGiHvRf~2t!;Yeye;8%|8nxh^vi#I zz+na<-!-~RWBRgc{q9x2_?ayHi6 z;rE`tF1h82^=MvEq_@B4$<;eUzQ#d13b#YIJ1C%p7XyJ_=iS$ zlEnrZIxiPI3^lkIA9C z^8fXq*bFIk+M{oBD6;JIN8jZ5Qnh{bO^$w4PdoZ1Cz`4QN8jY6izuz5Zzaqka6(E> z8e2YdCB;WVps~ zmEme|DWt+M%ktChU+}j~^2t5OYK&vEBmG!SV ICX3Gc9~WC4xc~qF diff --git a/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph index 7719ed48..5e17f658 100644 --- a/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph +++ b/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph @@ -127,13 +127,14 @@ DNAC.newDiagramContribution : L0.Template DNAC = DN.ActionContext : VP.BrowseContext VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext - @DNAC.newDiagramContribution "DN Diagram" IMAGES.ConfigurationFolder ACTIONS.NewDNDiagram + @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 @@ -144,8 +145,8 @@ ACTIONS.NewDNDiagram : MOD.NewComposite IMAGES = DN.Images : L0.Library -IMAGES.ConfigurationFolder : IMAGE.PngImage - @L0.loadBytes "images/Configuration.png" +IMAGES.MapImage : IMAGE.PngImage + @L0.loadBytes "images/map.png" // Component MAPPING DN.Mapping