]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.server/src/org/simantics/document/server/IEventCommand.java
Improvements to modelled SWT documents
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / IEventCommand.java
index b971fef4c6b6ca8540d8cc257c7166db1d0c7f04..c10dafc2dc075ef1e4c5b340d396650878e93811 100644 (file)
@@ -1,11 +1,25 @@
+/*******************************************************************************
+ * 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 void handleCommand();
-    public void commandSuccess();
+    public CommandContext handleCommand(CommandContextMutable context);
+    public CommandContext commandSuccess(CommandContextMutable context);
     public void commandError(String errorMessage);
 
 }