]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.commands/src/org/simantics/scl/commands/Command.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.commands / src / org / simantics / scl / commands / Command.java
index 4ea05bc072293c5a1d001a07c54bb825ad6a078c..bc35f645e46d82b33334f96f6e5c952c11d911e7 100644 (file)
@@ -1,31 +1,31 @@
-package org.simantics.scl.commands;\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
-\r
-/**\r
- * Command object represents a UI-operation that makes changes to the database. \r
- * \r
- * @author Hannu Niemistö\r
- */\r
-public interface Command {\r
-    /**\r
-     * Checks that parameter values satisfy conditions needed for execution of the command.\r
-     * It is not necessary to give all the parameters that are given to commit-method. In that\r
-     * case this function makes just a partial checking of the given parameters.\r
-     */\r
-    boolean check(RequestProcessor processor, Resource model, Object ... parameters) throws DatabaseException;\r
-    \r
-    /**\r
-     * Tries to execute the command.\r
-     */\r
-    Object execute(RequestProcessor processor, Resource model, Object ... parameters) throws DatabaseException;\r
-    \r
-    /**\r
-     * Tries to execute the command asynchronously.\r
-     */\r
-    void asyncExecute(RequestProcessor processor, Resource model, Object[] parameters,\r
-            Procedure<Object> procedure);\r
-}\r
+package org.simantics.scl.commands;
+
+import org.simantics.db.RequestProcessor;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.procedure.Procedure;
+
+/**
+ * Command object represents a UI-operation that makes changes to the database. 
+ * 
+ * @author Hannu Niemist&ouml;
+ */
+public interface Command {
+    /**
+     * Checks that parameter values satisfy conditions needed for execution of the command.
+     * It is not necessary to give all the parameters that are given to commit-method. In that
+     * case this function makes just a partial checking of the given parameters.
+     */
+    boolean check(RequestProcessor processor, Resource model, Object ... parameters) throws DatabaseException;
+    
+    /**
+     * Tries to execute the command.
+     */
+    Object execute(RequestProcessor processor, Resource model, Object ... parameters) throws DatabaseException;
+    
+    /**
+     * Tries to execute the command asynchronously.
+     */
+    void asyncExecute(RequestProcessor processor, Resource model, Object[] parameters,
+            Procedure<Object> procedure);
+}