]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Necessary reverts and changes to build against release/1.35.2 platform
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 10 Sep 2019 16:10:04 +0000 (19:10 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 10 Sep 2019 16:10:04 +0000 (19:10 +0300)
gitlab #60

org.simantics.district.network.ui/src/org/simantics/district/network/ui/OpenDiagramFromConfigurationAdapter.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/DistrictNetworkHoverInfoStyle.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/DistrictNetworkStaticInfoStyle.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/ElevationRectangleStyle.java

index e4e97d59eb6dcadc6ba5dc02254e3e9c9d854a41..e1161296b3e0d21aca4de2eca9811f397837ca11 100644 (file)
@@ -20,7 +20,7 @@ public class OpenDiagramFromConfigurationAdapter
     }
 
     @Override
-    protected String getEditorId(ReadGraph g, Resource composite) throws DatabaseException {
+    protected String getEditorId() {
         return DistrictDiagramEditor.ID;
     }
 }
index 77be9c90cc392a37df569b5c917b31e6ad61b76f..0694da06529f3867ddc0a78cf40a47bc785c00a0 100644 (file)
@@ -69,7 +69,7 @@ public class DistrictNetworkHoverInfoStyle extends StyleBase<DistrictNetworkHove
        }
        
        public DistrictNetworkHoverInfoStyle(Resource style) throws DatabaseException {
-               super(style);
+               super();
        }
        
        String currentRowKey;
index 27c2fc8496dc4e0908a65b18b32236ca3b794cd2..75c5ad4e7eb51d606126c75d0f3dcbb8c374d78d 100644 (file)
@@ -60,7 +60,7 @@ public class DistrictNetworkStaticInfoStyle extends StyleBase<DistrictNetworkSta
        }
        
        public DistrictNetworkStaticInfoStyle(Resource style) {
-               super(style);
+               super();
        }
        
        @Override
index 59506e752e94685692a406cc9034db11eaaa7158..4f7bc461572a17ba8d6705c0a83242f1900e5a31 100644 (file)
@@ -6,7 +6,6 @@ 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;
@@ -19,10 +18,9 @@ import org.simantics.scenegraph.utils.NodeUtil;
 public class ElevationRectangleStyle implements Style {
 
     private ObserverGroupListener listener = null;
-    private double priority;
 
     @Override
-    public void activate(RequestProcessor backend, Resource runtimeDiagram, Resource entry, Group group, EvaluationContext observer) throws DatabaseException {
+    public void activate(RequestProcessor backend, Resource runtimeDiagram, Resource entry, Group group, EvaluationContext observer) {
         if (listener != null && !listener.isDisposed())
             return;
         listener = new ObserverGroupListener(this, group, observer);
@@ -40,11 +38,6 @@ public class ElevationRectangleStyle implements Style {
 
     @Override
     public void apply(Resource entry, Group group, EvaluationContext observer) {
-        apply2(entry, observer);
-    }
-
-    @Override
-    public void apply2(Object item, EvaluationContext observer) {
         setRectangles(observer, SingletonTiffTileInterface.getBoundingBoxes());
     }
 
@@ -54,15 +47,5 @@ public class ElevationRectangleStyle implements Style {
             ((ElevationServerNode) node).setRectangles(rectangles);
         }
     }
-    
-    @Override
-    public void setPriority(double priority) {
-        this.priority = priority;
-    }
-
-    @Override
-    public double getPriority() {
-        return priority;
-    }
 
 }