]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Refactoring: Move style definitions to a separate package 34/2934/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Thu, 6 Jun 2019 13:58:25 +0000 (16:58 +0300)
committerReino Ruusu <reino.ruusu@semantum.fi>
Thu, 6 Jun 2019 13:58:25 +0000 (16:58 +0300)
Change-Id: I7ceed42bbad039bf6b6d4ec383a94012b2e3248c

org.simantics.district.network.ui/adapters.xml
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/ConnectionLineStyle.java [moved from org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/ConnectionLineStyle.java with 98% similarity]
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/DistrictNetworkHoverInfoStyle.java [moved from org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoStyle.java with 97% similarity]
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/DistrictNetworkStaticInfoStyle.java [moved from org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkStaticInfoStyle.java with 97% similarity]
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/ElevationRectangleStyle.java [moved from org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/ElevationRectangleStyle.java with 95% similarity]

index c2a02562c192223014741bfb246e9df9bebae484..f4dea68aa515a0ac4ee597b6c165a8902cbf1851 100644 (file)
     
     <target interface="org.simantics.scenegraph.profile.Style">
         <resource uri="http://www.simantics.org/DistrictNetwork-1.0/ConnectionLineStyle"
-            class="org.simantics.district.network.ui.nodes.ConnectionLineStyle">
+            class="org.simantics.district.network.ui.styles.ConnectionLineStyle">
         </resource>
         <resource uri="http://www.simantics.org/DistrictNetwork-1.0/DistrictNetworkHoverInfoStyle"
-            class="org.simantics.district.network.ui.nodes.DistrictNetworkHoverInfoStyle">
+            class="org.simantics.district.network.ui.styles.DistrictNetworkHoverInfoStyle">
             <this />
         </resource>
         <resource uri="http://www.simantics.org/DistrictNetwork-1.0/DistrictNetworkStaticInfoStyle"
-            class="org.simantics.district.network.ui.nodes.DistrictNetworkStaticInfoStyle">
+            class="org.simantics.district.network.ui.styles.DistrictNetworkStaticInfoStyle">
             <this />
         </resource>
         <resource uri="http://www.simantics.org/DistrictNetwork-1.0/ElevationRectangleStyle"
-            class="org.simantics.district.network.ui.nodes.ElevationRectangleStyle">
+            class="org.simantics.district.network.ui.styles.ElevationRectangleStyle">
         </resource>
     </target>
     
similarity index 98%
rename from org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/ConnectionLineStyle.java
rename to org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/ConnectionLineStyle.java
index 5b3d2b43b4c1e4da8582f811323e31d102268fc2..b74cbba676411b33bb6142c55ab10952014de696 100644 (file)
@@ -1,4 +1,4 @@
-package org.simantics.district.network.ui.nodes;
+package org.simantics.district.network.ui.styles;
 
 import java.awt.BasicStroke;
 import java.awt.Color;
@@ -21,6 +21,7 @@ import org.simantics.diagram.profile.StyleBase;
 import org.simantics.diagram.stubs.DiagramResource;
 import org.simantics.district.network.DistrictNetworkUtil;
 import org.simantics.district.network.ontology.DistrictNetworkResource;
+import org.simantics.district.network.ui.nodes.DistrictNetworkNodeUtils;
 import org.simantics.layer0.Layer0;
 import org.simantics.modeling.ModelingResources;
 import org.simantics.scenegraph.INode;
@@ -1,4 +1,4 @@
-package org.simantics.district.network.ui.nodes;
+package org.simantics.district.network.ui.styles;
 
 import java.awt.geom.Point2D;
 import java.util.Collections;
@@ -20,6 +20,8 @@ import org.simantics.diagram.profile.StyleBase;
 import org.simantics.diagram.stubs.DiagramResource;
 import org.simantics.district.network.DistrictNetworkUtil;
 import org.simantics.district.network.ontology.DistrictNetworkResource;
+import org.simantics.district.network.ui.nodes.DistrictNetworkHoverInfoNode;
+import org.simantics.district.network.ui.nodes.DistrictNetworkNodeUtils;
 import org.simantics.layer0.Layer0;
 import org.simantics.modeling.ModelingResources;
 import org.simantics.scenegraph.INode;
@@ -1,4 +1,4 @@
-package org.simantics.district.network.ui.nodes;
+package org.simantics.district.network.ui.styles;
 
 import java.awt.geom.Point2D;
 import java.util.Set;
@@ -19,6 +19,8 @@ import org.simantics.diagram.stubs.DiagramResource;
 import org.simantics.district.network.DistrictNetworkUtil;
 import org.simantics.district.network.ontology.DistrictNetworkResource;
 import org.simantics.district.network.profile.MidBranchEdgeSetRequest;
+import org.simantics.district.network.ui.nodes.DistrictNetworkNodeUtils;
+import org.simantics.district.network.ui.nodes.DistrictNetworkStaticInfoNode;
 import org.simantics.layer0.Layer0;
 import org.simantics.scenegraph.INode;
 import org.simantics.scenegraph.profile.EvaluationContext;
similarity index 95%
rename from org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/ElevationRectangleStyle.java
rename to org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/ElevationRectangleStyle.java
index c6846495ce0485ff8602805659c96b3aaa521471..59506e752e94685692a406cc9034db11eaaa7158 100644 (file)
@@ -1,4 +1,4 @@
-package org.simantics.district.network.ui.nodes;
+package org.simantics.district.network.ui.styles;
 
 import java.awt.geom.Rectangle2D;
 import java.util.Collection;
@@ -7,6 +7,7 @@ import java.util.Collections;
 import org.simantics.db.RequestProcessor;
 import org.simantics.db.Resource;
 import org.simantics.db.exception.DatabaseException;
+import org.simantics.district.network.ui.nodes.ElevationServerNode;
 import org.simantics.maps.elevation.server.SingletonTiffTileInterface;
 import org.simantics.scenegraph.g2d.IG2DNode;
 import org.simantics.scenegraph.profile.EvaluationContext;