swtbot: Fix SWTBotUtils.selectProject() in Eclipse 4.15

In 4.15, the default Projects Presentation in the Project Explorer view
menu has been changed from Flat to Hierarchical. Force it to Flat.

Change-Id: Id24befc3d6b85b97c6b7b18a3ee19d443334ec7b
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/157981
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java
index 649efed..f79fd5d 100644
--- a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java
+++ b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2014, 2019 Ericsson
+ * Copyright (c) 2014, 2020 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -448,6 +448,9 @@
 
         // Switch to and reset Testing perspective
         switchToPerspective(TestingPerspectiveFactory.ID);
+
+        // Make sure Projects Presentation is Flat
+        bot.viewByTitle("Project Explorer").viewMenu("Projects Presentation").menu("Flat").click();
     }
 
     private static void printEnvironment() {