[jbosstools-commits] JBoss Tools SVN: r41301 - trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed May 23 11:27:05 EDT 2012


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;
+		}
+	}
+	
 }



More information about the jbosstools-commits mailing list