]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Some fixes to district stuff 3 86/386/1
authorjsimomaa <jani.simomaa@gmail.com>
Wed, 29 Mar 2017 16:47:59 +0000 (19:47 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Wed, 29 Mar 2017 16:47:59 +0000 (19:47 +0300)
refs #6958

Change-Id: I58d80b1c6d5b80ff8dd465305f19865c3c9db99f

org.simantics.district.network.ontology/graph.tg
org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph
org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/DistrictNetworkResource.java

index 317d8ce0641b5e4731d36d472db40508ab67870f..6737f9afa6f4e786bede66c9973c396fddd9bfb8 100644 (file)
Binary files a/org.simantics.district.network.ontology/graph.tg and b/org.simantics.district.network.ontology/graph.tg differ
index 7719ed48c1210f2acc4502080a925ee9b4b32f5a..5e17f658ed8f2cc0a3d5b454e11840d8ae7f62aa 100644 (file)
@@ -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 <T L0.Library
index cdf3121232032fcec1aed86fd59e2793b0a375ac..678f344b13eb772efecc075a381dff3ba8082b3a 100644 (file)
@@ -51,7 +51,7 @@ public class DistrictNetworkResource {
     public final Resource HasStartVertex;
     public final Resource HasStartVertex_Inverse;
     public final Resource Images;
-    public final Resource Images_ConfigurationFolder;
+    public final Resource Images_MapImage;
     public final Resource InLayer;
     public final Resource Layer;
     public final Resource MappedComponent;
@@ -126,7 +126,7 @@ public class DistrictNetworkResource {
         public static final String HasStartVertex = "http://www.simantics.org/DistrictNetwork-1.0/HasStartVertex";
         public static final String HasStartVertex_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasStartVertex_Inverse";
         public static final String Images = "http://www.simantics.org/DistrictNetwork-1.0/Images";
-        public static final String Images_ConfigurationFolder = "http://www.simantics.org/DistrictNetwork-1.0/Images/ConfigurationFolder";
+        public static final String Images_MapImage = "http://www.simantics.org/DistrictNetwork-1.0/Images/MapImage";
         public static final String InLayer = "http://www.simantics.org/DistrictNetwork-1.0/InLayer";
         public static final String Layer = "http://www.simantics.org/DistrictNetwork-1.0/Layer";
         public static final String MappedComponent = "http://www.simantics.org/DistrictNetwork-1.0/MappedComponent";
@@ -211,7 +211,7 @@ public class DistrictNetworkResource {
         HasStartVertex = getResourceOrNull(graph, URIs.HasStartVertex);
         HasStartVertex_Inverse = getResourceOrNull(graph, URIs.HasStartVertex_Inverse);
         Images = getResourceOrNull(graph, URIs.Images);
-        Images_ConfigurationFolder = getResourceOrNull(graph, URIs.Images_ConfigurationFolder);
+        Images_MapImage = getResourceOrNull(graph, URIs.Images_MapImage);
         InLayer = getResourceOrNull(graph, URIs.InLayer);
         Layer = getResourceOrNull(graph, URIs.Layer);
         MappedComponent = getResourceOrNull(graph, URIs.MappedComponent);