X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.document.swt.core%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fswt%2Fcore%2Fbase%2FAbstractEventCommand.java;fp=bundles%2Forg.simantics.document.swt.core%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fswt%2Fcore%2Fbase%2FAbstractEventCommand.java;h=3bd0364e7e7c19a27e7661b4bf299d9797a6c47a;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=fb11a8aea14d0feeb859a1a0e7dbdd5a11b259f8;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/base/AbstractEventCommand.java b/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/base/AbstractEventCommand.java index fb11a8aea..3bd0364e7 100644 --- a/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/base/AbstractEventCommand.java +++ b/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/base/AbstractEventCommand.java @@ -1,36 +1,36 @@ -package org.simantics.document.swt.core.base; - -import org.simantics.document.server.IEventCommand; -import org.simantics.document.swt.core.SWTDocument; - -public abstract class AbstractEventCommand implements IEventCommand { - - protected IEventCommand next; - protected SWTDocument document; - - public AbstractEventCommand(SWTDocument document) { - this.document = document; - } - - @Override - public void setNext(IEventCommand next) { - this.next = next; - } - - @Override - public IEventCommand getNext() { - return this.next; - } - - @Override - public void commandSuccess() { - if(next != null) - next.handleCommand(); - } - - @Override - public void commandError(String errorMessage) { - System.err.println(this + " failed: " + errorMessage); - } - -} +package org.simantics.document.swt.core.base; + +import org.simantics.document.server.IEventCommand; +import org.simantics.document.swt.core.SWTDocument; + +public abstract class AbstractEventCommand implements IEventCommand { + + protected IEventCommand next; + protected SWTDocument document; + + public AbstractEventCommand(SWTDocument document) { + this.document = document; + } + + @Override + public void setNext(IEventCommand next) { + this.next = next; + } + + @Override + public IEventCommand getNext() { + return this.next; + } + + @Override + public void commandSuccess() { + if(next != null) + next.handleCommand(); + } + + @Override + public void commandError(String errorMessage) { + System.err.println(this + " failed: " + errorMessage); + } + +}