X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.common%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fcommon%2Fprocedure%2Fwrapper%2FNoneToAsyncMultiProcedure.java;h=4ae10ac12d8a105d99a0e7b161333ded1a883579;hp=8e43e39f042f642b5cca97c5e3844430546fa154;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/wrapper/NoneToAsyncMultiProcedure.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/wrapper/NoneToAsyncMultiProcedure.java index 8e43e39f0..4ae10ac12 100644 --- a/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/wrapper/NoneToAsyncMultiProcedure.java +++ b/bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/wrapper/NoneToAsyncMultiProcedure.java @@ -1,46 +1,46 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.db.common.procedure.wrapper; - -import org.simantics.db.AsyncReadGraph; -import org.simantics.db.procedure.AsyncMultiProcedure; -import org.simantics.db.procedure.MultiProcedure; - -public class NoneToAsyncMultiProcedure implements AsyncMultiProcedure { - - final private MultiProcedure procedure; - - public NoneToAsyncMultiProcedure(MultiProcedure procedure) { - this.procedure = procedure; - } - - @Override - public void execute(AsyncReadGraph graph, final T result) { - procedure.execute(result); - } - - @Override - public void finished(AsyncReadGraph graph) { - procedure.finished(); - } - - @Override - public void exception(AsyncReadGraph graph, Throwable t) { - procedure.exception(t); - } - - @Override - public String toString() { - return "NoneToAsyncMultiProcedure -> " + procedure; - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.db.common.procedure.wrapper; + +import org.simantics.db.AsyncReadGraph; +import org.simantics.db.procedure.AsyncMultiProcedure; +import org.simantics.db.procedure.MultiProcedure; + +public class NoneToAsyncMultiProcedure implements AsyncMultiProcedure { + + final private MultiProcedure procedure; + + public NoneToAsyncMultiProcedure(MultiProcedure procedure) { + this.procedure = procedure; + } + + @Override + public void execute(AsyncReadGraph graph, final T result) { + procedure.execute(result); + } + + @Override + public void finished(AsyncReadGraph graph) { + procedure.finished(); + } + + @Override + public void exception(AsyncReadGraph graph, Throwable t) { + procedure.exception(t); + } + + @Override + public String toString() { + return "NoneToAsyncMultiProcedure -> " + procedure; + } + +}