X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.utils%2Fsrc%2Forg%2Fsimantics%2Futils%2FIOperation.java;h=91a3cf487a6d4ebfdab139e7449a3f213c1637e9;hb=HEAD;hp=1ffcc348535c8d7fad92f8f55de769d782675660;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.utils/src/org/simantics/utils/IOperation.java b/bundles/org.simantics.utils/src/org/simantics/utils/IOperation.java index 1ffcc3485..91a3cf487 100644 --- a/bundles/org.simantics.utils/src/org/simantics/utils/IOperation.java +++ b/bundles/org.simantics.utils/src/org/simantics/utils/IOperation.java @@ -1,29 +1,29 @@ -package org.simantics.utils; - -/** - * An asynchronous operation returning some result. - * - * @author Hannu Niemistö - */ -public interface IOperation { - /** - * Waits that operation is completed. Either returns the - * result or throws an exception if the operation fails. - * If operation has already been completed when the method is called, - * returns immediately. - */ - Result waitFor() throws E; - - /** - * Tells whether the operation is already completed. - */ - boolean isDone(); - - /** - * Adds a listener that is notified when the operation - * is completed. If the operation has already been completed - * when the method is called, calls the listener immediately - * (but asynchronously). - */ - void addListener(IOperationListener listener); +package org.simantics.utils; + +/** + * An asynchronous operation returning some result. + * + * @author Hannu Niemistö + */ +public interface IOperation { + /** + * Waits that operation is completed. Either returns the + * result or throws an exception if the operation fails. + * If operation has already been completed when the method is called, + * returns immediately. + */ + Result waitFor() throws E; + + /** + * Tells whether the operation is already completed. + */ + boolean isDone(); + + /** + * Adds a listener that is notified when the operation + * is completed. If the operation has already been completed + * when the method is called, calls the listener immediately + * (but asynchronously). + */ + void addListener(IOperationListener listener); } \ No newline at end of file