From 17e4025abddb8f390d07b0604233ec229a5d63bc Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sun, 12 Aug 2012 17:59:37 +0400 Subject: [PATCH] IDEA-86406 add a hotkey support for "Show all affected paths" * Define ShowAllAffectedGenericAction in the XML, so that it is registered. * Don't create new instances of the action from the plugins: use getInstance() instead. (otherwise, in particular, title and icon won't be applied) * Define default shortcuts for Default (alt shift A) and Mac (meta ctrl A) schemes (both are free). --- .../src/messages/ActionsBundle.properties | 2 ++ .../platform-resources/src/idea/Keymap_Default.xml | 3 +++ platform/platform-resources/src/idea/Keymap_Mac.xml | 4 +++- platform/platform-resources/src/idea/VcsActions.xml | 5 +++++ .../vcs/annotate/ShowAllAffectedGenericAction.java | 13 ++++++++++--- .../cvsSupport2/history/CvsHistoryProvider.java | 2 +- .../src/git4idea/history/GitHistoryProvider.java | 2 +- .../src/git4idea/update/GitSkippedCommits.java | 2 +- .../idea/svn/history/SvnHistoryProvider.java | 2 +- 9 files changed, 27 insertions(+), 8 deletions(-) diff --git a/platform/platform-resources-en/src/messages/ActionsBundle.properties b/platform/platform-resources-en/src/messages/ActionsBundle.properties index 88818f70dc8c..227dc4b4b0df 100644 --- a/platform/platform-resources-en/src/messages/ActionsBundle.properties +++ b/platform/platform-resources-en/src/messages/ActionsBundle.properties @@ -1095,6 +1095,8 @@ action.ConfigureFileDefaultEncoding.text=Configure Default Encoding... action.ConfigureFileDefaultEncoding.description=Configure default encoding for files, files in directories or in the whole project action.ChangeFileEncodingGroupAction.text=Change File Encoding action.ChangeFileEncodingGroupAction.description=Change File Encoding +action.VcsHistory.ShowAllAffected.text=Show all affected files +action.VcsHistory.ShowAllAffected.description=Show all changes made in the chosen revision action.AddFrameworkSupport.text=Add Framework Support... diff --git a/platform/platform-resources/src/idea/Keymap_Default.xml b/platform/platform-resources/src/idea/Keymap_Default.xml index c585c6f45931..c57881b3977c 100644 --- a/platform/platform-resources/src/idea/Keymap_Default.xml +++ b/platform/platform-resources/src/idea/Keymap_Default.xml @@ -909,6 +909,9 @@ + + + diff --git a/platform/platform-resources/src/idea/Keymap_Mac.xml b/platform/platform-resources/src/idea/Keymap_Mac.xml index a8a319d903d2..23936d2c7ebe 100644 --- a/platform/platform-resources/src/idea/Keymap_Mac.xml +++ b/platform/platform-resources/src/idea/Keymap_Mac.xml @@ -302,7 +302,9 @@ - + + + diff --git a/platform/platform-resources/src/idea/VcsActions.xml b/platform/platform-resources/src/idea/VcsActions.xml index 79425a6bd13f..3505751a1a77 100644 --- a/platform/platform-resources/src/idea/VcsActions.xml +++ b/platform/platform-resources/src/idea/VcsActions.xml @@ -172,6 +172,11 @@ + + + +