Search in sources :

Example 6 with KeymapGroup

use of com.intellij.openapi.keymap.KeymapGroup in project intellij-community by JetBrains.

the class Group method addGroup.

@Override
public void addGroup(KeymapGroup keymapGroup) {
    Group group = (Group) keymapGroup;
    myChildren.add(group);
    group.myParent = this;
}
Also used : KeymapGroup(com.intellij.openapi.keymap.KeymapGroup)

Example 7 with KeymapGroup

use of com.intellij.openapi.keymap.KeymapGroup in project intellij-community by JetBrains.

the class DebuggerKeymapExtension method createGroup.

public KeymapGroup createGroup(final Condition<AnAction> filtered, final Project project) {
    AnAction[] xDebuggerActions = ActionsTreeUtil.getActions("XDebugger.Actions");
    AnAction[] javaDebuggerActions = ActionsTreeUtil.getActions("JavaDebuggerActions");
    Group group = new Group(KeyMapBundle.message("debugger.actions.group.title"), AllIcons.General.Debug);
    for (AnAction action : ArrayUtil.mergeArrays(xDebuggerActions, javaDebuggerActions)) {
        ActionsTreeUtil.addAction(group, action, filtered);
    }
    return group;
}
Also used : KeymapGroup(com.intellij.openapi.keymap.KeymapGroup) Group(com.intellij.openapi.keymap.impl.ui.Group) AnAction(com.intellij.openapi.actionSystem.AnAction)

Example 8 with KeymapGroup

use of com.intellij.openapi.keymap.KeymapGroup in project intellij-community by JetBrains.

the class VcsKeymapExtension method createGroup.

public KeymapGroup createGroup(final Condition<AnAction> filtered, final Project project) {
    KeymapGroup result = KeymapGroupFactory.getInstance().createGroup(KeyMapBundle.message("version.control.group.title"));
    AnAction[] versionControlsGroups = ActionsTreeUtil.getActions("VcsGroup");
    AnAction[] keymapGroups = ActionsTreeUtil.getActions("Vcs.KeymapGroup");
    for (AnAction action : ContainerUtil.concat(versionControlsGroups, keymapGroups)) {
        ActionsTreeUtil.addAction(result, action, filtered, false);
    }
    AnAction[] generalActions = ActionsTreeUtil.getActions("VcsGeneral.KeymapGroup");
    for (AnAction action : generalActions) {
        ActionsTreeUtil.addAction(result, action, filtered, true);
    }
    if (result instanceof Group) {
        ((Group) result).normalizeSeparators();
    }
    return result;
}
Also used : KeymapGroup(com.intellij.openapi.keymap.KeymapGroup) Group(com.intellij.openapi.keymap.impl.ui.Group) KeymapGroup(com.intellij.openapi.keymap.KeymapGroup) AnAction(com.intellij.openapi.actionSystem.AnAction)

Aggregations

KeymapGroup (com.intellij.openapi.keymap.KeymapGroup)8 Group (com.intellij.openapi.keymap.impl.ui.Group)4 AnAction (com.intellij.openapi.actionSystem.AnAction)3 ActionManagerEx (com.intellij.openapi.actionSystem.ex.ActionManagerEx)2 Settings (com.intellij.openapi.options.ex.Settings)2 HashMap (com.intellij.util.containers.HashMap)2 MouseEvent (java.awt.event.MouseEvent)2 RunnerAndConfigurationSettings (com.intellij.execution.RunnerAndConfigurationSettings)1 AllIcons (com.intellij.icons.AllIcons)1 DataManager (com.intellij.ide.DataManager)1 AntBuildFile (com.intellij.lang.ant.config.AntBuildFile)1 AntConfiguration (com.intellij.lang.ant.config.AntConfiguration)1 com.intellij.openapi.actionSystem (com.intellij.openapi.actionSystem)1 ApplicationManager (com.intellij.openapi.application.ApplicationManager)1 ProjectSystemId (com.intellij.openapi.externalSystem.model.ProjectSystemId)1 TaskData (com.intellij.openapi.externalSystem.model.task.TaskData)1 ExternalSystemKeymapExtension (com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemKeymapExtension)1 SelectExternalTaskDialog (com.intellij.openapi.externalSystem.service.ui.SelectExternalTaskDialog)1 KeymapGroupFactory (com.intellij.openapi.keymap.KeymapGroupFactory)1 Hyperlink (com.intellij.openapi.keymap.impl.ui.Hyperlink)1