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

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

Introduction

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

Prototype

String GROUP_MAIN_TOOLBAR

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

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 ww  w  .j  a v a  2 s  . c  o  m
        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.microsoft.intellij.AzureActionsComponent.java

License:Open Source License

public void initComponent() {
    if (!AzurePlugin.IS_ANDROID_STUDIO) {
        ActionManager am = ActionManager.getInstance();
        DefaultActionGroup toolbarGroup = (DefaultActionGroup) am.getAction(IdeActions.GROUP_MAIN_TOOLBAR);
        toolbarGroup.addAll((DefaultActionGroup) am.getAction("AzureToolbarGroup"));
        DefaultActionGroup popupGroup = (DefaultActionGroup) am.getAction(IdeActions.GROUP_PROJECT_VIEW_POPUP);
        popupGroup.add(am.getAction("AzurePopupGroup"));
    }//from   w  ww  .  j a v a2  s .  c  o  m
}

From source file:com.microsoftopentechnologies.intellij.AzureActionsComponent.java

License:Apache License

public void initComponent() {
    if (!AzurePlugin.IS_ANDROID_STUDIO && AzurePlugin.IS_WINDOWS) {
        ActionManager am = ActionManager.getInstance();
        DefaultActionGroup toolbarGroup = (DefaultActionGroup) am.getAction(IdeActions.GROUP_MAIN_TOOLBAR);
        toolbarGroup.addAll((DefaultActionGroup) am.getAction("AzureToolbarGroup"));
        DefaultActionGroup popupGroup = (DefaultActionGroup) am.getAction(IdeActions.GROUP_PROJECT_VIEW_POPUP);
        popupGroup.add(am.getAction("AzurePopupGroup"));
    }//from   w ww.j  a  v  a 2 s .  co m
}