[jbosstools-commits] JBoss Tools SVN: r43830 - 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
Wed Sep 19 09:48:37 EDT 2012


Author: ljelinko
Date: 2012-09-19 09:48:36 -0400 (Wed, 19 Sep 2012)
New Revision: 43830

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/RequirementAwareSuite.java
Log:
Trying to fix issue with headless awt toolkit on mac with jdk 1.7

Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/RequirementAwareSuite.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/RequirementAwareSuite.java	2012-09-19 13:39:13 UTC (rev 43829)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/RequirementAwareSuite.java	2012-09-19 13:48:36 UTC (rev 43830)
@@ -197,6 +197,11 @@
 		  if (System.getProperty("swt.bot.test.record.screencast","false").equalsIgnoreCase("true")){
 		    RequirementAwareSuite.startScreenRecorder(getTestClass().getJavaClass().getSimpleName());
 		  }
+		  
+		  if (SWTJBTExt.isRunningOnMacOs() && "1.7".equals(System.getProperty("java.specification.version"))){
+			  System.setProperty("awt.toolkit", "sun.lwawt.macosx.LWCToolkit");
+		  }
+		  
 		  if (RequirementAwareSuite.runManageBlockingWindow){
 		    SWTJBTExt.manageBlockingWidows(false, false);
 		    RequirementAwareSuite.runManageBlockingWindow = false;



More information about the jbosstools-commits mailing list