Author: jjankovi
Date: 2012-03-21 09:13:45 -0400 (Wed, 21 Mar 2012)
New Revision: 39698
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/QuickFixHelper.java
Log:
Fixing getProblems method to initialy show Problems view
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/QuickFixHelper.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/QuickFixHelper.java 2012-03-21
13:12:48 UTC (rev 39697)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/QuickFixHelper.java 2012-03-21
13:13:45 UTC (rev 39698)
@@ -14,6 +14,8 @@
import org.jboss.tools.cdi.bot.test.CDIBase;
import org.jboss.tools.cdi.bot.test.CDIConstants;
import org.jboss.tools.cdi.bot.test.annotations.ProblemsType;
+import org.jboss.tools.ui.bot.ext.SWTEclipseExt;
+import org.jboss.tools.ui.bot.ext.types.ViewType;
import org.jboss.tools.ui.bot.ext.view.ProblemsView;
public class QuickFixHelper extends CDIBase {
@@ -32,6 +34,7 @@
* @return array of problems of given type
*/
public SWTBotTreeItem[] getProblems(ProblemsType problemType, String projectName) {
+ SWTEclipseExt.showView(bot,ViewType.PROBLEMS);
SWTBotTreeItem[] problemsTree = null;
if (problemType == ProblemsType.WARNINGS) {
problemsTree = ProblemsView.getFilteredWarningsTreeItems(bot, null, "/"