X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.document.server%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fserver%2FIEventCommand.java;h=5a024ec393090d58d28b7014048b5935e3580371;hb=refs%2Fheads%2Fprivate%2Fantin_tyomaa;hp=5e678d1783a4fc98b48c247456005160a4126948;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.document.server/src/org/simantics/document/server/IEventCommand.java b/bundles/org.simantics.document.server/src/org/simantics/document/server/IEventCommand.java index 5e678d178..5a024ec39 100644 --- a/bundles/org.simantics.document.server/src/org/simantics/document/server/IEventCommand.java +++ b/bundles/org.simantics.document.server/src/org/simantics/document/server/IEventCommand.java @@ -1,11 +1,14 @@ -package org.simantics.document.server; - -public interface IEventCommand { - - public void setNext(IEventCommand command); - public IEventCommand getNext(); - public void handleCommand(); - public void commandSuccess(); - public void commandError(String errorMessage); - -} +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); + +}