]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph.loader/src/org/simantics/scenegraph/loader/ScenegraphVariableAdapter.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scenegraph.loader / src / org / simantics / scenegraph / loader / ScenegraphVariableAdapter.java
index 2bcbe5e3a6380aaaac4937f2773275c978b85d63..3402a7ff9b6d1abb4ed03c64d013ef74603ef527 100644 (file)
@@ -1,21 +1,21 @@
-package org.simantics.scenegraph.loader;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.common.adaption.SimpleContextualAdapter;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.variable.StandardGraphChildVariable;\r
-import org.simantics.db.layer0.variable.Variable;\r
-\r
-public class ScenegraphVariableAdapter extends SimpleContextualAdapter<Variable, Variable> {\r
-\r
-       @Override\r
-       public Variable adapt(ReadGraph g, Resource source, Variable context) throws DatabaseException {\r
-               SceneGraphContext vc = ScenegraphLoaderUtils.getContext(g, context);\r
-               if(vc != null)\r
-                       return new ScenegraphVariable(context, source, null, /*context.adapt(g, SceneGraphContext.class).getRuntime()*/ null);\r
-               else\r
-                       return new StandardGraphChildVariable(context, null, source);\r
-       }\r
-\r
-}\r
+package org.simantics.scenegraph.loader;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.adaption.SimpleContextualAdapter;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.StandardGraphChildVariable;
+import org.simantics.db.layer0.variable.Variable;
+
+public class ScenegraphVariableAdapter extends SimpleContextualAdapter<Variable, Variable> {
+
+       @Override
+       public Variable adapt(ReadGraph g, Resource source, Variable context) throws DatabaseException {
+               SceneGraphContext vc = ScenegraphLoaderUtils.getContext(g, context);
+               if(vc != null)
+                       return new ScenegraphVariable(context, source, null, /*context.adapt(g, SceneGraphContext.class).getRuntime()*/ null);
+               else
+                       return new StandardGraphChildVariable(context, null, source);
+       }
+
+}