]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.commands/src/org/simantics/scl/commands/internal/ErrorCommand.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.commands / src / org / simantics / scl / commands / internal / ErrorCommand.java
index 7eb7a8afcfef3330dea73a49f5b813cc49dc40fb..c977263414a1a37113de1e8c659fcc84974beb09 100644 (file)
@@ -1,34 +1,34 @@
-package org.simantics.scl.commands.internal;\r
-\r
-import org.simantics.db.RequestProcessor;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.procedure.Procedure;\r
-import org.simantics.scl.commands.Command;\r
-\r
-public class ErrorCommand implements Command {\r
-\r
-    String name;\r
-    \r
-    public ErrorCommand(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    @Override\r
-    public Object execute(RequestProcessor processor, Resource model, Object... parameters) throws DatabaseException {\r
-        throw new DatabaseException("Command " + name + " is not available.");\r
-    }\r
-\r
-    @Override\r
-    public boolean check(RequestProcessor processor, Resource model,\r
-            Object... parameters) throws DatabaseException {\r
-        return false;\r
-    }\r
-\r
-    @Override\r
-    public void asyncExecute(RequestProcessor processor, Resource model,\r
-            Object[] parameters, Procedure<Object> procedure) {\r
-        procedure.exception(new DatabaseException("Command " + name + " is not available."));\r
-    }\r
-\r
-}\r
+package org.simantics.scl.commands.internal;
+
+import org.simantics.db.RequestProcessor;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.procedure.Procedure;
+import org.simantics.scl.commands.Command;
+
+public class ErrorCommand implements Command {
+
+    String name;
+    
+    public ErrorCommand(String name) {
+        this.name = name;
+    }
+
+    @Override
+    public Object execute(RequestProcessor processor, Resource model, Object... parameters) throws DatabaseException {
+        throw new DatabaseException("Command " + name + " is not available.");
+    }
+
+    @Override
+    public boolean check(RequestProcessor processor, Resource model,
+            Object... parameters) throws DatabaseException {
+        return false;
+    }
+
+    @Override
+    public void asyncExecute(RequestProcessor processor, Resource model,
+            Object[] parameters, Procedure<Object> procedure) {
+        procedure.exception(new DatabaseException("Command " + name + " is not available."));
+    }
+
+}