]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.simulation/src/org/simantics/simulation/model/ExperimentLoadingCancelled.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.simulation / src / org / simantics / simulation / model / ExperimentLoadingCancelled.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.simulation.model;
13
14 /**
15  * Used in
16  * {@link IModel#loadExperiment(org.simantics.db.ReadGraph, org.simantics.db.Resource, org.simantics.simulation.project.IExperimentActivationListener)}
17  * to indicate that experiment activation has been cancelled in a controlled
18  * manner and that no errors should be issued to the user.
19  * 
20  * <p>
21  * It is possible to provide a {@link Runnable} action through
22  * {@link #ExperimentLoadingCancelled(String, Runnable)} that will be executed.
23  * 
24  * @author Tuukka Lehtonen
25  */
26 public class ExperimentLoadingCancelled extends ExperimentLoadingFailed {
27
28     private static final long serialVersionUID = -1465266288034655364L;
29
30     public ExperimentLoadingCancelled() {
31         super();
32     }
33
34     public ExperimentLoadingCancelled(String arg0, Throwable arg1) {
35         super(arg0, arg1);
36     }
37
38     public ExperimentLoadingCancelled(String arg0) {
39         super(arg0);
40     }
41
42     public ExperimentLoadingCancelled(String arg0, Runnable helperAction) {
43         super(arg0, helperAction);
44     }
45
46     public ExperimentLoadingCancelled(Throwable arg0) {
47         super(arg0);
48     }
49
50 }