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