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;
}
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;
}
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;
}
Aggregations