コード例 #1
0
  private void registerFileChooserShortcut(
      @NonNls final String baseActionId, @NonNls final String fileChooserActionId) {
    final JTree tree = myFileSystemTree.getTree();
    final AnAction syncAction = ActionManager.getInstance().getAction(fileChooserActionId);

    AnAction original = ActionManager.getInstance().getAction(baseActionId);
    syncAction.registerCustomShortcutSet(original.getShortcutSet(), tree, myDisposable);
  }
コード例 #2
0
 private void registerTreeActionShortcut(@NonNls final String actionId) {
   final JTree tree = myFileSystemTree.getTree();
   final AnAction action = ActionManager.getInstance().getAction(actionId);
   action.registerCustomShortcutSet(action.getShortcutSet(), tree, myDisposable);
 }