[jbosstools-commits] JBoss Tools SVN: r43622 - 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 12 08:51:53 EDT 2012
Author: ljelinko
Date: 2012-09-12 08:51:53 -0400 (Wed, 12 Sep 2012)
New Revision: 43622
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTOpenExt.java
Log:
debugging why shortcuts do not work on Mac with JDK 1.7
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTOpenExt.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTOpenExt.java 2012-09-12 12:22:44 UTC (rev 43621)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTOpenExt.java 2012-09-12 12:51:53 UTC (rev 43622)
@@ -143,6 +143,14 @@
* @return
*/
public SWTBot preferenceOpen(IPreference pref) {
+ log.debug("java.awt.headless: " + System.getProperty("java.awt.headless"));
+ log.debug("javaplugin.version: " + System.getProperty("javaplugin.version"));
+ log.debug("os.name: " + System.getProperty("os.name"));
+ log.debug("DISPLAY: " + System.getenv("DISPLAY"));
+ String osName = System.getProperty("os.name");
+ log.debug("Result: " + Boolean.valueOf(("Linux".equals(osName) || "SunOS".equals(osName)) &&
+ (System.getenv("DISPLAY") == null)));
+
if (SWTJBTExt.isRunningOnMacOs()){
bot.shells()[0].pressShortcut(SWT.COMMAND, ',');
}
More information about the jbosstools-commits
mailing list