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

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

Introduction

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

Prototype

String GROUP_TYPE_HIERARCHY_POPUP

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

Click Source Link

Usage

From source file:com.intellij.ide.hierarchy.type.TypeHierarchyBrowser.java

License:Apache License

protected void createTrees(@NotNull Map<String, JTree> trees) {
    ActionGroup group = (ActionGroup) ActionManager.getInstance()
            .getAction(IdeActions.GROUP_TYPE_HIERARCHY_POPUP);
    final BaseOnThisTypeAction baseOnThisTypeAction = new BaseOnThisTypeAction();
    final JTree tree1 = createTree(true);
    PopupHandler.installPopupHandler(tree1, group, ActionPlaces.TYPE_HIERARCHY_VIEW_POPUP,
            ActionManager.getInstance());
    baseOnThisTypeAction.registerCustomShortcutSet(
            ActionManager.getInstance().getAction(IdeActions.ACTION_TYPE_HIERARCHY).getShortcutSet(), tree1);
    trees.put(TYPE_HIERARCHY_TYPE, tree1);

    final JTree tree2 = createTree(true);
    PopupHandler.installPopupHandler(tree2, group, ActionPlaces.TYPE_HIERARCHY_VIEW_POPUP,
            ActionManager.getInstance());
    baseOnThisTypeAction.registerCustomShortcutSet(
            ActionManager.getInstance().getAction(IdeActions.ACTION_TYPE_HIERARCHY).getShortcutSet(), tree2);
    trees.put(SUPERTYPES_HIERARCHY_TYPE, tree2);

    final JTree tree3 = createTree(true);
    PopupHandler.installPopupHandler(tree3, group, ActionPlaces.TYPE_HIERARCHY_VIEW_POPUP,
            ActionManager.getInstance());
    baseOnThisTypeAction.registerCustomShortcutSet(
            ActionManager.getInstance().getAction(IdeActions.ACTION_TYPE_HIERARCHY).getShortcutSet(), tree3);
    trees.put(SUBTYPES_HIERARCHY_TYPE, tree3);
}

From source file:ws.epigraph.ideaplugin.schema.features.hierarchy.SchemaHierarchyBrowser.java

License:Apache License

@Override
protected void createTrees(@NotNull Map<String, JTree> trees) {
    createTreeAndSetupCommonActions(trees, IdeActions.GROUP_TYPE_HIERARCHY_POPUP);
}