]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/SpawnEdgeRequest.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / adapter / SpawnEdgeRequest.java
index bad17aaee8e2c6e3d8f0aa58a78c0c8d9c4cc7e5..5f9a8f62e8d60e6db96f18ed283f42e98e31af38 100644 (file)
@@ -1,43 +1,43 @@
-/*******************************************************************************\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.procedure.AsyncProcedure;\r
-import org.simantics.diagram.content.EdgeResource;\r
-import org.simantics.g2d.canvas.ICanvasContext;\r
-import org.simantics.g2d.element.ElementClass;\r
-import org.simantics.g2d.element.ElementHints;\r
-import org.simantics.g2d.element.IElement;\r
-import org.simantics.g2d.element.impl.Element;\r
-\r
-/**\r
- * @author Antti Villberg\r
- */\r
-class SpawnEdgeRequest extends BaseRequest2<EdgeResource, IElement> {\r
-\r
-    private final ElementClass clazz;\r
-\r
-    public SpawnEdgeRequest(ICanvasContext canvas, ElementClass clazz, EdgeResource resource) {\r
-        super(canvas, resource);\r
-        this.clazz = clazz;\r
-    }\r
-\r
-    @Override\r
-    public void perform(AsyncReadGraph graph, final AsyncProcedure<IElement> procedure) {\r
-//        System.out.println("Spawn " + data);\r
-        IElement e = Element.spawnNew(clazz);\r
-        e.setHint(ElementHints.KEY_OBJECT, data);\r
-        procedure.execute(graph, e);\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.procedure.AsyncProcedure;
+import org.simantics.diagram.content.EdgeResource;
+import org.simantics.g2d.canvas.ICanvasContext;
+import org.simantics.g2d.element.ElementClass;
+import org.simantics.g2d.element.ElementHints;
+import org.simantics.g2d.element.IElement;
+import org.simantics.g2d.element.impl.Element;
+
+/**
+ * @author Antti Villberg
+ */
+class SpawnEdgeRequest extends BaseRequest2<EdgeResource, IElement> {
+
+    private final ElementClass clazz;
+
+    public SpawnEdgeRequest(ICanvasContext canvas, ElementClass clazz, EdgeResource resource) {
+        super(canvas, resource);
+        this.clazz = clazz;
+    }
+
+    @Override
+    public void perform(AsyncReadGraph graph, final AsyncProcedure<IElement> procedure) {
+//        System.out.println("Spawn " + data);
+        IElement e = Element.spawnNew(clazz);
+        e.setHint(ElementHints.KEY_OBJECT, data);
+        procedure.execute(graph, e);
+    }
+
+}