Author: jpeterka
Date: 2010-09-21 04:53:26 -0400 (Tue, 21 Sep 2010)
New Revision: 25045
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
Log:
#getJBTVersion added
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-09-21
07:36:57 UTC (rev 25044)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java 2010-09-21
08:53:26 UTC (rev 25045)
@@ -14,6 +14,7 @@
import static org.jboss.tools.ui.bot.ext.SWTTestExt.eclipse;
import org.apache.log4j.Logger;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.SWTBot;
@@ -28,6 +29,7 @@
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.ui.bot.ext.types.ViewType;
import org.jboss.tools.ui.bot.ext.types.IDELabel.PreferencesDialog;
+import org.osgi.framework.Version;
/**
* Provides JBoss Tools common operations based on SWTBot element operations
* @author Vladimir Pakan
@@ -70,6 +72,13 @@
}
/**
+ * Returns JBT version (taken from version of org.jboss.tools.common plugin version)
+ * @return
+ */
+ public Version getJBTVersion() {
+ return Platform.getBundle("org.jboss.tools.common").getVersion();
+ }
+ /**
* Returns true when in Web Page of Wizard is defined at least one Server Runtime
Instance
* @param bot
* @return
Show replies by date