use of com.intellij.openapi.actionSystem.ActionButtonComponent in project intellij-community by JetBrains.
the class VcsLogGearActionGroup method actionPerformed.
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
DefaultActionGroup group = new DefaultActionGroup(ActionManager.getInstance().getAction(myActionGroup));
ListPopup popup = JBPopupFactory.getInstance().createActionGroupPopup(null, group, e.getDataContext(), JBPopupFactory.ActionSelectionAid.MNEMONICS, true, ToolWindowContentUi.POPUP_PLACE);
Component component = e.getInputEvent().getComponent();
if (component instanceof ActionButtonComponent) {
popup.showUnderneathOf(component);
} else {
popup.showInCenterOf(component);
}
}
Aggregations