]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/GetElementClassRequest.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / adapter / GetElementClassRequest.java
index 17131efd14e2eb0d3647571d64f287b14d5c4b9d..c80ae3e9fab6df90d8532d4aa447f1495e7045b3 100644 (file)
@@ -1,47 +1,47 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Association for Decentralized Information Management in\r
- * 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.common.request.BinaryAsyncRead;\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
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- * \r
- * @see CreateElementClassRequest\r
- * @see NodeRequest\r
- * @see ConnectionRequest\r
- */\r
-class GetElementClassRequest extends BinaryAsyncRead<Resource, ICanvasContext, ElementClass> {\r
-\r
-    private final ElementFactory elementFactory;\r
-    private final IDiagram       diagram;\r
-\r
-    public GetElementClassRequest(ElementFactory elementFactory, Resource element, ICanvasContext canvas, IDiagram diagram) {\r
-        super(element, canvas);\r
-        if (elementFactory == null)\r
-            throw new IllegalArgumentException("elementFactory == null for " + element + " in diagram " + diagram + " with context " + canvas);\r
-        this.elementFactory = elementFactory; \r
-        this.diagram = diagram;\r
-    }\r
-\r
-    @Override\r
-    public void perform(AsyncReadGraph graph, AsyncProcedure<ElementClass> procedure) {\r
-        elementFactory.getClass(graph, parameter2, diagram, parameter, procedure);\r
-    }\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2012 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.common.request.BinaryAsyncRead;
+import org.simantics.db.procedure.AsyncProcedure;
+import org.simantics.g2d.canvas.ICanvasContext;
+import org.simantics.g2d.diagram.IDiagram;
+import org.simantics.g2d.element.ElementClass;
+
+/**
+ * @author Tuukka Lehtonen
+ * 
+ * @see CreateElementClassRequest
+ * @see NodeRequest
+ * @see ConnectionRequest
+ */
+class GetElementClassRequest extends BinaryAsyncRead<Resource, ICanvasContext, ElementClass> {
+
+    private final ElementFactory elementFactory;
+    private final IDiagram       diagram;
+
+    public GetElementClassRequest(ElementFactory elementFactory, Resource element, ICanvasContext canvas, IDiagram diagram) {
+        super(element, canvas);
+        if (elementFactory == null)
+            throw new IllegalArgumentException("elementFactory == null for " + element + " in diagram " + diagram + " with context " + canvas);
+        this.elementFactory = elementFactory; 
+        this.diagram = diagram;
+    }
+
+    @Override
+    public void perform(AsyncReadGraph graph, AsyncProcedure<ElementClass> procedure) {
+        elementFactory.getClass(graph, parameter2, diagram, parameter, procedure);
+    }
+
 }
\ No newline at end of file