org.eclipse.swtbot.eclipse.finder.finders
Class ViewMenuFinder
java.lang.Object
org.eclipse.swtbot.eclipse.finder.finders.ViewMenuFinder
public class ViewMenuFinder
- extends Object
Finds the menu items within a view.
- Since:
- 1.2
- Version:
- $Id$
- Author:
- @author Stephen Paulin <paulin [at] spextreme [dot] com>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewMenuFinder
public ViewMenuFinder()
- Creates a MenuFinder.
findMenus
public List<SWTBotViewMenu> findMenus(IViewReference view,
Matcher<?> matcher,
boolean recursive)
- Gets a list of all menus within the view.
- Parameters:
view
- the view to probe for menus.matcher
- the matcher that can match menus and menu items.recursive
- if set to true
, will find sub-menus as well.
- Returns:
- The list of menus (IContributionItems) that match the matcher.
- Since:
- 2.0