*/
protected SWTBotMenu contextMenu(final Control control, final String text) {
final Matcher<?> matcher = allOf(instanceOf(MenuItem.class), withMnemonic(text));
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 {