mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-151632 vcs: avoid rewriting ShortcutSet for global actions
follow-up 6095a02
This commit is contained in:
@@ -152,8 +152,7 @@ public class UnversionedViewDialog extends DialogWrapper {
|
||||
}
|
||||
|
||||
// special shortcut for deleting a file
|
||||
AnAction deleteAction = ActionManager.getInstance().getAction("ChangesView.DeleteUnversioned.From.Dialog");
|
||||
deleteAction.registerCustomShortcutSet(CommonShortcuts.getDelete(), myView);
|
||||
EmptyAction.registerWithShortcutSet("ChangesView.DeleteUnversioned.From.Dialog", CommonShortcuts.getDelete(), myView);
|
||||
}
|
||||
|
||||
private void refreshViewAfterActionPerformed(@NotNull final ActionGroup opActionGroup) {
|
||||
|
||||
+2
-4
@@ -217,10 +217,8 @@ public class MultipleChangeListBrowser extends ChangesBrowser {
|
||||
protected void buildToolBar(final DefaultActionGroup toolBarGroup) {
|
||||
super.buildToolBar(toolBarGroup);
|
||||
|
||||
ActionManager actionManager = ActionManager.getInstance();
|
||||
final AnAction moveAction = actionManager.getAction(IdeActions.MOVE_TO_ANOTHER_CHANGE_LIST);
|
||||
moveAction.registerCustomShortcutSet(CommonShortcuts.getMove(), myViewer);
|
||||
toolBarGroup.add(moveAction);
|
||||
EmptyAction.registerWithShortcutSet(IdeActions.MOVE_TO_ANOTHER_CHANGE_LIST, CommonShortcuts.getMove(), myViewer);
|
||||
toolBarGroup.add(ActionManager.getInstance().getAction(IdeActions.MOVE_TO_ANOTHER_CHANGE_LIST));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user