]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graphviz/scl/Visualization/Graphviz/Edge.scl
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.graphviz / scl / Visualization / Graphviz / Edge.scl
index f8a0316e01b76156ec563f74a7ccc93e01e6dcb6..dc526674fd9d9fb348aeaf89094d15defc2fec2e 100644 (file)
@@ -1,20 +1,20 @@
-import "Visualization/Graphviz/AbstractTypes"\r
-import "Visualization/Graphviz/Property"\r
-\r
-importJava "org.simantics.graphviz.Edge" where\r
-    data Edge\r
-    @JavaName "<init>"\r
-    newPrimitiveEdge :: Identifiable -> Identifiable -> <Proc> Edge\r
-    setLabel :: Edge -> String -> <Proc> ()\r
-    @JavaName set\r
-    setGenericProperty :: Edge -> String -> String -> <Proc> ()\r
-    \r
-applyEdgeProperty :: Edge -> Property -> <Proc> ()\r
-applyEdgeProperty graph (Label str) = setLabel graph str\r
-applyEdgeProperty graph (GenericProperty property str) = setGenericProperty graph property str\r
-    \r
-newEdge :: Identifiable a => Identifiable b => a -> b -> [Property] -> <Proc> Edge\r
-newEdge node1 node2 properties = edge\r
-  where\r
-    edge = newPrimitiveEdge (identifiable node1) (identifiable node2)\r
+import "Visualization/Graphviz/AbstractTypes"
+import "Visualization/Graphviz/Property"
+
+importJava "org.simantics.graphviz.Edge" where
+    data Edge
+    @JavaName "<init>"
+    newPrimitiveEdge :: Identifiable -> Identifiable -> <Proc> Edge
+    setLabel :: Edge -> String -> <Proc> ()
+    @JavaName set
+    setGenericProperty :: Edge -> String -> String -> <Proc> ()
+    
+applyEdgeProperty :: Edge -> Property -> <Proc> ()
+applyEdgeProperty graph (Label str) = setLabel graph str
+applyEdgeProperty graph (GenericProperty property str) = setGenericProperty graph property str
+    
+newEdge :: Identifiable a => Identifiable b => a -> b -> [Property] -> <Proc> Edge
+newEdge node1 node2 properties = edge
+  where
+    edge = newPrimitiveEdge (identifiable node1) (identifiable node2)
     for properties (applyEdgeProperty edge)
\ No newline at end of file