((IDynamicExperiment)experiment).simulate(enabled);
}
+ public static ExperimentState getExperimentState(ReadGraph graph, IExperiment experiment) throws DatabaseException {
+ return experiment.getState(graph);
+ }
+
public static void disposeExperiment(final IExperiment experiment) {
if(experiment instanceof IDynamicExperiment) {
protected IStatus run(final IProgressMonitor monitor) {
try {
experiment.shutdown(monitor);
- if (callback != null)
- callback.accept(null);
return Status.OK_STATUS;
} finally {
monitor.done();
+ if (callback != null)
+ callback.accept(null);
}
}
};
job.setProperty(IProgressConstants2.SHOW_IN_TASKBAR_ICON_PROPERTY, Boolean.TRUE);
job.setUser(true);
job.schedule();
+ } else {
+ if (callback != null)
+ callback.accept(null);
}
}