Search in sources :

Example 1 with ToggleSourcesStateAction

use of com.intellij.openapi.roots.ui.configuration.actions.ToggleSourcesStateAction in project intellij-community by JetBrains.

the class ContentEntryTreeEditor method createEditingActions.

protected void createEditingActions() {
    for (final ModuleSourceRootEditHandler<?> editor : myEditHandlers) {
        ToggleSourcesStateAction action = new ToggleSourcesStateAction(myTree, this, editor);
        CustomShortcutSet shortcutSet = editor.getMarkRootShortcutSet();
        if (shortcutSet != null) {
            action.registerCustomShortcutSet(shortcutSet, myTree);
        }
        myEditingActionsGroup.add(action);
    }
    setupExcludedAction();
}
Also used : CustomShortcutSet(com.intellij.openapi.actionSystem.CustomShortcutSet) ToggleSourcesStateAction(com.intellij.openapi.roots.ui.configuration.actions.ToggleSourcesStateAction)

Aggregations

CustomShortcutSet (com.intellij.openapi.actionSystem.CustomShortcutSet)1 ToggleSourcesStateAction (com.intellij.openapi.roots.ui.configuration.actions.ToggleSourcesStateAction)1