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

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

Introduction

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

Prototype

String GROUP_EDITOR_POPUP

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

Click Source Link

Usage

From source file:com.intellij.ide.ui.customization.CustomActionsSchema.java

License:Apache License

public CustomActionsSchema() {
    myIdToNameList.add(new Pair(IdeActions.GROUP_MAIN_MENU, ActionsTreeUtil.MAIN_MENU_TITLE));
    myIdToNameList.add(new Pair(IdeActions.GROUP_MAIN_TOOLBAR, ActionsTreeUtil.MAIN_TOOLBAR));
    myIdToNameList.add(new Pair(IdeActions.GROUP_EDITOR_POPUP, ActionsTreeUtil.EDITOR_POPUP));
    myIdToNameList.add(new Pair(IdeActions.GROUP_EDITOR_GUTTER, "Editor Gutter Popup Menu"));
    myIdToNameList.add(new Pair(IdeActions.GROUP_EDITOR_TAB_POPUP, ActionsTreeUtil.EDITOR_TAB_POPUP));
    myIdToNameList.add(new Pair(IdeActions.GROUP_PROJECT_VIEW_POPUP, ActionsTreeUtil.PROJECT_VIEW_POPUP));
    myIdToNameList.add(new Pair(IdeActions.GROUP_SCOPE_VIEW_POPUP, "Scope View Popup Menu"));
    myIdToNameList.add(new Pair(IdeActions.GROUP_FAVORITES_VIEW_POPUP, ActionsTreeUtil.FAVORITES_POPUP));
    myIdToNameList.add(new Pair(IdeActions.GROUP_COMMANDER_POPUP, ActionsTreeUtil.COMMANDER_POPUP));
    myIdToNameList.add(new Pair(IdeActions.GROUP_J2EE_VIEW_POPUP, ActionsTreeUtil.J2EE_POPUP));
    myIdToNameList.add(new Pair(IdeActions.GROUP_NAVBAR_POPUP, "Navigation Bar"));
    myIdToNameList.add(new Pair("NavBarToolBar", "Navigation Bar Toolbar"));

    CustomizableActionGroupProvider.CustomizableActionGroupRegistrar registrar = new CustomizableActionGroupProvider.CustomizableActionGroupRegistrar() {
        @Override//from  w  w w  .  j ava  2s .com
        public void addCustomizableActionGroup(@NotNull String groupId, @NotNull String groupTitle) {
            myIdToNameList.add(new Pair(groupId, groupTitle));
        }
    };
    for (CustomizableActionGroupProvider provider : CustomizableActionGroupProvider.EP_NAME.getExtensions()) {
        provider.registerGroups(registrar);
    }
}

From source file:com.mediaworx.intellij.opencmsplugin.OpenCmsPlugin.java

License:Open Source License

/**
 * Creates and registers the OpenCms menu for the editor popup as an action group
 *//*from   ww  w.ja v a2s  .  co  m*/
private void registerEditorPopupMenu() {
    OpenCmsEditorPopupMenu openCmsEditorPopupMenu = (OpenCmsEditorPopupMenu) actionManager
            .getAction(EDITOR_POPUP_MENU_ID);
    if (openCmsEditorPopupMenu == null) {
        DefaultActionGroup editorPopup = (DefaultActionGroup) actionManager
                .getAction(IdeActions.GROUP_EDITOR_POPUP);
        openCmsEditorPopupMenu = new OpenCmsEditorPopupMenu(this);
        addAction(editorPopup, EDITOR_POPUP_MENU_ID, openCmsEditorPopupMenu, "_OpenCms", MENU_ICON,
                new Constraints(Anchor.AFTER, "ChangeFileEncodingAction"));
        editorPopup.addAction(Separator.getInstance(), new Constraints(Anchor.BEFORE, EDITOR_POPUP_MENU_ID));
    }
}