Author: jjankovi
Date: 2012-05-23 11:27:05 -0400 (Wed, 23 May 2012)
New Revision: 41301
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java
Log:
method for figuring out some node exists in Project Archives View
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java
===================================================================
---
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java 2012-05-23
15:26:12 UTC (rev 41300)
+++
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java 2012-05-23
15:27:05 UTC (rev 41301)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.archives.ui.bot.test.view;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.archives.ui.bot.test.context.ArchiveContextMenu;
@@ -83,4 +84,13 @@
return contextTool.editPublishSettings(tree, treeItem);
}
+ public boolean itemExists(String... path) {
+ try {
+ TreeHelper.expandNode(bot, path);
+ return true;
+ } catch (WidgetNotFoundException exc) {
+ return false;
+ }
+ }
+
}
Show replies by date