]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/CollectingModificationQueue.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / synchronization / CollectingModificationQueue.java
index 91ef3c562fcfc588d1356fbb1878b7795f6eba03..0bb36e9bfccbd4723a613463380adb8f3c56ecf8 100644 (file)
@@ -1,50 +1,50 @@
-/*******************************************************************************\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.diagram.synchronization;\r
-\r
-import java.util.ArrayDeque;\r
-import java.util.Deque;\r
-\r
-import org.simantics.utils.threads.IThreadWorkQueue;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class CollectingModificationQueue implements IModificationQueue {\r
-\r
-    private final Deque<IModification> queue = new ArrayDeque<IModification>();\r
-\r
-    @Override\r
-    public boolean offer(IModification m) {\r
-        return offer(m, null);\r
-    }\r
-\r
-    @Override\r
-    public boolean offer(IModification m, IThreadWorkQueue completionThread) {\r
-        return queue.add(m);\r
-    }\r
-\r
-    public Deque<IModification> getQueue() {\r
-        return queue;\r
-    }\r
-\r
-    @Override\r
-    public void finish() throws InterruptedException {\r
-        // Do nothing\r
-    }\r
-\r
-    @Override\r
-    public void flush() {\r
-        // Do nothing\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.diagram.synchronization;
+
+import java.util.ArrayDeque;
+import java.util.Deque;
+
+import org.simantics.utils.threads.IThreadWorkQueue;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class CollectingModificationQueue implements IModificationQueue {
+
+    private final Deque<IModification> queue = new ArrayDeque<IModification>();
+
+    @Override
+    public boolean offer(IModification m) {
+        return offer(m, null);
+    }
+
+    @Override
+    public boolean offer(IModification m, IThreadWorkQueue completionThread) {
+        return queue.add(m);
+    }
+
+    public Deque<IModification> getQueue() {
+        return queue;
+    }
+
+    @Override
+    public void finish() throws InterruptedException {
+        // Do nothing
+    }
+
+    @Override
+    public void flush() {
+        // Do nothing
+    }
+
 }
\ No newline at end of file