Author: lzoubek(a)redhat.com
Date: 2010-10-13 10:09:31 -0400 (Wed, 13 Oct 2010)
New Revision: 25787
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
Log:
SWTBot ext: simplified method isJBDSRun()
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 2010-10-13
14:06:37 UTC (rev 25786)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java 2010-10-13
14:09:31 UTC (rev 25787)
@@ -14,6 +14,7 @@
import static org.jboss.tools.ui.bot.ext.SWTTestExt.eclipse;
import org.apache.log4j.Logger;
+import org.eclipse.core.runtime.IProduct;
import org.eclipse.core.runtime.Platform;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
@@ -52,25 +53,10 @@
* @return
*/
public boolean isJBDSRun (){
- return SWTJBTExt.isJBDSRun(bot);
+ IProduct prod = Platform.getProduct();
+ return prod != null;
}
- /**
- * Check if JBoss Developer Studio Is Running
- * @param bot
- * @return
- */
- public static boolean isJBDSRun (SWTWorkbenchBot bot){
- boolean jbdsIsRunning = false;
- try{
- bot.menu(IDELabel.Menu.HELP).menu(IDELabel.Menu.ABOUT_JBOSS_DEVELOPER_STUDIO);
- jbdsIsRunning = true;
- }catch (WidgetNotFoundException wnfe){
- // do nothing
- }
-
- return jbdsIsRunning;
-
- }
+
/**
* Returns JBT version (taken from version of org.jboss.tools.common plugin version)
* @return
Show replies by date