]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/provider/ResourceProviders.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / provider / ResourceProviders.java
index 79ee39b8dd26a6cd32f46b81e1be38ba6b4e0a8f..b5957e6362bf9be0187dc07fe4bfc82c2448e4e9 100644 (file)
@@ -1,42 +1,42 @@
-/*******************************************************************************\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.db.common.provider;\r
-\r
-import org.simantics.db.AsyncReadGraph;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.utils.datastructures.Callback;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public final class ResourceProviders {\r
-\r
-    public static final ResourceProvider create(final Resource resource) {\r
-        return new ResourceProvider() {\r
-            @Override\r
-            public Resource get(ReadGraph g) {\r
-                return resource;\r
-            }\r
-        };\r
-    }\r
-\r
-    public static final AsyncResourceProvider createAsync(final Resource resource) {\r
-        return new AsyncResourceProvider() {\r
-            @Override\r
-            public void get(AsyncReadGraph g, Callback<Resource> callback) {\r
-                callback.run(resource);\r
-            }\r
-        };\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.db.common.provider;
+
+import org.simantics.db.AsyncReadGraph;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.utils.datastructures.Callback;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public final class ResourceProviders {
+
+    public static final ResourceProvider create(final Resource resource) {
+        return new ResourceProvider() {
+            @Override
+            public Resource get(ReadGraph g) {
+                return resource;
+            }
+        };
+    }
+
+    public static final AsyncResourceProvider createAsync(final Resource resource) {
+        return new AsyncResourceProvider() {
+            @Override
+            public void get(AsyncReadGraph g, Callback<Resource> callback) {
+                callback.run(resource);
+            }
+        };
+    }
+
+}