]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/wrapper/NoneToAsyncMultiListener.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / procedure / wrapper / NoneToAsyncMultiListener.java
index 0a7da5fd2a367dae619f06e86db3f5e4cc305e8a..728bcc43d8c9e217830498d3a321cbe605412644 100644 (file)
@@ -1,51 +1,51 @@
-/*******************************************************************************\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.procedure.wrapper;\r
-\r
-import org.simantics.db.AsyncReadGraph;\r
-import org.simantics.db.procedure.AsyncMultiListener;\r
-import org.simantics.db.procedure.MultiListener;\r
-\r
-public class NoneToAsyncMultiListener<T> implements AsyncMultiListener<T> {\r
-\r
-       final private MultiListener<T> procedure;\r
-\r
-       public NoneToAsyncMultiListener(MultiListener<T> procedure) {\r
-               this.procedure = procedure;\r
-       }\r
-       \r
-       @Override\r
-       public void execute(AsyncReadGraph graph, final T result) {\r
-           procedure.execute(result);\r
-       }\r
-\r
-       @Override\r
-       public void finished(AsyncReadGraph graph) {\r
-           procedure.finished();\r
-       }\r
-\r
-       @Override\r
-       public void exception(AsyncReadGraph graph, Throwable t) {\r
-           procedure.exception(t);\r
-       }\r
-\r
-    @Override\r
-    public boolean isDisposed() {\r
-        return procedure.isDisposed();\r
-    }\r
-\r
-    @Override\r
-    public String toString() {\r
-        return "NoneToAsyncMultiListener -> " + procedure;\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.procedure.wrapper;
+
+import org.simantics.db.AsyncReadGraph;
+import org.simantics.db.procedure.AsyncMultiListener;
+import org.simantics.db.procedure.MultiListener;
+
+public class NoneToAsyncMultiListener<T> implements AsyncMultiListener<T> {
+
+       final private MultiListener<T> procedure;
+
+       public NoneToAsyncMultiListener(MultiListener<T> procedure) {
+               this.procedure = procedure;
+       }
+       
+       @Override
+       public void execute(AsyncReadGraph graph, final T result) {
+           procedure.execute(result);
+       }
+
+       @Override
+       public void finished(AsyncReadGraph graph) {
+           procedure.finished();
+       }
+
+       @Override
+       public void exception(AsyncReadGraph graph, Throwable t) {
+           procedure.exception(t);
+       }
+
+    @Override
+    public boolean isDisposed() {
+        return procedure.isDisposed();
+    }
+
+    @Override
+    public String toString() {
+        return "NoneToAsyncMultiListener -> " + procedure;
+   }
+    
+}