List of usage examples for com.intellij.openapi.actionSystem IdeActions GROUP_CALL_HIERARCHY_POPUP
String GROUP_CALL_HIERARCHY_POPUP
To view the source code for com.intellij.openapi.actionSystem IdeActions GROUP_CALL_HIERARCHY_POPUP.
Click Source Link
From source file:com.intellij.ide.hierarchy.call.CallHierarchyBrowser.java
License:Apache License
@Override protected void createTrees(@NotNull final Map<String, JTree> type2TreeMap) { ActionGroup group = (ActionGroup) ActionManager.getInstance() .getAction(IdeActions.GROUP_CALL_HIERARCHY_POPUP); final JTree tree1 = createTree(false); PopupHandler.installPopupHandler(tree1, group, ActionPlaces.CALL_HIERARCHY_VIEW_POPUP, ActionManager.getInstance()); final BaseOnThisMethodAction baseOnThisMethodAction = new BaseOnThisMethodAction(); baseOnThisMethodAction.registerCustomShortcutSet( ActionManager.getInstance().getAction(IdeActions.ACTION_CALL_HIERARCHY).getShortcutSet(), tree1); type2TreeMap.put(CALLEE_TYPE, tree1); final JTree tree2 = createTree(false); PopupHandler.installPopupHandler(tree2, group, ActionPlaces.CALL_HIERARCHY_VIEW_POPUP, ActionManager.getInstance()); baseOnThisMethodAction.registerCustomShortcutSet( ActionManager.getInstance().getAction(IdeActions.ACTION_CALL_HIERARCHY).getShortcutSet(), tree2); type2TreeMap.put(CALLER_TYPE, tree2); }
From source file:org.jetbrains.jet.plugin.hierarchy.calls.KotlinCallHierarchyBrowser.java
License:Apache License
@Override protected void createTrees(@NotNull Map<String, JTree> type2TreeMap) { ActionGroup group = (ActionGroup) ActionManager.getInstance() .getAction(IdeActions.GROUP_CALL_HIERARCHY_POPUP); JTree tree1 = createTree(false); PopupHandler.installPopupHandler(tree1, group, ActionPlaces.CALL_HIERARCHY_VIEW_POPUP, ActionManager.getInstance()); BaseOnThisMethodAction baseOnThisMethodAction = new BaseOnThisMethodAction(); baseOnThisMethodAction.registerCustomShortcutSet( ActionManager.getInstance().getAction(IdeActions.ACTION_CALL_HIERARCHY).getShortcutSet(), tree1); type2TreeMap.put(CALLEE_TYPE, tree1); JTree tree2 = createTree(false); PopupHandler.installPopupHandler(tree2, group, ActionPlaces.CALL_HIERARCHY_VIEW_POPUP, ActionManager.getInstance()); baseOnThisMethodAction.registerCustomShortcutSet( ActionManager.getInstance().getAction(IdeActions.ACTION_CALL_HIERARCHY).getShortcutSet(), tree2); type2TreeMap.put(CALLER_TYPE, tree2); }