]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.commands/src/org/simantics/scl/commands/Commands.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.commands / src / org / simantics / scl / commands / Commands.java
index 10426802ac061fc4f4ca8e50fc93003a64c45a04..ea20626d7b7f498d3a2ae4919c64425e1e441dc2 100644 (file)
@@ -1,26 +1,26 @@
-package org.simantics.scl.commands;\r
-\r
-import java.util.concurrent.ConcurrentHashMap;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.scl.commands.internal.CommandImpl;\r
-\r
-\r
-public class Commands {\r
-    private static final ConcurrentHashMap<String, Command> COMMAND_CACHE = \r
-            new ConcurrentHashMap<String, Command>();\r
-\r
-    /**\r
-     * Returns a command object of given type. This method always succeeds,\r
-     * but may return a command object whose check-method always returns fail\r
-     * and commit will throw an exception.\r
-     */\r
-    public static Command get(ReadGraph graph, String name) {\r
-        Command command = COMMAND_CACHE.get(name);\r
-        if(command == null) {\r
-            command = CommandImpl.create(graph, name);\r
-            COMMAND_CACHE.put(name, command);\r
-        }\r
-        return command;\r
-    }\r
-}\r
+package org.simantics.scl.commands;
+
+import java.util.concurrent.ConcurrentHashMap;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.scl.commands.internal.CommandImpl;
+
+
+public class Commands {
+    private static final ConcurrentHashMap<String, Command> COMMAND_CACHE = 
+            new ConcurrentHashMap<String, Command>();
+
+    /**
+     * Returns a command object of given type. This method always succeeds,
+     * but may return a command object whose check-method always returns fail
+     * and commit will throw an exception.
+     */
+    public static Command get(ReadGraph graph, String name) {
+        Command command = COMMAND_CACHE.get(name);
+        if(command == null) {
+            command = CommandImpl.create(graph, name);
+            COMMAND_CACHE.put(name, command);
+        }
+        return command;
+    }
+}