[jbosstools-commits] JBoss Tools SVN: r41683 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Jun 4 11:21:25 EDT 2012


Author: ljelinko
Date: 2012-06-04 11:21:22 -0400 (Mon, 04 Jun 2012)
New Revision: 41683

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
Log:
Closing of welcome screen did not work on Maven. Closing and opening java perspective instead.

Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java	2012-06-04 14:29:35 UTC (rev 41682)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java	2012-06-04 15:21:22 UTC (rev 41683)
@@ -31,7 +31,6 @@
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
 import org.jboss.tools.ui.bot.ext.gen.ActionItem;
 import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
-import org.jboss.tools.ui.bot.ext.logging.WidgetsLogger;
 import org.jboss.tools.ui.bot.ext.types.IDELabel;
 import org.jboss.tools.ui.bot.ext.types.IDELabel.PreferencesDialog;
 import org.jboss.tools.ui.bot.ext.types.ViewType;
@@ -559,10 +558,13 @@
       // do nothing there is no Atlassian Connector installed
     }
     
+    // Get rid of welcome screen. Simple close did not work when run in maven
     try {
-    	bot.cTabItem("Welcome").close();
+    	bot.menu("Window").menu("Close Perspective").click();
+    	SWTBotFactory.getOpen().perspective(ActionItem.Perspective.JAVA.LABEL);
     } catch (WidgetNotFoundException e){
     	// ok, Welcome screen not present
+    	log.info("Welcome window not present");
     }
   }
 	/**



More information about the jbosstools-commits mailing list