]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/widgets/ResourceVariableFactory.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / widgets / ResourceVariableFactory.java
index 51ea617e208c0f77a2884d806cd120ea3e5f2698..22c6da67a6fef08a4022f5b8dae67bc85cf39e81 100644 (file)
@@ -1,36 +1,36 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2012 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.browsing.ui.swt.widgets;\r
-\r
-import org.simantics.browsing.ui.swt.widgets.impl.ReadFactoryImpl;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.variable.Variable;\r
-import org.simantics.db.layer0.variable.Variables;\r
-\r
-\r
-public class ResourceVariableFactory extends ReadFactoryImpl<Resource, Variable> {\r
-\r
-       @Override\r
-       public Object getIdentity(Object inputContents) {\r
-               return inputContents;\r
-       }\r
-       \r
-       @Override\r
-       public Variable perform(ReadGraph graph, Resource input) throws DatabaseException {\r
-               \r
-               return Variables.getPossibleVariable(graph, input);\r
-               \r
-       }\r
-       \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 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.browsing.ui.swt.widgets;
+
+import org.simantics.browsing.ui.swt.widgets.impl.ReadFactoryImpl;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.Variable;
+import org.simantics.db.layer0.variable.Variables;
+
+
+public class ResourceVariableFactory extends ReadFactoryImpl<Resource, Variable> {
+
+       @Override
+       public Object getIdentity(Object inputContents) {
+               return inputContents;
+       }
+       
+       @Override
+       public Variable perform(ReadGraph graph, Resource input) throws DatabaseException {
+               
+               return Variables.getPossibleVariable(graph, input);
+               
+       }
+       
+}