1 package org.simantics.document.swt.core.base;
\r
3 import org.simantics.document.server.IEventCommand;
\r
4 import org.simantics.document.swt.core.SWTDocument;
\r
6 public abstract class AbstractEventCommand implements IEventCommand {
\r
8 protected IEventCommand next;
\r
9 protected SWTDocument document;
\r
11 public AbstractEventCommand(SWTDocument document) {
\r
12 this.document = document;
\r
16 public void setNext(IEventCommand next) {
\r
21 public IEventCommand getNext() {
\r
26 public void commandSuccess() {
\r
28 next.handleCommand();
\r
32 public void commandError(String errorMessage) {
\r
33 System.err.println(this + " failed: " + errorMessage);
\r