Example usage for com.intellij.openapi.actionSystem IdeActions GROUP_METHOD_HIERARCHY_POPUP

List of usage examples for com.intellij.openapi.actionSystem IdeActions GROUP_METHOD_HIERARCHY_POPUP

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem IdeActions GROUP_METHOD_HIERARCHY_POPUP.

Prototype

String GROUP_METHOD_HIERARCHY_POPUP

To view the source code for com.intellij.openapi.actionSystem IdeActions GROUP_METHOD_HIERARCHY_POPUP.

Click Source Link

Usage

From source file:com.intellij.ide.hierarchy.method.MethodHierarchyBrowser.java

License:Apache License

protected void createTrees(@NotNull Map<String, JTree> trees) {
    final JTree tree = createTree(false);
    ActionGroup group = (ActionGroup) ActionManager.getInstance()
            .getAction(IdeActions.GROUP_METHOD_HIERARCHY_POPUP);
    PopupHandler.installPopupHandler(tree, group, ActionPlaces.METHOD_HIERARCHY_VIEW_POPUP,
            ActionManager.getInstance());

    final BaseOnThisMethodAction baseOnThisMethodAction = new BaseOnThisMethodAction();
    baseOnThisMethodAction.registerCustomShortcutSet(
            ActionManager.getInstance().getAction(IdeActions.ACTION_METHOD_HIERARCHY).getShortcutSet(), tree);

    trees.put(METHOD_TYPE, tree);//www  .ja v  a 2s.c  o  m
}