bot.waitWhile(ConditionHelpers.treeItemHasChildren(tracesFolder));
}
public static void clearExperimentFolder(SWTWorkbenchBot bot, String projectName) {
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
TmfProjectElement tmfProject = TmfProjectRegistry.getProject(project, false);
<BUG>TmfExperimentFolder expFolder = tmfProject.getExperimentsFolder();
expFolder.getExperiments().forEach(experiment -> {</BUG>
IResource resource = experiment.getResource();
try {
experiment.closeEditors();

bot.waitWhile(ConditionHelpers.treeItemHasChildren(tracesFolder));
}
public static void clearExperimentFolder(SWTWorkbenchBot bot, String projectName) {
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
TmfProjectElement tmfProject = TmfProjectRegistry.getProject(project, false);
TmfExperimentFolder expFolder = tmfProject.getExperimentsFolder();
if (expFolder == null) {
return;
}
expFolder.getExperiments().forEach(experiment -> {
IResource resource = experiment.getResource();
try {
experiment.closeEditors();
