protected SWTBotMenu contextMenu(final Control control, final String text) {
Matcher<MenuItem> withMnemonic = withMnemonic(text);
final Matcher<MenuItem> matcher = allOf(widgetOfType(MenuItem.class), withMnemonic);
final ContextMenuFinder menuFinder = new ContextMenuFinder(control);
new SWTBot().waitUntil(new DefaultCondition() {
public String getFailureMessage() {
return "Could not find context menu with text: " + text; //$NON-NLS-1$
}
public boolean test() throws Exception {