]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.server/src/org/simantics/document/server/IEventCommand.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / IEventCommand.java
index 5e678d1783a4fc98b48c247456005160a4126948..c10dafc2dc075ef1e4c5b340d396650878e93811 100644 (file)
@@ -1,11 +1,25 @@
-package org.simantics.document.server;\r
-\r
-public interface IEventCommand {\r
-    \r
-    public void setNext(IEventCommand command);\r
-    public IEventCommand getNext();    \r
-    public void handleCommand();\r
-    public void commandSuccess();\r
-    public void commandError(String errorMessage);\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2019 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:
+ *     Semantum Oy - initial API and implementation
+ *******************************************************************************/
+package org.simantics.document.server;
+
+import org.simantics.document.server.io.CommandContext;
+import org.simantics.document.server.io.CommandContextMutable;
+
+public interface IEventCommand {
+    
+    public void setNext(IEventCommand command);
+    public IEventCommand getNext();    
+    public CommandContext handleCommand(CommandContextMutable context);
+    public CommandContext commandSuccess(CommandContextMutable context);
+    public void commandError(String errorMessage);
+
+}