diff: add annotate action to diff viewers
[idea/community.git] / platform / platform-resources / src / idea / VcsActions.xml
1 <idea-plugin>
2   <actions>
3     <action id="Vcs.ShowTabbedFileHistory" class="com.intellij.openapi.vcs.actions.TabbedShowHistoryAction"
4             icon="AllIcons.Vcs.History"/>
5
6     <action id="CheckinProject" class="com.intellij.openapi.vcs.actions.CommonCheckinProjectAction" icon="AllIcons.Actions.Commit">
7       <keyboard-shortcut first-keystroke="control K" keymap="$default"/>
8     </action>
9     <action id="CheckinFiles" class="com.intellij.openapi.vcs.actions.CommonCheckinFilesAction"/>
10     <action id="UpdateFiles" class="com.intellij.openapi.vcs.update.CommonUpdateFileOrDirectoryAction"/>
11     <action id="CheckStatusForFiles" class="com.intellij.openapi.vcs.update.CommonStatusFileOrDirectoryAction"/>
12     <action id="IntegrateFiles" class="com.intellij.openapi.vcs.update.CommonIntegrateFileOrDirectoryAction"/>
13     <action id="Annotate" class="com.intellij.openapi.vcs.actions.AnnotateToggleAction"/>
14     <action id="AnnotateDiffViewer" class="com.intellij.openapi.vcs.actions.AnnotateDiffViewerAction">
15       <add-to-group group-id="Diff.EditorPopupMenu"/>
16     </action>
17     <action id="Show.Current.Revision" class="com.intellij.openapi.vcs.actions.ShowBaseRevisionAction" text="Show Current Revision"/>
18     <action id="Compare.SameVersion" class="com.intellij.openapi.vcs.actions.CompareWithTheSameVersionAction" icon="AllIcons.Actions.Diff"/>
19     <action id="Compare.LastVersion" class="com.intellij.openapi.vcs.actions.CompareWithLastVersion"/>
20     <action id="Compare.Selected" class="com.intellij.openapi.vcs.actions.CompareWithSelectedRevisionAction" popup="true"/>
21     <action id="Compare.Specified" class="com.intellij.openapi.vcs.actions.SelectAndCompareWithSelectedRevisionAction"
22             text="Com_pare with Specified Revision..." popup="true"/>
23     <action id="Vcs.ShowHistoryForBlock" class="com.intellij.openapi.vcs.actions.SelectedBlockHistoryAction"/>
24
25     <group class="com.intellij.openapi.vcs.actions.VcsActionGroup" id="VcsGroup"/>
26
27     <group class="com.intellij.openapi.vcs.actions.VcsGroupsWrapper" id="VcsFileGroupPopup" popup="true"/>
28
29     <group id="VersionControlsGroup">
30       <reference ref="VcsFileGroupPopup"/>
31     </group>
32
33     <group id="GoToChangeMarkerGroup">
34       <separator/>
35       <action id="VcsShowNextChangeMarker" class="com.intellij.openapi.vcs.actions.ShowNextChangeMarkerAction"
36               icon="AllIcons.Actions.NextOccurence"/>
37       <action id="VcsShowPrevChangeMarker" class="com.intellij.openapi.vcs.actions.ShowPrevChangeMarkerAction"
38               icon="AllIcons.Actions.PreviousOccurence"/>
39
40       <add-to-group group-id="GoToMenu" anchor="last"/>
41     </group>
42     <action id="VcsShowCurrentChangeMarker" class="com.intellij.openapi.vcs.actions.ShowCurrentChangeMarkerAction"/>
43
44     <!-- Main menu | Version Control -->
45     <group id="VcsGroups" popup="true">
46       <action id="Start.Use.Vcs" class="com.intellij.ide.actions.StartUseVcsAction"/>
47       <separator/>
48       <group class="com.intellij.openapi.vcs.actions.VcsActionGroup" id="VcsGlobalGroup">
49
50         <action id="Vcs.QuickListPopupAction"
51                 class = "com.intellij.openapi.vcs.actions.VcsQuickListPopupAction"
52                 text = "VCS Operations Popup..." description="Context aware popup with list of commonly used VCS actions"/>
53         <action id="Vcs.ChangesView" class="com.intellij.openapi.vcs.changes.ShowChangesViewAction"/>
54         <reference ref="CheckinProject"/>
55         <action id="Vcs.UpdateProject" class="com.intellij.openapi.vcs.update.CommonUpdateProjectAction" icon="AllIcons.Actions.CheckOut">
56           <keyboard-shortcut first-keystroke="control T" keymap="$default"/>
57         </action>
58         <action id="Vcs.IntegrateProject" class="com.intellij.openapi.vcs.update.CommonIntegrateProjectAction"/>
59         <action id="Vcs.RefreshStatuses" class="com.intellij.openapi.vcs.actions.RefreshStatuses"/>
60         <separator/>
61         <group id="Vcs.Specific" class="com.intellij.ide.actions.NonEmptyActionGroup"/>
62         <separator/>
63         <action id="ChangesView.CreatePatch" class="com.intellij.openapi.vcs.changes.actions.CreatePatchAction"/>
64         <action id="ChangesView.ApplyPatch" class="com.intellij.openapi.vcs.changes.patch.ApplyPatchAction"/>
65         <action id="ChangesView.Shelve" class="com.intellij.openapi.vcs.changes.shelf.ShelveChangesAction"/>
66       </group>
67
68       <separator/>
69       <group id="Vcs.Checkout" class="com.intellij.openapi.vcs.checkout.CheckoutActionGroup" popup="true"/>
70       <group id="Vcs.Import" class="com.intellij.ide.actions.NonEmptyActionGroup" popup="true"/>
71       <group id="Vcs.Browse" class="com.intellij.ide.actions.NonEmptyActionGroup" popup="true"/>
72
73       <add-to-group group-id="MainMenu" anchor="after" relative-to-action="ToolsMenu"/>
74     </group>
75
76     <action id="ChangesView.Revert" class="com.intellij.openapi.vcs.changes.actions.RollbackAction"
77             icon="AllIcons.Actions.Rollback"/>
78
79     <group id="ChangesViewToolbar">
80       <action id="ChangesView.Refresh" class="com.intellij.openapi.vcs.changes.actions.RefreshAction"
81               icon="AllIcons.Actions.Refresh"/>
82       <action id="ChangesView.Commit" class="com.intellij.openapi.vcs.actions.CommonCheckinProjectAction"
83               icon="AllIcons.Actions.Commit"/>
84       <reference ref="ChangesView.Revert"/>
85       <action id="ChangesView.NewChangeList" class="com.intellij.openapi.vcs.changes.actions.AddChangeListAction"
86               icon="AllIcons.General.Add"/>
87       <action id="ChangesView.RemoveChangeList" class="com.intellij.openapi.vcs.changes.actions.RemoveChangeListAction"
88               icon="AllIcons.General.Remove"/>
89       <action id="ChangesView.SetDefault" class="com.intellij.openapi.vcs.changes.actions.SetDefaultChangeListAction"
90               icon="AllIcons.Actions.Submit1"/>
91       <action id="ChangesView.Move" class="com.intellij.openapi.vcs.changes.actions.MoveChangesToAnotherListAction"
92               icon="AllIcons.Actions.MoveToAnotherChangelist"/>
93       <action id="ChangesView.Diff" class="com.intellij.openapi.vcs.changes.actions.diff.ShowDiffAction"
94               icon="AllIcons.Actions.Diff" use-shortcut-of="Diff.ShowDiff"/>
95     </group>
96
97     <group id="AlienCommitChangesDialog.AdditionalActions"/>
98
99     <group id="ChangesViewPopupMenu">
100       <reference ref="ChangesView.Commit"/>
101       <reference ref="ChangesView.Revert"/>
102       <reference ref="ChangesView.Move"/>
103       <reference ref="ChangesView.Diff"/>
104       <reference ref="EditSource"/>
105       <separator/>
106       <action id="ChangesView.DeleteUnversioned" class="com.intellij.openapi.vcs.changes.actions.DeleteUnversionedFilesAction"
107               icon="AllIcons.Actions.Cancel"/>
108       <action id="ChangesView.AddUnversioned" class="com.intellij.openapi.vcs.changes.actions.ScheduleForAdditionAction">
109         <keyboard-shortcut first-keystroke="control alt A" keymap="$default"/>
110       </action>
111       <action id="ChangesView.Ignore" class="com.intellij.openapi.vcs.changes.actions.IgnoreUnversionedAction"/>
112       <action id="ChangesView.RemoveDeleted" class="com.intellij.openapi.vcs.changes.actions.ScheduleForRemovalAction"
113               icon="AllIcons.Actions.Exclude"/>
114       <action id="ChangesView.Edit" class="com.intellij.openapi.vcs.changes.actions.EditAction"/>
115       <separator/>
116       <reference ref="ChangesView.NewChangeList"/>
117       <reference ref="ChangesView.RemoveChangeList"/>
118       <reference ref="ChangesView.SetDefault"/>
119       <action id="ChangesView.Rename" class="com.intellij.openapi.vcs.changes.actions.RenameChangeListAction"/>
120       <reference ref="ChangesView.CreatePatch"/>
121       <reference ref="ChangesView.Shelve"/>
122       <separator/>
123       <reference ref="ChangesView.Refresh"/>
124       <separator/>
125       <reference ref="VersionControlsGroup"/>
126     </group>
127
128     <!-- There are alternative action presentations for the UnversionedViewDialog. Icon is the difference.  -->
129     <group id="Unversioned.Files.Dialog">
130       <action id="ChangesView.AddUnversioned.From.Dialog" class="com.intellij.openapi.vcs.changes.actions.ScheduleForAdditionAction"
131               icon="AllIcons.General.Add" use-shortcut-of="ChangesView.AddUnversioned" />
132       <reference ref="ChangesView.Move"/>
133       <action id="ChangesView.DeleteUnversioned.From.Dialog" class="com.intellij.openapi.vcs.changes.actions.DeleteUnversionedFilesAction"/>
134       <reference ref="ChangesView.Ignore"/>
135     </group>
136
137     <group id="ShelvedChangesPopupMenu">
138       <action id="ShelvedChanges.Unshelve" class="com.intellij.openapi.vcs.changes.shelf.UnshelveChangesAction"/>
139       <action id="ShelveChanges.UnshelveWithDialog" class="com.intellij.openapi.vcs.changes.shelf.UnshelveWithDialogAction"
140               text="Unshelve..." description="Correct paths where to apply patches and unshelve"/>
141       <action id="ShelvedChanges.Restore" class="com.intellij.openapi.vcs.changes.shelf.RestoreShelvedChange"/>
142       <action id="ShelvedChanges.Diff" class="com.intellij.openapi.vcs.changes.shelf.DiffShelvedChangesAction"
143           icon="AllIcons.Actions.Diff" use-shortcut-of="Diff.ShowDiff"/>
144       <action id="ChangesView.CreatePatchFromChanges" class="com.intellij.openapi.vcs.changes.actions.CreatePatchFromChangesAction"
145               icon="AllIcons.Actions.CreatePatch"/>
146       <action id="ShelvedChanges.ImportPatches" class="com.intellij.openapi.vcs.changes.shelf.ImportIntoShelfAction"/>
147       <separator/>
148       <action id="ShelvedChanges.Rename" class="com.intellij.openapi.vcs.changes.shelf.RenameShelvedChangeListAction"
149               use-shortcut-of="RenameElement"/>
150       <reference ref="$Delete"/>
151       <separator/>
152       <action id="ShelvedChanges.ShowHideDeleted" class="com.intellij.openapi.vcs.changes.shelf.ShowHideRecycledAction" />
153       <action id="ShelvedChanges.DeleteDeleted" class="com.intellij.openapi.vcs.changes.shelf.DeleteAlreadyUnshelvedAction"/>
154     </group>
155
156     <group id="ShelvedChangesToolbar">
157       <reference ref="ShelvedChanges.Diff"/>
158       <reference ref="ChangesView.CreatePatchFromChanges"/>
159     </group>
160
161     <group id="ShelvedChangesToolbarGear" popup="true" icon="AllIcons.General.SecondaryGroup">
162       <reference ref="ShelvedChanges.Unshelve"/>
163       <reference ref="ShelveChanges.UnshelveWithDialog"/>
164       <reference ref="ShelvedChanges.Restore"/>
165       <reference ref="ShelvedChanges.ImportPatches"/>
166       <separator/>
167       <reference ref="ShelvedChanges.Rename" />
168       <reference ref="$Delete" />
169       <separator/>
170       <reference ref="ShelvedChanges.ShowHideDeleted" />
171       <reference ref="ShelvedChanges.DeleteDeleted" />
172     </group>
173
174     <group id="VcsHistoryActionsGroup"/>
175
176     <group id="CommittedChangesToolbar">
177       <action id="CommittedChanges.Refresh" class="com.intellij.openapi.vcs.changes.committed.RefreshCommittedAction"
178               icon="AllIcons.Actions.Refresh"/>
179       <action id="CommittedChanges.Filter" class="com.intellij.openapi.vcs.changes.committed.FilterCommittedAction"
180               icon="AllIcons.General.Filter"/>
181       <action id="CommittedChanges.Details" class="com.intellij.openapi.vcs.changes.committed.ChangeListDetailsAction"
182               icon="AllIcons.Actions.ShowChangesOnly"/>
183       <reference ref="ChangesView.CreatePatchFromChanges"/>
184       <action id="CommittedChanges.Revert" class="com.intellij.openapi.vcs.changes.actions.RevertChangeListAction"
185               icon="AllIcons.Actions.Rollback"/>
186       <action id="CommittedChanges.Clear" class="com.intellij.openapi.vcs.changes.committed.ClearCommittedAction"
187               icon="AllIcons.Vcs.Remove"/>
188     </group>
189
190     <group id="RepositoryChangesBrowserToolbar">
191     </group>
192
193     <group id="IncomingChangesToolbar">
194       <action id="IncomingChanges.Refresh" class="com.intellij.openapi.vcs.changes.committed.RefreshIncomingChangesAction"
195               icon="AllIcons.Actions.Refresh"/>
196       <reference ref="CommittedChanges.Details"/>
197       <!--
198       <action id="IncomingChanges.Get" class="com.intellij.openapi.vcs.changes.committed.GetCommittedChangelistAction"
199               icon="/actions/get.png"/>
200       -->
201       <reference ref="Vcs.UpdateProject"/>
202     </group>
203
204     <group id="Vcs.History">
205       <action id="VcsHistory.ShowAllAffected" class="com.intellij.openapi.vcs.annotate.ShowAllAffectedGenericAction"
206               icon="AllIcons.Vcs.AllRevisions" />
207     </group>
208
209     <action id="ChangesView.Browse" class="com.intellij.openapi.vcs.changes.actions.BrowseChangesAction"/>
210
211     <action id="Diff.PrevChange" class="com.intellij.openapi.vcs.changes.actions.ShowPrevChangeAction"
212       icon="AllIcons.Actions.Prevfile" use-shortcut-of="PreviousTab"/>
213     <action id="Diff.NextChange" class="com.intellij.openapi.vcs.changes.actions.ShowNextChangeAction"
214       icon="AllIcons.Actions.Nextfile" use-shortcut-of="NextTab"/>
215     <action id="Diff.SelectedChange" class="com.intellij.openapi.vcs.changes.actions.ShowSelectedChangeAction"
216       icon="AllIcons.Actions.ShowAsTree" use-shortcut-of="GotoChangedFile"/>
217
218     <group id="EditorGutterVcsPopupMenu">
219       <separator/>
220       <reference ref="Annotate"/>
221       <add-to-group group-id="EditorGutterPopupMenu" anchor="last"/>
222     </group>
223
224     <group id="Vcs.CheckinProjectPopup">
225       <separator/>
226     </group>
227
228     <group id="Vcs.CheckinProjectToolbar">
229     </group>
230
231     <group id="UpdateActionGroup">
232       <reference ref="EditSource"/>
233       <reference ref="$Delete"/>
234       <action id="Diff.UpdatedFiles" class="com.intellij.openapi.vcs.update.ShowUpdatedDiffAction"
235               use-shortcut-of="Diff.ShowDiff" icon="AllIcons.Actions.Diff"/>
236     </group>
237
238     <group id="Vcs.MessageActionGroup">
239       <action id="Vcs.CheckCommitMessageSpelling"
240               class="com.intellij.openapi.vcs.actions.CheckCommitMessageSpellingAction"
241               icon="AllIcons.Vcs.CheckSpelling"/>
242       <action id="Vcs.ShowMessageHistory"
243               class="com.intellij.openapi.vcs.actions.ShowMessageHistoryAction"
244               icon="AllIcons.General.MessageHistory"/>
245     </group>
246
247     <group id="VcsToobarActions">
248       <reference ref="Vcs.UpdateProject"/>
249       <reference ref="CheckinProject"/>
250       <reference ref="Compare.SameVersion"/>
251       <reference ref="Vcs.ShowTabbedFileHistory"/>
252       <reference ref="ChangesView.Revert"/>
253       <separator/>
254       <add-to-group group-id="MainToolBarSettings" relative-to-action="ShowSettings" anchor="before"/>
255     </group>
256
257     <group id="VcsNavBarToobarActions">
258       <reference ref="Vcs.UpdateProject"/>
259       <reference ref="CheckinProject"/>
260       <reference ref="Vcs.ShowTabbedFileHistory"/>
261       <reference ref="ChangesView.Revert"/>
262       <separator/>
263       <add-to-group group-id="NavBarVcsGroup" anchor="first"/>
264     </group>
265
266     <action id="Vcs.ShowDiffWithLocal" class="com.intellij.openapi.vcs.history.ShowDiffWithLocalAction"
267             text="Compare with Local" description="Compare version from selected revision with current version"
268             icon="AllIcons.Actions.DiffWithCurrent"/>
269
270     <!-- Window -->
271     <action id="CloseAllUnmodifiedEditors" class="com.intellij.ide.actions.CloseAllUnmodifiedEditorsAction">
272       <add-to-group group-id="CloseEditorsGroup" anchor="before" relative-to-action="CloseAllUnpinnedEditors"/>
273     </action>
274
275     <action id="Vcs.RollbackChangedLines" class="com.intellij.openapi.vcs.ex.RollbackLineStatusAction" icon="AllIcons.Actions.Reset">
276     </action>
277
278     <action id="WelcomeScreen.GetFromVcs" class="com.intellij.openapi.wm.impl.welcomeScreen.GetFromVcsAction"
279       icon="AllIcons.General.GetProjectfromVCS">
280       <add-to-group group-id="WelcomeScreen.QuickStart" anchor="first"/>
281     </action>
282
283     <action id="Vcs.CopyRevisionNumberAction" class="com.intellij.openapi.vcs.history.CopyRevisionNumberAction"
284             text="Copy Revision Number" description="Copy short revision numbers of selected commits to the clipboard"
285             icon="AllIcons.Actions.Copy" />
286
287     <group id="Shelve.KeymapGroup" text="Shelve">
288       <reference ref="ChangesView.Shelve"/>
289       <reference ref="ShelvedChanges.Unshelve"/>
290       <reference ref="ShelveChanges.UnshelveWithDialog"/>
291       <reference ref="ShelvedChanges.Restore"/>
292       <reference ref="ShelvedChanges.ImportPatches"/>
293       <separator/>
294       <reference ref="ShelvedChanges.Rename"/>
295       <separator/>
296       <reference ref="ShelvedChanges.Diff"/>
297       <reference ref="ChangesView.CreatePatchFromChanges"/>
298       <separator/>
299       <reference ref="ShelvedChanges.ShowHideDeleted"/>
300       <reference ref="ShelvedChanges.DeleteDeleted"/>
301       <separator/>
302
303       <add-to-group group-id="Vcs.KeymapGroup" anchor="first"/>
304     </group>
305
306     <group>
307       <reference ref="CheckinProject"/>
308       <reference ref="CheckinFiles"/>
309       <reference ref="UpdateFiles"/>
310       <reference ref="CheckStatusForFiles"/>
311       <reference ref="IntegrateFiles"/>
312       <separator/>
313       <reference ref="Show.Current.Revision"/>
314       <reference ref="Vcs.ShowHistoryForBlock"/>
315       <reference ref="Vcs.ShowTabbedFileHistory"/>
316       <reference ref="VcsHistory.ShowAllAffected"/>
317       <reference ref="Compare.Specified"/>
318       <reference ref="Compare.Selected"/>
319       <reference ref="Annotate"/>
320       <separator/>
321       <reference ref="VcsShowNextChangeMarker"/>
322       <reference ref="VcsShowPrevChangeMarker"/>
323       <reference ref="VcsShowCurrentChangeMarker"/>
324       <separator/>
325       <reference ref="Start.Use.Vcs"/>
326       <reference ref="Vcs.QuickListPopupAction"/>
327       <reference ref="Vcs.ChangesView"/>
328       <reference ref="Vcs.UpdateProject"/>
329       <reference ref="Vcs.IntegrateProject"/>
330       <reference ref="Vcs.RefreshStatuses"/>
331       <separator/>
332       <reference ref="ChangesView.Browse"/>
333       <reference ref="ChangesView.CreatePatch"/>
334       <reference ref="ChangesView.ApplyPatch"/>
335       <reference ref="ChangesView.Revert"/>
336       <reference ref="ChangesView.Refresh"/>
337       <reference ref="ChangesView.Commit"/>
338       <reference ref="ChangesView.NewChangeList"/>
339       <reference ref="ChangesView.RemoveChangeList"/>
340       <reference ref="ChangesView.SetDefault"/>
341       <reference ref="ChangesView.Move"/>
342       <reference ref="ChangesView.Diff"/>
343       <reference ref="ChangesView.DeleteUnversioned"/>
344       <reference ref="ChangesView.AddUnversioned"/>
345       <reference ref="ChangesView.Ignore"/>
346       <reference ref="ChangesView.RemoveDeleted"/>
347       <reference ref="ChangesView.Edit"/>
348       <reference ref="ChangesView.Rename"/>
349       <reference ref="ChangesView.AddUnversioned.From.Dialog"/>
350       <reference ref="ChangesView.DeleteUnversioned.From.Dialog"/>
351       <separator/>
352       <reference ref="CommittedChanges.Refresh"/>
353       <reference ref="CommittedChanges.Filter"/>
354       <reference ref="CommittedChanges.Details"/>
355       <reference ref="CommittedChanges.Revert"/>
356       <reference ref="CommittedChanges.Clear"/>
357       <reference ref="IncomingChanges.Refresh"/>
358       <separator/>
359       <reference ref="Vcs.CheckCommitMessageSpelling"/>
360       <reference ref="Vcs.ShowMessageHistory"/>
361       <reference ref="CloseAllUnmodifiedEditors"/>
362       <reference ref="Vcs.RollbackChangedLines"/>
363       <reference ref="WelcomeScreen.GetFromVcs"/>
364       <reference ref="Vcs.CopyRevisionNumberAction"/>
365       <separator/>
366
367       <add-to-group group-id="VcsGeneral.KeymapGroup"/>
368     </group>
369
370     <group>
371       <reference ref="Compare.SameVersion"/>
372       <reference ref="Compare.LastVersion"/>
373       <reference ref="Compare.Specified"/>
374       <reference ref="Vcs.ShowDiffWithLocal"/>
375       <separator/>
376       <reference ref="Diff.PrevChange"/>
377       <reference ref="Diff.NextChange"/>
378       <reference ref="Diff.SelectedChange"/>
379       <separator/>
380
381       <add-to-group group-id="Diff.KeymapGroup"/>
382     </group>
383   </actions>
384 </idea-plugin>