void () { ToggleExcludedStateAction toggleExcludedAction = new ToggleExcludedStateAction(myTree, this); myEditingActionsGroup.add(toggleExcludedAction); toggleExcludedAction.registerCustomShortcutSet(new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_MASK)), myTree); }