org.eclipse.swtbot.eclipse.gef.finder.widgets
Class SWTBotGefContextMenu
java.lang.Object
org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<Control>
org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefContextMenu
public class SWTBotGefContextMenu
- extends AbstractSWTBot<Control>
a context menu implementation that finds the menu and invokes it in one UIRunnable so as to avoid the
disposed-before-clicked issue that occurs within Eclipse.
- Author:
- David Green
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
absoluteLocation, assertEnabled, asyncExec, backgroundColor, click, clickXY, contextMenu, contextMenu, createEvent, createMouseEvent, createSelectionEvent, doubleClickXY, foregroundColor, getId, getText, getToolTipText, hasStyle, isActive, isEnabled, isEnabledInternal, isVisible, keyboard, notify, notify, notify, pressShortcut, pressShortcut, pressShortcut, rightClick, rightClick, setFocus, sleep, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, toString, traverse, waitForEnabled |
SWTBotGefContextMenu
public SWTBotGefContextMenu(Control control,
String text)
click
public SWTBotGefContextMenu click()
throws WidgetNotFoundException
- Description copied from class:
AbstractSWTBot
- Clicks on this widget.
- Overrides:
click
in class AbstractSWTBot<Control>
- Returns:
- itself.
- Throws:
WidgetNotFoundException
isEnabled
protected boolean isEnabled(Widget widget)