This function complements the existing positionToDoubleArray and is
required to support for instance diagram template scenegraph node
transform property definition with SCL formulas.
Also fixes:
* Potential NPE in ExperimentUtil.scheduleShutdownActiveExperiment
* MANIFEST.MF warnings from org.simantics.document.server
refs #7246
Change-Id: Icfe41a33824c91e5be76940bbf4d46d34c8d0334
org.simantics.document.server.request,
org.simantics.document.server.serverResponse
Import-Package: org.simantics.layer0.utils.direct
-Bundle-ClassPath: .,
- batik/batik-dom.jar,
- batik/batik-svg-dom.jar,
- batik/batik-svggen.jar,
- batik/batik-awt-util.jar,
- batik/batik-util.jar,
- batik/batik-ext.jar,
- batik/batik-xml.jar
+Bundle-ClassPath: .
positionToDoubleArray (Position a b c d e f) = toDoubleArray [a,b,c,d,e,f]
+positionToVector :: Position -> Vector Double
+positionToVector (Position a b c d e f) = runProc
+ (do r = createMVector 6
+ setMVector r 0 a
+ setMVector r 1 b
+ setMVector r 2 c
+ setMVector r 3 d
+ setMVector r 4 e
+ setMVector r 5 f
+ freezeMVector r)
+
// --- Diagram element data types -----------------------------------
data Property res = Property res Dynamic
job.setUser(true);
job.schedule();
} else {
- callback.accept(null);
+ if (callback != null)
+ callback.accept(null);
}
}