import java.util.Set;\r
import java.util.concurrent.CopyOnWriteArrayList;\r
\r
+import org.eclipse.core.runtime.IStatus;\r
+import org.eclipse.core.runtime.Status;\r
import org.simantics.Simantics;\r
import org.simantics.databoard.Bindings;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.simulation.project.IExperimentActivationListener;\r
import org.simantics.simulation.project.IExperimentManager;\r
import org.simantics.structural.stubs.StructuralResource2;\r
+import org.simantics.sysdyn.Activator;\r
import org.simantics.sysdyn.SysdynResource;\r
import org.simantics.sysdyn.adapter.VariableValueSubscription;\r
import org.simantics.sysdyn.representation.Configuration;\r
exp = new OldSysdynExperiment(experiment, modelResource);\r
}\r
} else {\r
+ if (listener != null) {\r
+ listener.onMessage(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Experiment type is not supported: " + NameUtils.getSafeName(g, experiment)));\r
+ listener.onFailure(new UnsupportedOperationException("Experiment type is not supported: " + NameUtils.getSafeName(g, experiment)));\r
+ }\r
return null;\r
}\r
\r