*/
public List<SWTBotViewMenu> findMenus(final IViewReference view, final Matcher<?> matcher, final boolean recursive) {
return UIThreadRunnable.syncExec(new ListResult<SWTBotViewMenu>() {
public List<SWTBotViewMenu> run() {
ViewPane viewPane = (ViewPane) ((WorkbenchPartReference) view).getPane();
MenuManager mgr = viewPane.getMenuManager();
List<SWTBotViewMenu> l = new ArrayList<SWTBotViewMenu>();
l.addAll(getMenuItemsInternal(mgr.getItems(), matcher, recursive));
return l;