X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.simulation%2Fsrc%2Forg%2Fsimantics%2Fsimulation%2Fmodel%2FExperimentLoadingFailed.java;fp=bundles%2Forg.simantics.simulation%2Fsrc%2Forg%2Fsimantics%2Fsimulation%2Fmodel%2FExperimentLoadingFailed.java;h=5c36ee828c0679daa1115264334b432f0059cd79;hp=4b5470067a9b1e2d7add1b9bdc830c344a5fde12;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.simulation/src/org/simantics/simulation/model/ExperimentLoadingFailed.java b/bundles/org.simantics.simulation/src/org/simantics/simulation/model/ExperimentLoadingFailed.java index 4b5470067..5c36ee828 100644 --- a/bundles/org.simantics.simulation/src/org/simantics/simulation/model/ExperimentLoadingFailed.java +++ b/bundles/org.simantics.simulation/src/org/simantics/simulation/model/ExperimentLoadingFailed.java @@ -1,58 +1,58 @@ -/******************************************************************************* - * 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.simulation.model; - -/** - * Used in - * {@link IModel#loadExperiment(org.simantics.db.ReadGraph, org.simantics.db.Resource, org.simantics.simulation.project.IExperimentActivationListener)} - * to indicate that experiment activation has failed due to an error that should - * be shown to the user and logged. - * - *

- * It is also possible to provide a {@link Runnable} action through - * {@link #ExperimentLoadingFailed(String, Runnable)} that will be executed - * after showing the error to the user. - * - * @author Tuukka Lehtonen - */ -public class ExperimentLoadingFailed extends Exception { - - private static final long serialVersionUID = -1465266288034655364L; - - private Runnable helperAction; - - public ExperimentLoadingFailed() { - super(); - } - - public ExperimentLoadingFailed(String arg0, Throwable arg1) { - super(arg0, arg1); - } - - public ExperimentLoadingFailed(String arg0) { - super(arg0); - } - - public ExperimentLoadingFailed(String arg0, Runnable helperAction) { - super(arg0); - this.helperAction = helperAction; - } - - public ExperimentLoadingFailed(Throwable arg0) { - super(arg0); - } - - public Runnable getHelperAction() { - return helperAction; - } - -} +/******************************************************************************* + * 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.simulation.model; + +/** + * Used in + * {@link IModel#loadExperiment(org.simantics.db.ReadGraph, org.simantics.db.Resource, org.simantics.simulation.project.IExperimentActivationListener)} + * to indicate that experiment activation has failed due to an error that should + * be shown to the user and logged. + * + *

+ * It is also possible to provide a {@link Runnable} action through + * {@link #ExperimentLoadingFailed(String, Runnable)} that will be executed + * after showing the error to the user. + * + * @author Tuukka Lehtonen + */ +public class ExperimentLoadingFailed extends Exception { + + private static final long serialVersionUID = -1465266288034655364L; + + private Runnable helperAction; + + public ExperimentLoadingFailed() { + super(); + } + + public ExperimentLoadingFailed(String arg0, Throwable arg1) { + super(arg0, arg1); + } + + public ExperimentLoadingFailed(String arg0) { + super(arg0); + } + + public ExperimentLoadingFailed(String arg0, Runnable helperAction) { + super(arg0); + this.helperAction = helperAction; + } + + public ExperimentLoadingFailed(Throwable arg0) { + super(arg0); + } + + public Runnable getHelperAction() { + return helperAction; + } + +}