|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.finders.MenuFinder
public class MenuFinder
Finds menus matching a particular matcher.
UIThreadRunnable
Field Summary | |
---|---|
protected Display |
display
The display |
Constructor Summary | |
---|---|
MenuFinder()
Creates a MenuFinder. |
Method Summary | |
---|---|
List<MenuItem> |
findMenus(Matcher<MenuItem> matcher)
Finds a menu matching the given item in all available shells. |
List<MenuItem> |
findMenus(Menu bar,
Matcher<MenuItem> matcher,
boolean recursive)
Finds all the menus in the given menu bar matching the given matcher. |
List<MenuItem> |
findMenus(Shell[] shells,
Matcher<MenuItem> matcher,
boolean recursive)
Finds all the menus using the given matcher in the set of shells provided. |
List<MenuItem> |
findMenus(Shell shell,
Matcher<MenuItem> matcher,
boolean recursive)
Finds the menus in the given shell using the given matcher. |
protected Shell[] |
getShells()
Gets all of the shells in the current display. |
protected Menu |
menuBar(Shell shell)
Gets the menu bar in the given shell. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Display display
Constructor Detail |
---|
public MenuFinder()
Method Detail |
---|
public List<MenuItem> findMenus(Matcher<MenuItem> matcher)
matcher
- the matcher that can match menus and menu items.
public List<MenuItem> findMenus(Shell[] shells, Matcher<MenuItem> matcher, boolean recursive)
shells
- the shells 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.
public List<MenuItem> findMenus(Shell shell, Matcher<MenuItem> matcher, boolean recursive)
shell
- the shell 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.
protected Menu menuBar(Shell shell)
shell
- the shell.
Decorations.getMenuBar()
public List<MenuItem> findMenus(Menu bar, Matcher<MenuItem> matcher, boolean recursive)
bar
- the menu barmatcher
- the matcher that can match menus and menu items.recursive
- if set to true, will find sub-menus as well.
protected Shell[] getShells()
Display.getShells()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |