]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/DefaultConnectionEdgeClassFactory.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / adapter / DefaultConnectionEdgeClassFactory.java
index 1b7b8b7b1e5c6fe76e5c920b4712a2f3d4697c1e..f4e8f34850dfafa6be3b15973d58bd036110acb5 100644 (file)
@@ -1,47 +1,47 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.diagram.adapter;\r
-\r
-import org.simantics.db.AsyncReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.procedure.AsyncProcedure;\r
-import org.simantics.g2d.canvas.ICanvasContext;\r
-import org.simantics.g2d.diagram.IDiagram;\r
-import org.simantics.g2d.element.ElementClass;\r
-import org.simantics.g2d.elementclass.connection.EdgeClass;\r
-\r
-/**\r
- * An element class factory for connection edge segments.\r
- * \r
- * @author Tuukka Lehtonen\r
- */\r
-public class DefaultConnectionEdgeClassFactory extends ElementFactoryAdapter {\r
-\r
-    private static final ElementClass CLASS = EdgeClass.STRAIGHT;\r
-\r
-    public static ElementClass create() {\r
-        return CLASS;\r
-    }\r
-\r
-    @Override\r
-    public void create(AsyncReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementType,\r
-            AsyncProcedure<ElementClass> procedure) {\r
-        procedure.execute(graph, CLASS);\r
-    }\r
-\r
-    @Override\r
-    public void getClass(AsyncReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementResource,\r
-            AsyncProcedure<ElementClass> procedure) {\r
-        procedure.execute(graph, CLASS);\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.diagram.adapter;
+
+import org.simantics.db.AsyncReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.procedure.AsyncProcedure;
+import org.simantics.g2d.canvas.ICanvasContext;
+import org.simantics.g2d.diagram.IDiagram;
+import org.simantics.g2d.element.ElementClass;
+import org.simantics.g2d.elementclass.connection.EdgeClass;
+
+/**
+ * An element class factory for connection edge segments.
+ * 
+ * @author Tuukka Lehtonen
+ */
+public class DefaultConnectionEdgeClassFactory extends ElementFactoryAdapter {
+
+    private static final ElementClass CLASS = EdgeClass.STRAIGHT;
+
+    public static ElementClass create() {
+        return CLASS;
+    }
+
+    @Override
+    public void create(AsyncReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementType,
+            AsyncProcedure<ElementClass> procedure) {
+        procedure.execute(graph, CLASS);
+    }
+
+    @Override
+    public void getClass(AsyncReadGraph graph, ICanvasContext canvas, IDiagram diagram, Resource elementResource,
+            AsyncProcedure<ElementClass> procedure) {
+        procedure.execute(graph, CLASS);
+    }
+
+}