registerCustomShortcutSet(actionGroup.getShortcutSet(), myTree);
}
public void actionPerformed(AnActionEvent e) {
final JBPopupFactory popupFactory = JBPopupFactory.getInstance();
final ListPopupStep step = popupFactory.createActionsStep(myActionGroup, e.getDataContext(), false, false,
myActionGroup.getTemplatePresentation().getText(), myTree, true,
myPreselection != null ? myPreselection.getDefaultIndex() : 0, true);
final ListPopup listPopup = popupFactory.createListPopup(step);
listPopup.setHandleAutoSelectionBeforeShow(true);
listPopup.showUnderneathOf(myNorthPanel);