InlineMenuItem[] items = menuSource.getMenuItems();
if (items != null && items.length > 0) {
// load the inline menu
Monitor.getInlineMenu().loadMenu(menuSource, null);
InlineMenu inlineMenu = Monitor.getInlineMenu();
if (!inlineMenu.isVisible()) {
inlineMenu.show(mX, mY);
}
} else {
// go straight to the popup help
HoveringPopup popup = Monitor.getPopup();
PopupContentProvider content = menuSource.getPopupContent();