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;
Show replies by date