]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.services/src/org/simantics/db/services/AdaptionServiceInitializer.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.services / src / org / simantics / db / services / AdaptionServiceInitializer.java
index 0ffb8714f32e5194a66c263b6cd5d7f791360cea..e5e1259e81b0a81d68520154c4b81679c807d33e 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.services;\r
-\r
-import org.eclipse.core.runtime.IStatus;\r
-import org.eclipse.core.runtime.Status;\r
-import org.simantics.db.Session;\r
-import org.simantics.db.adaption.AdaptionService;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.services.adaption.AdapterRegistry2;\r
-import org.simantics.db.services.adaption.AdaptionService2;\r
-import org.simantics.db.services.internal.Activator;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class AdaptionServiceInitializer implements ServiceInitializer {\r
-\r
-    public IStatus initialize(final Session s) {\r
-        AdaptionService2 service = new AdaptionService2();\r
-        s.registerService(AdaptionService.class, service);\r
-        try {\r
-               AdapterRegistry2 registry = new AdapterRegistry2();\r
-               registry.initialize(Activator.getDefault().getContext());\r
-            registry.updateAdaptionService(s, service);\r
-            return Status.OK_STATUS;\r
-        } catch (DatabaseException e) {\r
-            IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, "AdaptionRegistry2 instantiation failed, see exception for details.", e);\r
-            return status;\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.services;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.simantics.db.Session;
+import org.simantics.db.adaption.AdaptionService;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.services.adaption.AdapterRegistry2;
+import org.simantics.db.services.adaption.AdaptionService2;
+import org.simantics.db.services.internal.Activator;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class AdaptionServiceInitializer implements ServiceInitializer {
+
+    public IStatus initialize(final Session s) {
+        AdaptionService2 service = new AdaptionService2();
+        s.registerService(AdaptionService.class, service);
+        try {
+               AdapterRegistry2 registry = new AdapterRegistry2();
+               registry.initialize(Activator.getDefault().getContext());
+            registry.updateAdaptionService(s, service);
+            return Status.OK_STATUS;
+        } catch (DatabaseException e) {
+            IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, "AdaptionRegistry2 instantiation failed, see exception for details.", e);
+            return status;
+        }
+    }
+
 }
\ No newline at end of file