void (final MouseEvent e) { if (e.getClickCount() != 1 || !e.isPopupTrigger() || PopupUtil.getPopupContainerFor(this) != null) return; if (e.getX() < 0 || e.getX() >= e.getComponent().getWidth() || e.getY() < 0 || e.getY() >= e.getComponent().getHeight()) return; String place = myTabs.getPopupPlace(); place = place != null ? place : ActionPlaces.UNKNOWN; myTabs.setPopupInfo(myInfo); final DefaultActionGroup toShow = new DefaultActionGroup(); if (myTabs.getPopupGroup() != null) { toShow.addAll(myTabs.getPopupGroup()); toShow.addSeparator(); } JBTabsImpl tabs = (JBTabsImpl)JBTabsEx.NAVIGATION_ACTIONS_KEY.getData(DataManager.getInstance().getDataContext(e.getComponent(), e.getX(), e.getY())); if (tabs == myTabs && myTabs.getAddNavigationGroup()) { toShow.addAll(myTabs.getNavigationActions()); } if (toShow.getChildrenCount() == 0) return; myTabs.setActivePopup(ActionManager.getInstance().createActionPopupMenu(place, toShow).getComponent()); myTabs.getActivePopup().addPopupMenuListener(myTabs.getPopupListener()); myTabs.getActivePopup().addPopupMenuListener(myTabs); JBPopupMenu.showByEvent(e, myTabs.getActivePopup()); }