From: Tuukka Lehtonen Date: Wed, 4 Oct 2017 09:30:07 +0000 (+0300) Subject: Merge "(refs #7526) Allow population of UC to diagram directly" X-Git-Tag: v1.31.0~147 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=17a42ca754147cfd5d101ae120697fbb172b3411;hp=43607377385ee1735725510837195d095f357c42;p=simantics%2Fplatform.git Merge "(refs #7526) Allow population of UC to diagram directly" --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java index 5f62ac314..802881e16 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java @@ -28,6 +28,10 @@ public class ConnectionVisuals { public final Double branchPointRadius; public final Double rounding; + public ConnectionVisuals(float[] color, StrokeType strokeType, Stroke stroke, Double rounding) { + this(color, strokeType, stroke, null, rounding); + } + public ConnectionVisuals(float[] color, StrokeType strokeType, Stroke stroke, Double branchPointRadius, Double rounding) { if (color != null && color.length < 3) throw new IllegalArgumentException("colors must have at least 3 components (rgb), got " + color.length); diff --git a/bundles/org.simantics.scl.rest/scl/SCL/REST/Server.scl b/bundles/org.simantics.scl.rest/scl/Server/RESTSCL.scl similarity index 100% rename from bundles/org.simantics.scl.rest/scl/SCL/REST/Server.scl rename to bundles/org.simantics.scl.rest/scl/Server/RESTSCL.scl diff --git a/bundles/org.simantics.scl.rest/src/org/simantics/scl/rest/SCLRESTServer.java b/bundles/org.simantics.scl.rest/src/org/simantics/scl/rest/SCLRESTServer.java index 0e642026e..b7e8090b5 100644 --- a/bundles/org.simantics.scl.rest/src/org/simantics/scl/rest/SCLRESTServer.java +++ b/bundles/org.simantics.scl.rest/src/org/simantics/scl/rest/SCLRESTServer.java @@ -36,7 +36,6 @@ public class SCLRESTServer { server = new Server(); ServerConnector connector = new ServerConnector(server); connector.setPort(preferablePort); - connector.setHost("localhost"); server.setConnectors(new Connector[] { connector }); diff --git a/features/org.simantics.desktop.product.feature/feature.xml b/features/org.simantics.desktop.product.feature/feature.xml index 9bd6f1eda..59c224643 100644 --- a/features/org.simantics.desktop.product.feature/feature.xml +++ b/features/org.simantics.desktop.product.feature/feature.xml @@ -25,6 +25,10 @@ id="org.simantics.modeling.ui.workbench.feature" version="0.0.0"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +