org.eclipse.swtbot.swt.finder.finders
Class ContextMenuFinder
java.lang.Object
org.eclipse.swtbot.swt.finder.finders.MenuFinder
org.eclipse.swtbot.swt.finder.finders.ContextMenuFinder
public class ContextMenuFinder
- extends MenuFinder
Finds context menus for a given control.
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
- See Also:
UIThreadRunnable
Constructor Summary |
ContextMenuFinder(Control control)
Constructs the context menu finder for the given control to be searched. |
Method Summary |
protected Menu |
menuBar(Shell shell)
Gets the menubar for the given shell. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextMenuFinder
public ContextMenuFinder(Control control)
- Constructs the context menu finder for the given control to be searched.
- Parameters:
control
- the control that has a context menu.
menuBar
protected Menu menuBar(Shell shell)
- Gets the menubar for the given shell.
- Overrides:
menuBar
in class MenuFinder
- Parameters:
shell
- The shell to find the menu bar for.
- Returns:
- The menu bar found.
- See Also:
MenuFinder.menuBar(org.eclipse.swt.widgets.Shell)