Update org.apache.commons:commons-compress to 1.25.0
[egit/eclipse.git] / org.eclipse.egit.ui / plugin.xml
blobb038b133965d9261c9def987dc60756b832f5072
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin>
4    <extension-point id="commitMessageProvider" name="%CommitMessageProviderExtension-point.name" schema="schema/commitMessageProvider.exsd"/>
5    <extension-point id="cloneSourceProvider" name="%CloneSourceProviderExtension-point.name" schema="schema/cloneSourceProvider.exsd"/>
6    <extension-point id="branchNameProvider" name="%BranchNameProviderExtension-point.name" schema="schema/branchNameProvider.exsd"/>
7    <extension point="org.eclipse.core.runtime.preferences">
8       <initializer class="org.eclipse.egit.ui.PluginPreferenceInitializer"/>
9    </extension>
11    <extension point="org.eclipse.ui.importWizards">
12       <category name="%Git_clone_category"
13             id="org.eclipse.egit.ui.internal.clone.gitclonecategory"/>
14       <wizard name="%Git_clone_wizard"
15             icon="icons/obj16/import_obj.png"
16             class="org.eclipse.egit.ui.internal.clone.GitImportWizard"
17             id="org.eclipse.egit.ui.internal.clone.GitCloneWizard"
18             category="org.eclipse.egit.ui.internal.clone.gitclonecategory">
19             <description>%Git_clone_description</description>
20       </wizard>
21       <wizard
22             category="org.eclipse.egit.ui.internal.clone.gitclonecategory"
23             icon="icons/obj16/import_prj.png"
24             class="org.eclipse.egit.ui.internal.clone.SmartImportGitWizard"
25             id="org.eclipse.egit.ui.internal.clone.SmartImportGitWizard"
26             name="%SmartImportGitWizard_label">
27             <description>%SmartImportGitWizard_description</description>
28       </wizard>
29    </extension>
31    <extension point="org.eclipse.team.ui.configurationWizards">
32       <wizard name="%SharingWizard_name"
33             icon="icons/etool16/newconnect_wiz.png"
34             class="org.eclipse.egit.ui.internal.sharing.SharingWizard"
35             id="org.eclipse.egit.ui.internal.sharing.SharingWizard">
36       </wizard>
37    </extension>
39    <extension point="org.eclipse.ui.popupMenus">
40      <objectContribution id="org.eclipse.egit.ui.containerContributions"
41             objectClass="org.eclipse.core.resources.IContainer"
42             adaptable="true">
43          <filter name="projectPersistentProperty"
44                value="org.eclipse.team.core.repository=org.eclipse.egit.core.GitProvider">
45          </filter>
46          <action
47                class="org.eclipse.egit.ui.internal.actions.SynchronizeWorkspaceAction"
48                id="org.eclipse.egit.ui.internal.actions.SynchronizeWorkspace"
49                icon="$nl$/icons/obj16/synchronize.png"
50                label="%SynchronizeWorkspace_label"
51                menubarPath="team.main/group3"/>
52      </objectContribution>
53      <objectContribution
54             adaptable="true"
55             id="org.eclipse.egit.ui.resourceContributions"
56             objectClass="org.eclipse.core.resources.IResource">
57          <filter name="projectPersistentProperty"
58                value="org.eclipse.team.core.repository=org.eclipse.egit.core.GitProvider">
59          </filter>
60          <action
61                class="org.eclipse.egit.ui.internal.actions.ApplyPatchAction"
62                definitionId="org.eclipse.egit.ui.team.ApplyPatch"
63                enablesFor="*"
64                id="org.eclipse.egit.ui.internal.actions.applyPatch"
65                label="%ApplyPatchAction_label"
66                menubarPath="team.main/applyPatchGroup"
67                overrideActionId="org.eclipse.team.ui.applyPatch">
68          </action>
69          <action
70                class="org.eclipse.egit.ui.internal.actions.MergeToolAction"
71                definitionId="org.eclipse.egit.ui.team.MergeTool"
72                icon="icons/obj16/mergetool.png"
73                id="org.eclipse.egit.ui.internal.actions.MergeTool"
74                label="%MergeToolAction.label"
75                menubarPath="team.main/group4">
76          </action>
77       </objectContribution>
78    </extension>
80    <extension
81          point="org.eclipse.core.runtime.adapters">
82       <factory
83             adaptableType="org.eclipse.ui.IURIEditorInput"
84             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
85          <adapter type="java.io.File" />
86          <adapter type="org.eclipse.jgit.lib.Repository" />
87       </factory>
88       <factory
89             adaptableType="org.eclipse.ui.IURIEditorInput"
90             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
91          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
92       </factory>
93       <factory
94             adaptableType="org.eclipse.egit.core.internal.storage.GitFileHistoryProvider"
95             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
96          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
97       </factory>
98       <factory
99             adaptableType="org.eclipse.core.resources.IResource"
100             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
101          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
102       </factory>
103       <factory
104             adaptableType="org.eclipse.core.runtime.Path"
105             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
106          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
107       </factory>
108       <factory
109             adaptableType="org.eclipse.ui.IWorkingSet"
110             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
111          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
112       </factory>
113       <factory
114             adaptableType="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode"
115             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
116          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
117       </factory>
118       <factory
119             adaptableType="org.eclipse.egit.ui.internal.commit.RepositoryCommit"
120             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
121          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
122       </factory>
123       <factory
124             adaptableType="org.eclipse.egit.core.internal.IRepositoryCommit"
125             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
126          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
127       </factory>
128       <factory
129             adaptableType="org.eclipse.egit.ui.internal.history.HistoryPageInput"
130             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
131          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
132       </factory>
133       <factory
134             adaptableType="org.eclipse.egit.ui.internal.reflog.ReflogItem"
135             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
136          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
137       </factory>
138       <factory
139             adaptableType="org.eclipse.egit.core.internal.rebase.RebaseInteractivePlan$PlanElement"
140             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
141          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
142       </factory>
143       <factory
144             adaptableType="org.eclipse.egit.core.info.GitInfo"
145             class="org.eclipse.egit.ui.history.GitHistoryAdapterFactory">
146          <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
147       </factory>
148       <factory
149             adaptableType="org.eclipse.ui.IWorkingSet"
150             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
151          <adapter type="org.eclipse.jgit.lib.Repository" />
152       </factory>
153       <factory
154             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelRoot"
155             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
156          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
157       </factory>
158       <factory
159             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelRepository"
160             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
161          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
162       </factory>
163       <factory
164             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCommit"
165             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
166          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
167       </factory>
168       <factory
169             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCache"
170             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
171          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
172       </factory>
173       <factory
174             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelWorkingTree"
175             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
176          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
177       </factory>
178       <factory
179             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelTree"
180             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
181          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
182       </factory>
183       <factory
184             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelBlob"
185             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
186          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
187       </factory>
188       <factory
189             adaptableType="org.eclipse.egit.ui.internal.history.FileDiff"
190             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
191          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
192       </factory>
193       <factory
194             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelObject"
195             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
196          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping" />
197          <adapter type="org.eclipse.core.resources.IResource" />
198       </factory>
199       <factory
200             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelRepository"
201             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
202          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping" />
203       </factory>
204       <factory
205             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCommit"
206             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
207          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping" />
208       </factory>
209       <factory
210             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCache"
211             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
212          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping" />
213       </factory>
214       <factory
215             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelWorkingTree"
216             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
217          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping" />
218       </factory>
219       <factory
220             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelTree"
221             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
222          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping" />
223          <adapter type="org.eclipse.core.resources.IResource" />
224       </factory>
225       <factory
226             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelBlob"
227             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
228          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping" />
229          <adapter type="org.eclipse.core.resources.IResource" />
230       </factory>
231       <factory
232             adaptableType="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode"
233             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
234          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter" />
235       </factory>
236       <factory
237             adaptableType="org.eclipse.team.ui.history.IHistoryView"
238             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
239          <adapter type="org.eclipse.ui.part.IShowInSource" />
240       </factory>
241       <factory
242             adaptableType="org.eclipse.egit.ui.internal.staging.StagingEntry"
243             class="org.eclipse.egit.ui.internal.staging.StagingEntryAdapterFactory">
244          <adapter type="org.eclipse.core.resources.IResource" />
245          <adapter type="org.eclipse.core.runtime.IPath" />
246          <adapter type="org.eclipse.jgit.lib.Repository" />
247       </factory>
248    </extension>
250    <extension
251          point="org.eclipse.core.expressions.definitions">
252       <definition
253             id="org.eclipse.egit.ui.repositoryTreePathNode">
254          <and>
255             <count
256                   value="1">
257             </count>
258             <iterate>
259                <or>
260                   <instanceof
261                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
262                   </instanceof>
263                   <instanceof
264                         value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
265                   </instanceof>
266                   <instanceof
267                         value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
268                   </instanceof>
269                   <and>
270                      <instanceof
271                            value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
272                      </instanceof>
273                      <test property="GitRepository.isBare" value="false" />
274                   </and>
275                </or>
276             </iterate>
277          </and>
278       </definition>
279       <definition id="org.eclipse.egit.ui.repositoryTreePushFetchNode">
280          <and>
281             <count
282                   value="1">
283             </count>
284             <iterate
285                   ifEmpty="false"
286                   operator="and">
287                <or>
288                   <instanceof
289                         value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
290                   </instanceof>
291                   <instanceof
292                         value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
293                   </instanceof>
294                </or>
295             </iterate>
296          </and>
297       </definition>
298       <definition id="org.eclipse.egit.ui.repositoriesViewCanConfigureFetch">
299          <and>
300             <count
301                   value="1">
302             </count>
303             <iterate>
304                <or>
305                   <and>
306                      <instanceof
307                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
308                      </instanceof>
309                      <test property="GitRepository.fetchExists" value="false" />
310                   </and>
311                   <instanceof
312                         value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
313                   </instanceof>
314                </or>
315             </iterate>
316          </and>
317       </definition>
318       <definition id="org.eclipse.egit.ui.repositoriesViewCanConfigurePush">
319          <and>
320             <count
321                   value="1">
322             </count>
323             <iterate>
324                <or>
325                   <and>
326                      <instanceof
327                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
328                      </instanceof>
329                      <test property="GitRepository.pushExists" value="false" />
330                   </and>
331                   <instanceof
332                         value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
333                   </instanceof>
334                </or>
335             </iterate>
336          </and>
337       </definition>
338       <definition id="org.eclipse.egit.ui.singleRefNode">
339          <and>
340             <count
341                   value="1">
342             </count>
343             <iterate>
344                <instanceof
345                      value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
346                </instanceof>
347             </iterate>
348          </and>
349       </definition>
350       <definition id="org.eclipse.egit.ui.resourcesSingleRepository">
351          <or>
352             <test
353                   property="GitSelection.resourcesSingleRepository">
354             </test>
355             <with variable="activePart">
356                <instanceof
357                      value="org.eclipse.ui.IEditorPart">
358                </instanceof>
359                <with
360                      variable="activeEditorInput">
361                   <adapt
362                         type="org.eclipse.core.resources.IResource">
363                      <test
364                            property="GitResource.isShared">
365                      </test>
366                   </adapt>
367                </with>
368             </with>
369          </or>
370       </definition>
371       <definition id="org.eclipse.egit.ui.fileOrFolderInRepository">
372          <or>
373             <test
374                   property="GitSelection.fileOrFolderInRepository">
375             </test>
376             <with variable="activePart">
377                <instanceof
378                      value="org.eclipse.ui.IEditorPart">
379                </instanceof>
380                <with
381                      variable="activeEditorInput">
382                   <adapt
383                         type="org.eclipse.core.resources.IResource">
384                      <test
385                            property="GitResource.isShared">
386                      </test>
387                   </adapt>
388                </with>
389             </with>
390          </or>
391       </definition>
392       <definition id="org.eclipse.egit.ui.fileOrFolderPushToGerrit">
393          <or>
394             <test
395                   property="GitSelection.fileOrFolderInRepository"
396                   args="canPushToGerrit">
397             </test>
398             <with variable="activePart">
399                <instanceof
400                      value="org.eclipse.ui.IEditorPart">
401                </instanceof>
402                <with
403                      variable="activeEditorInput">
404                   <adapt
405                         type="org.eclipse.core.resources.IResource">
406                      <test
407                            property="GitResource.isShared">
408                      </test>
409                      <test
410                            property="GitResource.canPushToGerrit">
411                      </test>
412                   </adapt>
413                </with>
414             </with>
415          </or>
416       </definition>
417       <definition id="org.eclipse.egit.ui.fileOrFolderFetchFromGerrit">
418          <or>
419             <test
420                   property="GitSelection.fileOrFolderInRepository"
421                   args="canFetchFromGerrit">
422             </test>
423             <with variable="activePart">
424                <instanceof
425                      value="org.eclipse.ui.IEditorPart">
426                </instanceof>
427                <with
428                      variable="activeEditorInput">
429                   <adapt
430                         type="org.eclipse.core.resources.IResource">
431                      <test
432                            property="GitResource.isShared">
433                      </test>
434                      <test
435                            property="GitResource.canFetchFromGerrit">
436                      </test>
437                   </adapt>
438                </with>
439             </with>
440          </or>
441       </definition>
442       <definition id="org.eclipse.egit.ui.fileOrFolderFetchFromGitHub">
443          <or>
444             <test
445                   property="GitSelection.fileOrFolderInRepository"
446                   args="hasGitHubConfiguration">
447             </test>
448             <with variable="activePart">
449                <instanceof
450                      value="org.eclipse.ui.IEditorPart">
451                </instanceof>
452                <with
453                      variable="activeEditorInput">
454                   <adapt
455                         type="org.eclipse.core.resources.IResource">
456                      <test
457                            property="GitResource.isShared">
458                      </test>
459                      <test
460                            property="GitResource.hasGitHubConfiguration">
461                      </test>
462                   </adapt>
463                </with>
464             </with>
465          </or>
466       </definition>
467       <definition id="org.eclipse.egit.ui.fileOrFolderFetchFromGitLab">
468          <or>
469             <test
470                   property="GitSelection.fileOrFolderInRepository"
471                   args="hasGitLabConfiguration">
472             </test>
473             <with variable="activePart">
474                <instanceof
475                      value="org.eclipse.ui.IEditorPart">
476                </instanceof>
477                <with
478                      variable="activeEditorInput">
479                   <adapt
480                         type="org.eclipse.core.resources.IResource">
481                      <test
482                            property="GitResource.isShared">
483                      </test>
484                      <test
485                            property="GitResource.hasGitLabConfiguration">
486                      </test>
487                   </adapt>
488                </with>
489             </with>
490          </or>
491       </definition>
492       <definition id="org.eclipse.egit.ui.fileOrFolderFetchFromGitea">
493          <or>
494             <test
495                   property="GitSelection.fileOrFolderInRepository"
496                   args="hasGiteaConfiguration">
497             </test>
498             <with variable="activePart">
499                <instanceof
500                      value="org.eclipse.ui.IEditorPart">
501                </instanceof>
502                <with
503                      variable="activeEditorInput">
504                   <adapt
505                         type="org.eclipse.core.resources.IResource">
506                      <test
507                            property="GitResource.isShared">
508                      </test>
509                      <test
510                            property="GitResource.hasGiteaConfiguration">
511                      </test>
512                   </adapt>
513                </with>
514             </with>
515          </or>
516       </definition>
517       <definition
518             id="org.eclipse.egit.ui.resourcesAllInRepository">
519             <test
520                   property="GitSelection.resourcesAllInRepository">
521             </test>
522       </definition>
523       <definition
524             id="org.eclipse.egit.ui.singleRepositoryCommit">
525          <and>
526             <count value="1" />
527             <iterate>
528                <adapt type="org.eclipse.egit.ui.internal.commit.RepositoryCommit" />
529             </iterate>
530          </and>
531       </definition>
532       <definition
533             id="org.eclipse.egit.ui.singleFileCommit">
534          <and>
535             <count value="1" />
536             <iterate>
537                <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
538             </iterate>
539             <with variable="activePart">
540                <test property="GitHistory.isSingleFileHistory" />
541             </with>
542          </and>
543       </definition>
544       <definition
545             id="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected">
546          <iterate ifEmpty="false"
547                   operator="and">
548             <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryGroupNode" />
549          </iterate>
550       </definition>
551    </extension>
553    <extension point="org.eclipse.ui.preferencePages">
554       <page name="%GitPreferences_name"
555             category="org.eclipse.team.ui.TeamPreferences"
556             class="org.eclipse.egit.ui.internal.preferences.GitPreferenceRoot"
557             id="org.eclipse.egit.ui.GitPreferences">
558          <keywordReference
559                id="org.eclipse.egit.ui.GitPreferences">
560          </keywordReference>
561       </page>
562       <page name="%GitPreferences_DiffTools_name"
563             category="org.eclipse.egit.ui.GitPreferences"
564             class="org.eclipse.egit.ui.internal.preferences.DiffPreferencePage"
565             id="org.eclipse.egit.ui.DiffPreferencePage">
566          <keywordReference
567                id="org.eclipse.egit.ui.DiffPreferencePage">
568          </keywordReference>
569       </page>
570       <page name="%GitPreferences_ProjectPreferencePage_name"
571             category="org.eclipse.egit.ui.GitPreferences"
572             class="org.eclipse.egit.ui.internal.preferences.ProjectsPreferencePage"
573             id="org.eclipse.egit.ui.internal.preferences.ProjectsPreferencePage" >
574          <keywordReference
575                id="org.eclipse.egit.ui.internal.preferences.ProjectsPreferencePage">
576          </keywordReference>
577       </page>
578       <page name="%GitPreferences_WindowCachePreferencePage_name"
579             category="org.eclipse.egit.ui.GitPreferences"
580             class="org.eclipse.egit.ui.internal.preferences.WindowCachePreferencePage"
581             id="org.eclipse.egit.ui.internal.preferences.WindowCachePreferencePage" >
582          <keywordReference
583                id="org.eclipse.egit.ui.internal.preferences.WindowCachePreferencePage">
584          </keywordReference>
585       </page>
586       <page name="%GitPreferences_DateFormatPreferencePage_name"
587             category="org.eclipse.egit.ui.GitPreferences"
588             class="org.eclipse.egit.ui.internal.preferences.DateFormatPreferencePage"
589             id="org.eclipse.egit.ui.internal.preferences.DateFormatPreferencePage" >
590          <keywordReference
591                id="org.eclipse.egit.ui.internal.preferences.DateFormatPreferencePage">
592          </keywordReference>
593       </page>
594       <page name="%GitPreferences_DecoratorPreferencePage_name"
595             category="org.eclipse.egit.ui.GitPreferences"
596             class="org.eclipse.egit.ui.internal.preferences.GitDecoratorPreferencePage"
597             id="org.eclipse.egit.ui.internal.preferences.GitDecoratorPreferencePage" >
598          <keywordReference
599                id="org.eclipse.egit.ui.internal.preferences.GitDecoratorPreferencePage">
600          </keywordReference>
601       </page>
602       <page
603             category="org.eclipse.egit.ui.GitPreferences"
604             class="org.eclipse.egit.ui.internal.preferences.GlobalConfigurationPreferencePage"
605             id="org.eclipse.egit.ui.internal.preferences.GlobalConfigurationPreferencePage"
606             name="%ConfigurationPage.name">
607          <keywordReference
608                id="org.eclipse.egit.ui.internal.preferences.GlobalConfigurationPreferencePage">
609          </keywordReference>
610       </page>
611       <page
612             category="org.eclipse.egit.ui.GitPreferences"
613             class="org.eclipse.egit.ui.internal.preferences.CommittingPreferencePage"
614             id="org.eclipse.egit.ui.internal.preferences.CommittingPreferencePage"
615             name="%GitPreferences_CommittingPreferencePage_name">
616          <keywordReference
617                id="org.eclipse.egit.ui.internal.preferences.CommittingPreferencePage">
618          </keywordReference>
619       </page>
620       <page
621             category="org.eclipse.egit.ui.GitPreferences"
622             class="org.eclipse.egit.ui.internal.preferences.StagingViewPreferencePage"
623             id="org.eclipse.egit.ui.internal.preferences.StagingViewPreferencePage"
624             name="%GitPreferences_StagingViewPreferencePage_name">
625          <keywordReference
626                id="org.eclipse.egit.ui.internal.preferences.StagingViewPreferencePage">
627          </keywordReference>
628       </page>
629       <page
630             category="org.eclipse.egit.ui.GitPreferences"
631             class="org.eclipse.egit.ui.internal.preferences.DialogsPreferencePage"
632             id="org.eclipse.egit.ui.internal.preferences.DialogsPreferencePage"
633             name="%DialogsPreferencePage.name">
634          <keywordReference
635                id="org.eclipse.egit.ui.internal.preferences.DialogsPreferencePage">
636          </keywordReference>
637       </page>
638       <page
639             category="org.eclipse.egit.ui.GitPreferences"
640             class="org.eclipse.egit.ui.internal.preferences.SynchronizePreferencePage"
641             id="org.eclipse.egit.ui.internal.preferences.SynchronizePreferencePage"
642             name="%SynchronizePreferencePage.name">
643          <keywordReference
644                id="org.eclipse.egit.ui.internal.preferences.SynchronizePreferencePage">
645          </keywordReference>
646       </page>
647       <page
648             category="org.eclipse.egit.ui.GitPreferences"
649             class="org.eclipse.egit.ui.internal.preferences.GitServersPreferencePage"
650             id="org.eclipse.egit.ui.internal.preferences.GitServersPreferencePage"
651             name="%GitServersPreferencePage.name">
652          <keywordReference
653                id="org.eclipse.egit.ui.internal.preferences.GitServersPreferencePage">
654          </keywordReference>
655       </page>
656       <page
657             category="org.eclipse.egit.ui.GitPreferences"
658             class="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage"
659             id="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage"
660             name="%HistoryPreferencePage.name">
661          <keywordReference
662                id="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage">
663          </keywordReference>
664       </page>
665       <page
666             category="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage"
667             class="org.eclipse.egit.ui.internal.preferences.HistoryColumnsPreferencePage"
668             id="org.eclipse.egit.ui.internal.preferences.HistoryColumnsPreferencePage"
669             name="%HistoryColumnsPreferencePage.name">
670          <keywordReference
671                id="org.eclipse.egit.ui.internal.preferences.HistoryColumnsPreferencePage">
672          </keywordReference>
673       </page>
674    </extension>
676    <extension point="org.eclipse.ui.propertyPages">
677       <page
678             name="%Git"
679             class="org.eclipse.egit.ui.internal.preferences.GitProjectPropertyPage"
680             id="org.eclipse.egit.ui.preferences.GitProjectPropertyPage">
681          <enabledWhen>
682             <adapt type="org.eclipse.core.resources.IResource">
683                <test
684                      property="org.eclipse.core.resources.projectPersistentProperty"
685                      args="org.eclipse.team.core.repository, org.eclipse.egit.core.GitProvider">
686                </test>
687             </adapt>
688          </enabledWhen>
689       </page>
690       <page
691             class="org.eclipse.egit.ui.internal.repository.RepositoryPropertyPage"
692             id="org.eclipse.egit.ui.property.RepositoryPropertyPage"
693             name="%RepositoryConfigPropertyPage">
694          <enabledWhen>
695             <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
696          </enabledWhen>
697       </page>
698       <page
699             class="org.eclipse.egit.ui.internal.repository.RepositoryStatisticsPage"
700             id="org.eclipse.egit.ui.property.RepositoryStatisticsPage"
701             name="%RepositoryStatisticsPage">
702          <enabledWhen>
703             <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
704          </enabledWhen>
705       </page>
706    </extension>
708    <extension point="org.eclipse.ui.keywords">
709       <keyword
710             id="org.eclipse.egit.ui.GitPreferences"
711             label="%GitPreferences_keywords">
712       </keyword>
713       <keyword
714             id="org.eclipse.egit.ui.DiffPreferencePage"
715             label="%DiffPreferencePage_keywords">
716       </keyword>
717       <keyword
718             id="org.eclipse.egit.ui.internal.preferences.ProjectsPreferencePage"
719             label="%ProjectsPreferencePage_keywords">
720       </keyword>
721       <keyword
722             id="org.eclipse.egit.ui.internal.preferences.WindowCachePreferencePage"
723             label="%WindowCachePreferencePage_keywords">
724       </keyword>
725       <keyword
726             id="org.eclipse.egit.ui.internal.preferences.DateFormatPreferencePage"
727             label="%DateFormatPreferencePage_keywords">
728       </keyword>
729       <keyword
730             id="org.eclipse.egit.ui.internal.preferences.GitDecoratorPreferencePage"
731             label="%GitDecoratorPreferencePage_keywords">
732       </keyword>
733       <keyword
734             id="org.eclipse.egit.ui.internal.preferences.GlobalConfigurationPreferencePage"
735             label="%GlobalConfigurationPreferencePage_keywords">
736       </keyword>
737       <keyword
738             id="org.eclipse.egit.ui.internal.preferences.CommittingPreferencePage"
739             label="%CommittingPreferencePage_keywords">
740       </keyword>
741       <keyword
742             id="org.eclipse.egit.ui.internal.preferences.StagingViewPreferencePage"
743             label="%StagingViewPreferencePage_keywords">
744       </keyword>
745       <keyword
746             id="org.eclipse.egit.ui.internal.preferences.DialogsPreferencePage"
747             label="%DialogsPreferencePage_keywords">
748       </keyword>
749       <keyword
750             id="org.eclipse.egit.ui.internal.preferences.SynchronizePreferencePage"
751             label="%SynchronizePreferencePage_keywords">
752       </keyword>
753       <keyword
754             id="org.eclipse.egit.ui.internal.preferences.GitServersPreferencePage"
755             label="%GitServersPreferencePage_keywords">
756       </keyword>
757       <keyword
758             id="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage"
759             label="%HistoryPreferencePage_keywords">
760       </keyword>
761       <keyword
762             id="org.eclipse.egit.ui.internal.preferences.HistoryColumnsPreferencePage"
763             label="%HistoryColumnsPreferencePage_keywords">
764       </keyword>
765    </extension>
767    <extension point="org.eclipse.ui.decorators">
768       <decorator
769             lightweight="true"
770             adaptable="true"
771             label="%Decorator_name"
772             class="org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator"
773             state="true"
774             location="BOTTOM_RIGHT"
775             id="org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator">
776             <enablement>
777               <objectClass name="org.eclipse.core.resources.mapping.ResourceMapping"/>
778             </enablement>
779          <description>
780             %Decorator_description
781          </description>
782       </decorator>
783       <decorator
784             lightweight="true"
785             adaptable="false"
786             label="%Repo_decorator_name"
787             class="org.eclipse.egit.ui.internal.repository.RepositoryTreeNodeDecorator"
788             state="true"
789             location="BOTTOM_RIGHT"
790             id="org.eclipse.egit.ui.internal.repository.RepositoryTreeNodeDecorator">
791             <enablement>
792               <objectClass name="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode"/>
793             </enablement>
794          <description>
795             %Repo_decorator_description
796          </description>
797       </decorator>
798    </extension>
800    <extension point="org.eclipse.ui.themes">
801       <themeElementCategory
802             id="org.eclipse.egit.ui.GitTheme"
803             label="%Theme_label"/>
804       <fontDefinition
805             id="org.eclipse.egit.ui.CommitGraphNormalFont"
806             categoryId="org.eclipse.egit.ui.GitTheme"
807             label="%Theme_CommitGraphNormalFont_label"
808             defaultsTo="org.eclipse.jface.dialogfont">
809          <description>
810             %Theme_CommitGraphNormalFont_description
811          </description>
812       </fontDefinition>
813       <fontDefinition
814             id="org.eclipse.egit.ui.CommitGraphHighlightFont"
815             categoryId="org.eclipse.egit.ui.GitTheme"
816             label="%Theme_CommitGraphHighlightFont_label"
817             defaultsTo="org.eclipse.jface.dialogfont">
818          <description>
819             %Theme_CommitGraphHighlightFont_description
820          </description>
821       </fontDefinition>
822       <fontDefinition
823             id="org.eclipse.egit.ui.CommitMessageFont"
824             categoryId="org.eclipse.egit.ui.GitTheme"
825             label="%Theme_CommitMessageFont_label"
826             defaultsTo="org.eclipse.jface.textfont">
827          <description>
828             %Theme_CommitMessageFont_description
829          </description>
830       </fontDefinition>
831       <colorDefinition
832             categoryId="org.eclipse.egit.ui.GitTheme"
833             id="org.eclipse.egit.ui.CommitMessageCommentColor"
834             isEditable="true"
835             label="%Theme_CommitMessageCommentColor_label"
836             value="63,127,95">
837          <description>
838             %Theme_CommitMessageCommentColor_description
839          </description>
840       </colorDefinition>
841           <colorDefinition
842         id="org.eclipse.egit.ui.UncommittedChangeForegroundColor"
843         categoryId="org.eclipse.egit.ui.GitTheme"
844         label="%Theme_UncommittedChangeForegroundColor_label"
845         value="COLOR_LIST_FOREGROUND">
846         <description>
847         %Theme_UncommittedChangeForegroundColor_description
848         </description>
849       </colorDefinition>
850       <colorDefinition
851         id="org.eclipse.egit.ui.UncommittedChangeBackgroundColor"
852         categoryId="org.eclipse.egit.ui.GitTheme"
853         label="%Theme_UncommittedChangeBackgroundColor_label"
854         value="COLOR_LIST_BACKGROUND">
855         <description>
856         %Theme_UncommittedChangeBackgroundColor_description
857         </description>
858       </colorDefinition>
859       <fontDefinition
860         id="org.eclipse.egit.ui.UncommittedChangeFont"
861         categoryId="org.eclipse.egit.ui.GitTheme"
862         label="%Theme_UncommittedChangeFont_label">
863         <description>
864         %Theme_UncommittedChangeFont_description
865         </description>
866       </fontDefinition>
867       <fontDefinition
868             categoryId="org.eclipse.egit.ui.GitTheme"
869             defaultsTo="org.eclipse.jface.textfont"
870             id="org.eclipse.egit.ui.CommitMessageEditorFont"
871             label="%Theme_CommitMessageEditorFont_label">
872          <description>
873             %Theme_CommitMessageEditorFont_description
874          </description>
875       </fontDefinition>
876       <colorDefinition
877             categoryId="org.eclipse.egit.ui.GitTheme"
878             id="org.eclipse.egit.ui.DiffHunkBackgroundColor"
879             isEditable="true"
880             label="%Theme_DiffHunkBackgroundColor_label"
881             value="234,242,245">
882          <description>
883             %Theme_DiffHunkBackgroundColor_description
884          </description>
885       </colorDefinition>
886       <colorDefinition
887             categoryId="org.eclipse.egit.ui.GitTheme"
888             id="org.eclipse.egit.ui.DiffHunkForegroundColor"
889             isEditable="true"
890             label="%Theme_DiffHunkForegroundColor_label"
891             value="153,153,153">
892          <description>
893             %Theme_DiffHunkForegroundColor_description
894          </description>
895       </colorDefinition>
896       <colorDefinition
897             categoryId="org.eclipse.egit.ui.GitTheme"
898             id="org.eclipse.egit.ui.DiffAddBackgroundColor"
899             isEditable="true"
900             label="%Theme_DiffAddBackgroundColor_label"
901             value="221,255,221">
902          <description>
903             %Theme_DiffAddBackgroundColor_description
904          </description>
905       </colorDefinition>
906       <colorDefinition
907             categoryId="org.eclipse.egit.ui.GitTheme"
908             id="org.eclipse.egit.ui.DiffAddForegroundColor"
909             isEditable="true"
910             label="%Theme_DiffAddForegroundColor_label"
911             value="COLOR_BLACK">
912          <description>
913             %Theme_DiffAddForegroundColor_description
914          </description>
915       </colorDefinition>
916       <colorDefinition
917             categoryId="org.eclipse.egit.ui.GitTheme"
918             id="org.eclipse.egit.ui.DiffRemoveBackgroundColor"
919             isEditable="true"
920             label="%Theme_DiffRemoveBackgroundColor_label"
921             value="255,221,221">
922          <description>
923             %Theme_DiffRemoveBackgroundColor_description
924          </description>
925       </colorDefinition>
926       <colorDefinition
927             categoryId="org.eclipse.egit.ui.GitTheme"
928             id="org.eclipse.egit.ui.DiffRemoveForegroundColor"
929             isEditable="true"
930             label="%Theme_DiffRemoveForegroundColor_label"
931             value="COLOR_BLACK">
932          <description>
933             %Theme_DiffRemoveForegroundColor_description
934          </description>
935       </colorDefinition>
936       <colorDefinition
937             categoryId="org.eclipse.egit.ui.GitTheme"
938             id="org.eclipse.egit.ui.DiffHeadlineForegroundColor"
939             isEditable="true"
940             label="%Theme_DiffHeadlineForegroundColor_label"
941             value="COLOR_BLACK">
942          <description>
943             %Theme_DiffHeadlineForegroundColor_description
944          </description>
945       </colorDefinition>
946       <colorDefinition
947             categoryId="org.eclipse.egit.ui.GitTheme"
948             id="org.eclipse.egit.ui.DiffHeadlineBackgroundColor"
949             isEditable="true"
950             label="%Theme_DiffHeadlineBackgroundColor_label"
951             value="170,170,170">
952          <description>
953             %Theme_DiffHeadlineBackgroundColor_description
954          </description>
955       </colorDefinition>
956       <fontDefinition
957             categoryId="org.eclipse.egit.ui.GitTheme"
958             defaultsTo="org.eclipse.jface.textfont"
959             id="org.eclipse.egit.ui.DiffHeadlineFont"
960             label="%Theme_DiffHeadlineFont_label">
961          <description>
962             %Theme_DiffHeadlineFont_description
963          </description>
964       </fontDefinition>
965       <colorDefinition
966         id="org.eclipse.egit.ui.IgnoredResourceForegroundColor"
967         categoryId="org.eclipse.egit.ui.GitTheme"
968         label="%Theme_IgnoredResourceForegroundColor_label"
969         value="COLOR_LIST_FOREGROUND">
970         <description>
971         %Theme_IgnoredResourceForegroundColor_description
972         </description>
973       </colorDefinition>
974       <colorDefinition
975         id="org.eclipse.egit.ui.IgnoredResourceBackgroundColor"
976         categoryId="org.eclipse.egit.ui.GitTheme"
977         label="%Theme_IgnoredResourceBackgroundColor_label"
978         value="COLOR_LIST_BACKGROUND">
979         <description>
980         %Theme_IgnoredResourceBackgroundColor_description
981         </description>
982       </colorDefinition>
983       <fontDefinition
984             categoryId="org.eclipse.egit.ui.GitTheme"
985             id="org.eclipse.egit.ui.IgnoredResourceFont"
986             label="%Theme_IgnoredResourceFont_label">
987         <description>
988         %Theme_IgnoredResourceFont_description
989         </description>
990       </fontDefinition>
991    </extension>
993 <!-- ********** QuickDiff text editor support ************** -->
994    <extension
995          point="org.eclipse.ui.workbench.texteditor.quickDiffReferenceProvider">
996       <referenceprovider
997             label="%GitRemoteQuickDiffProvider_label"
998             class="org.eclipse.egit.ui.internal.decorators.GitQuickDiffProvider"
999             id="org.eclipse.egit.ui.internal.decorators.GitQuickDiffProvider">
1000       </referenceprovider>
1001    </extension>
1002    <extension
1003          point="org.eclipse.ui.actionSets">
1004       <actionSet
1005            description="%GitActions_description"
1006            id="org.eclipse.egit.ui.gitaction"
1007            label="%GitActions_label"
1008            visible="false">
1009          <menu
1010            id="org.eclipse.egit.ui.gitmenu"
1011            label="%GitMenu_label"
1012            path="additions">
1013             <separator name="repositoryGroup" />
1014              </menu>
1015          <action
1016            class="org.eclipse.egit.ui.internal.actions.PullFromUpstreamConfigAction"
1017            definitionId="org.eclipse.egit.ui.team.Pull"
1018            icon="icons/obj16/pull.png"
1019            id="org.eclipse.egit.ui.actionpull"
1020            label="%PullIntoCurrentBranchMenuLabel"
1021            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
1022            style="push"
1023            toolbarPath="org.eclipse.egit.ui"
1024            tooltip="%PullIntoCurrentBranch.tooltip">
1025          </action>
1026          <action
1027            class="org.eclipse.egit.ui.internal.actions.PullWithOptionsAction"
1028            definitionId="org.eclipse.egit.ui.team.PullWithOptions"
1029            icon="icons/obj16/pull_with_options.png"
1030            id="org.eclipse.egit.ui.actionpullwithoptions"
1031            label="%PullWithOptions.name"
1032            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
1033            style="push"
1034            toolbarPath="org.eclipse.egit.ui"
1035            tooltip="%PullWithOptions.tooltip">
1036          </action>
1037                  <action
1038            class="org.eclipse.egit.ui.internal.actions.SimpleFetchAction"
1039            definitionId="org.eclipse.egit.ui.team.SimpleFetch"
1040            icon="icons/obj16/fetch.png"
1041            id="org.eclipse.egit.ui.actionfetch"
1042            label="%FetchFromUpstreamAction.label"
1043            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
1044            style="push"
1045            toolbarPath="org.eclipse.egit.ui"
1046            tooltip="%FetchAction_tooltip">
1047                  </action>
1048                  <action
1049            class="org.eclipse.egit.ui.internal.actions.PushUpstreamOrBranchAction"
1050            definitionId="org.eclipse.egit.ui.team.SimplePush"
1051            icon="icons/obj16/push.png"
1052            id="org.eclipse.egit.ui.actionpush"
1053            label="%PushToUpstreamAction.label"
1054            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
1055            style="push"
1056            toolbarPath="org.eclipse.egit.ui"
1057            tooltip="%PushToUpstreamAction.tooltip">
1058                  </action>
1059                  <action
1060            class="org.eclipse.egit.ui.internal.actions.ResetAction"
1061            definitionId="org.eclipse.egit.ui.team.Reset"
1062            icon="icons/obj16/reset.png"
1063            id="org.eclipse.egit.ui.actionreset"
1064            label="%ResetAction_label"
1065            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
1066            style="push"
1067            toolbarPath="Normal/additions"
1068            tooltip="%ResetAction_tooltip">
1069                  </action>
1070                  <action
1071            class="org.eclipse.egit.ui.internal.actions.MergeAction"
1072            definitionId="org.eclipse.egit.ui.team.Merge"
1073            icon="icons/obj16/merge.png"
1074            id="org.eclipse.egit.ui.actionmerge"
1075            label="%MergeAction_label"
1076            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
1077            style="push"
1078            toolbarPath="Normal/additions"
1079            tooltip="%MergeAction_tooltip">
1080                  </action>
1081                  <action
1082            class="org.eclipse.egit.ui.internal.actions.RebaseAction"
1083            definitionId="org.eclipse.egit.ui.team.Rebase"
1084            icon="icons/obj16/rebase.png"
1085            id="org.eclipse.egit.ui.actionrebase"
1086            label="%RebaseAction_label"
1087            style="pulldown"
1088            toolbarPath="Normal/additions"
1089            tooltip="%RebaseAction_tooltip">
1090          </action>
1091          <action
1092            class="org.eclipse.egit.ui.internal.actions.BranchAction"
1093            definitionId="org.eclipse.egit.ui.team.Branch"
1094            icon="icons/obj16/branch_obj.png"
1095            id="org.eclipse.egit.ui.actionbranch"
1096            label="%BranchAction_label"
1097            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
1098            style="push"
1099            toolbarPath="Normal/additions"
1100            tooltip="%BranchAction_tooltip">
1101          </action>
1102          <action
1103            class="org.eclipse.egit.ui.internal.actions.StashToolbarAction"
1104            definitionId="org.eclipse.egit.ui.team.stash.create"
1105            icon="icons/obj16/stash.png"
1106            id="org.eclipse.egit.ui.actionstash"
1107            label="%StashToolbarAction_label"
1108            style="pulldown"
1109            toolbarPath="Normal/additions"
1110            tooltip="%StashToolbarAction_tooltip">
1111          </action>
1112          <action
1113            class="org.eclipse.egit.ui.internal.actions.CommitAction"
1114            definitionId="org.eclipse.egit.ui.team.Commit"
1115            icon="icons/obj16/commit.png"
1116            id="org.eclipse.egit.ui.actioncommit"
1117            label="%CommitAction_label"
1118            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
1119            style="push"
1120            toolbarPath="Normal/additions"
1121            tooltip="%CommitAction_tooltip">
1122          </action>
1123          <action
1124            class="org.eclipse.egit.ui.internal.actions.AddToIndexAction"
1125            definitionId="org.eclipse.egit.ui.team.AddToIndex"
1126            icon="icons/obj16/add.png"
1127            id="org.eclipse.egit.ui.actionadd"
1128            label="%AddToIndexAction_label"
1129            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
1130            style="push"
1131            toolbarPath="Normal/additions"
1132            tooltip="%AddToIndexAction_tooltip">
1133          </action>
1134       </actionSet>
1135    </extension>
1136    <extension
1137          name="%SharedCommandsLabel"
1138          point="org.eclipse.ui.commands">
1139       <command
1140             defaultHandler="org.eclipse.egit.ui.internal.commands.ShareSingleProjectCommand"
1141             description="%ShareProjectCommand_desc"
1142             id="org.eclipse.egit.ui.command.shareProject"
1143             name="%ShareProjectCommand_name">
1144          <commandParameter
1145                id="org.eclipse.egit.ui.command.projectNameParameter"
1146                name="%ShareProjectCommandParameter_name"
1147                optional="false"
1148                values="org.eclipse.egit.ui.internal.commands.ProjectNameParameterValues">
1149          </commandParameter>
1150       </command>
1151       <category
1152             id="org.eclipse.egit.ui.commandCategory"
1153             name="%Git">
1154       </category>
1155       <command
1156             categoryId="org.eclipse.egit.ui.commandCategory"
1157             defaultHandler="org.eclipse.egit.ui.internal.commands.ConfigureDebugTraceCommand"
1158             id="org.eclipse.egit.ui.command.configureTrace"
1159             name="%ConfigureTraceCommand.name">
1160       </command>
1161       <command
1162             categoryId="org.eclipse.egit.ui.commandCategory"
1163             defaultHandler="org.eclipse.egit.ui.internal.commands.shared.FetchChangeFromGerritCommand"
1164             id="org.eclipse.egit.ui.FetchGerritChange"
1165             name="%FetchFromGerritCommand.name">
1166       </command>
1167       <command
1168             categoryId="org.eclipse.egit.ui.commandCategory"
1169             defaultHandler="org.eclipse.egit.ui.internal.commands.shared.FetchChangeFromServerCommandFactory:GITHUB"
1170             id="org.eclipse.egit.ui.FetchGitHubPR"
1171             name="%FetchFromGitHubCommand.name">
1172       </command>
1173       <command
1174             categoryId="org.eclipse.egit.ui.commandCategory"
1175             defaultHandler="org.eclipse.egit.ui.internal.commands.shared.FetchChangeFromServerCommandFactory:GITLAB"
1176             id="org.eclipse.egit.ui.FetchGitLabMergeRequest"
1177             name="%FetchFromGitLabCommand.name">
1178       </command>
1179       <command
1180             categoryId="org.eclipse.egit.ui.commandCategory"
1181             defaultHandler="org.eclipse.egit.ui.internal.commands.shared.FetchChangeFromServerCommandFactory:GITEA"
1182             id="org.eclipse.egit.ui.FetchGiteaPullRequest"
1183             name="%FetchFromGiteaCommand.name">
1184       </command>
1185       <command
1186             categoryId="org.eclipse.egit.ui.commandCategory"
1187             id="org.eclipse.egit.ui.team.Commit"
1188             name="%CommitCommand.name">
1189       </command>
1190       <command
1191             categoryId="org.eclipse.egit.ui.commandCategory"
1192             id="org.eclipse.egit.ui.team.SimpleFetch"
1193             name="%FetchUpstreamCommand.name">
1194       </command>
1195       <command
1196             categoryId="org.eclipse.egit.ui.commandCategory"
1197             id="org.eclipse.egit.ui.team.SimplePush"
1198             name="%PushUpstreamCommand.name">
1199       </command>
1200       <command
1201             categoryId="org.eclipse.egit.ui.commandCategory"
1202             id="org.eclipse.egit.ui.team.Pull"
1203             name="%TeamPullCommand.name">
1204       </command>
1205       <command
1206             categoryId="org.eclipse.egit.ui.commandCategory"
1207             id="org.eclipse.egit.ui.team.PullWithOptions"
1208             name="%PullWithOptions.name">
1209       </command>
1210       <command
1211             categoryId="org.eclipse.egit.ui.commandCategory"
1212             id="org.eclipse.egit.ui.team.Fetch"
1213             name="%FetchCommand.name">
1214       </command>
1215       <command
1216             categoryId="org.eclipse.egit.ui.commandCategory"
1217             id="org.eclipse.egit.ui.team.Push"
1218             name="%PushCommand.name">
1219       </command>
1220       <command
1221             categoryId="org.eclipse.egit.ui.commandCategory"
1222             id="org.eclipse.egit.ui.team.PushBranch"
1223             name="%PushBranchCommand.name">
1224       </command>
1225       <command
1226             categoryId="org.eclipse.egit.ui.commandCategory"
1227             id="org.eclipse.egit.ui.team.PushTags"
1228             name="%PushTagsCommand.name">
1229       </command>
1230       <command
1231             categoryId="org.eclipse.egit.ui.commandCategory"
1232             id="org.eclipse.egit.ui.team.Merge"
1233             name="%MergeCommand.name">
1234       </command>
1235       <command
1236             categoryId="org.eclipse.egit.ui.commandCategory"
1237             id="org.eclipse.egit.ui.team.Synchronize"
1238             name="%SynchronizeCommand.name">
1239       </command>
1240       <command
1241             categoryId="org.eclipse.egit.ui.commandCategory"
1242             id="org.eclipse.egit.ui.team.ShowHistory"
1243             name="%ShowInHistoryCommand.name">
1244       </command>
1245       <command
1246             categoryId="org.eclipse.egit.ui.commandCategory"
1247             id="org.eclipse.egit.ui.team.OpenCommit"
1248             name="%OpenCommit.name">
1249       </command>
1250       <command
1251             categoryId="org.eclipse.egit.ui.commandCategory"
1252             id="org.eclipse.egit.ui.team.Reset"
1253             name="%ResetCommand.name">
1254       </command>
1255       <command
1256             categoryId="org.eclipse.egit.ui.commandCategory"
1257             id="org.eclipse.egit.ui.team.Rebase"
1258             name="%RebaseCommand.name">
1259       </command>
1260       <command
1261             categoryId="org.eclipse.egit.ui.commandCategory"
1262             id="org.eclipse.egit.ui.team.ShowBlame"
1263             name="%ShowBlameCommand.name">
1264       </command>
1265       <command
1266             categoryId="org.eclipse.egit.ui.commandCategory"
1267             defaultHandler="org.eclipse.egit.ui.internal.commands.shared.PushHeadToGerritCommand"
1268             id="org.eclipse.egit.ui.PushHeadToGerrit"
1269             name="%PushToGerritCommand.label">
1270       </command>
1271       <command
1272             categoryId="org.eclipse.egit.ui.commandCategory"
1273             id="org.eclipse.egit.ui.team.GarbageCollect"
1274             name="%GarbageCollectCommand.label">
1275       </command>
1276       <command
1277             categoryId="org.eclipse.egit.ui.commandCategory"
1278             id="org.eclipse.egit.ui.team.InstallLfsLocal"
1279             name="%InstallLfsLocalCommand.label">
1280       </command>
1281       <command
1282             categoryId="org.eclipse.egit.ui.commandCategory"
1283             id="org.eclipse.egit.ui.team.Disconnect"
1284             name="%DisconnectCommand.name">
1285       </command>
1286       <command
1287             categoryId="org.eclipse.egit.ui.commandCategory"
1288             id="org.eclipse.egit.ui.team.CherryPick"
1289             name="%CherryPickCommand.name">
1290       </command>
1291       <command
1292             categoryId="org.eclipse.egit.ui.commandCategory"
1293             id="org.eclipse.egit.ui.team.Revert"
1294             name="%RevertCommand.name">
1295       </command>
1296       <command
1297             categoryId="org.eclipse.egit.ui.commandCategory"
1298             id="org.eclipse.egit.ui.commit.DiffEditorQuickOutlineCommand"
1299             name="%UnifiedDiffQuickOutlineCommand.name"
1300             description="%UnifiedDiffQuickOutlineCommand.description">
1301       </command>
1302       <command
1303             categoryId="org.eclipse.egit.ui.commandCategory"
1304             id="org.eclipse.egit.ui.internal.merge.ToggleCurrentChangesCommand"
1305             name="%ToggleCurrentChangesCommand.name"
1306             description="%ToggleCurrentChangesCommand.description">
1307       </command>
1308    </extension>
1309    <extension
1310          point="org.eclipse.ui.handlers">
1311       <handler
1312             commandId="org.eclipse.egit.ui.CheckoutCommand">
1313          <class
1314                class="org.eclipse.egit.ui.internal.reflog.command.CheckoutHandler">
1315          </class>
1316          <activeWhen>
1317             <and>
1318                <count value="1" />
1319                <iterate>
1320                   <adapt type="org.eclipse.jgit.lib.ReflogEntry" />
1321                </iterate>
1322             </and>
1323          </activeWhen>
1324       </handler>
1325       <handler
1326             commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand">
1327          <class
1328                class="org.eclipse.egit.ui.internal.reflog.command.OpenInCommitViewerHandler">
1329          </class>
1330          <activeWhen>
1331             <and>
1332                <count value="1" />
1333                <iterate>
1334                   <adapt type="org.eclipse.jgit.lib.ReflogEntry" />
1335                </iterate>
1336             </and>
1337          </activeWhen>
1338       </handler>
1339       <handler
1340             commandId="org.eclipse.egit.ui.history.Reset">
1341          <class
1342                class="org.eclipse.egit.ui.internal.reflog.command.ResetHandler">
1343          </class>
1344          <activeWhen>
1345             <and>
1346                <count value="1" />
1347                <iterate>
1348                   <adapt type="org.eclipse.jgit.lib.ReflogEntry" />
1349                </iterate>
1350             </and>
1351          </activeWhen>
1352       </handler>
1353       <handler
1354             commandId="org.eclipse.egit.ui.team.Commit">
1355          <class
1356                class="org.eclipse.egit.ui.internal.actions.CommitActionHandler">
1357          </class>
1358          <activeWhen>
1359             <or>
1360                <reference
1361                      definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
1362                </reference>
1363                <and>
1364                   <count
1365                         value="1">
1366                   </count>
1367                   <iterate>
1368                      <instanceof
1369                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1370                      </instanceof>
1371                      <not>
1372                         <instanceof
1373                               value="org.eclipse.egit.ui.internal.selection.RepositoryVirtualNode">
1374                         </instanceof>
1375                      </not>
1376                      <test property="GitRepository.isBare" value="false" />
1377                   </iterate>
1378                </and>
1379             </or>
1380          </activeWhen>
1381       </handler>
1382       <handler
1383             commandId="org.eclipse.egit.ui.team.SimpleFetch">
1384          <class
1385                class="org.eclipse.egit.ui.internal.repository.tree.command.FetchConfiguredRemoteCommand">
1386          </class>
1387          <activeWhen>
1388             <and>
1389                <count
1390                      value="1">
1391                </count>
1392                <and>
1393                   <iterate>
1394                      <or>
1395                         <instanceof
1396                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1397                         </instanceof>
1398                         <instanceof
1399                               value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
1400                         </instanceof>
1401                         <instanceof
1402                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1403                         </instanceof>
1404                      </or>
1405                   </iterate>
1406                </and>
1407             </and>
1408          </activeWhen>
1409       </handler>
1410       <handler
1411             commandId="org.eclipse.egit.ui.team.SimpleFetch">
1412          <class
1413                class="org.eclipse.egit.ui.internal.actions.SimpleFetchActionHandler">
1414          </class>
1415          <activeWhen>
1416             <test
1417                   property="GitSelection.resourcesSingleRepository">
1418             </test>
1419          </activeWhen>
1420       </handler>
1421       <handler
1422             commandId="org.eclipse.egit.ui.team.SimplePush">
1423          <class
1424                class="org.eclipse.egit.ui.internal.repository.tree.command.PushConfiguredRemoteCommand">
1425          </class>
1426          <activeWhen>
1427             <and>
1428                <count
1429                      value="1">
1430                </count>
1431                <and>
1432                   <iterate>
1433                      <or>
1434                         <instanceof
1435                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1436                         </instanceof>
1437                         <instanceof
1438                               value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
1439                         </instanceof>
1440                         <instanceof
1441                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1442                         </instanceof>
1443                      </or>
1444                   </iterate>
1445                </and>
1446             </and>
1447          </activeWhen>
1448       </handler>
1449       <handler
1450             commandId="org.eclipse.ui.edit.findReplace">
1451          <class
1452                class="org.eclipse.egit.ui.internal.repository.tree.command.FilterCommand">
1453          </class>
1454          <activeWhen>
1455             <and>
1456                <with variable="activePartId">
1457                   <equals value="org.eclipse.egit.ui.RepositoriesView" />
1458                </with>
1459                <count value="1" />
1460                <iterate>
1461                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagsNode" />
1462                </iterate>
1463             </and>
1464          </activeWhen>
1465       </handler>
1466       <handler
1467             commandId="org.eclipse.egit.ui.team.SimplePush">
1468          <class
1469                class="org.eclipse.egit.ui.internal.actions.SimplePushActionHandler">
1470          </class>
1471          <activeWhen>
1472             <test
1473                   property="GitSelection.resourcesSingleRepository">
1474             </test>
1475          </activeWhen>
1476       </handler>
1477       <handler
1478             commandId="org.eclipse.egit.ui.team.Pull">
1479          <class
1480                class="org.eclipse.egit.ui.internal.actions.PullFromUpstreamActionHandler">
1481          </class>
1482          <activeWhen>
1483             <or>
1484                <test
1485                      property="GitSelection.resourcesAllInRepository">
1486                </test>
1487                <iterate>
1488                   <instanceof
1489                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1490                   </instanceof>
1491                   <not>
1492                      <instanceof
1493                            value="org.eclipse.egit.ui.internal.selection.RepositoryVirtualNode">
1494                      </instanceof>
1495                   </not>
1496                </iterate>
1497             </or>
1498          </activeWhen>
1499       </handler>
1500       <handler
1501             commandId="org.eclipse.egit.ui.team.PullWithOptions">
1502          <class
1503                class="org.eclipse.egit.ui.internal.actions.PullWithOptionsActionHandler">
1504          </class>
1505         <activeWhen>
1506             <or>
1507                <reference
1508                      definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
1509                </reference>
1510                <and>
1511                   <count
1512                         value="1">
1513                   </count>
1514                   <iterate>
1515                      <instanceof
1516                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1517                      </instanceof>
1518                      <not>
1519                         <instanceof
1520                               value="org.eclipse.egit.ui.internal.selection.RepositoryVirtualNode">
1521                         </instanceof>
1522                      </not>
1523                      <test property="GitRepository.isBare" value="false" />
1524                   </iterate>
1525                </and>
1526             </or>
1527          </activeWhen>
1528       </handler>
1529       <handler
1530             commandId="org.eclipse.egit.ui.team.Fetch">
1531          <class
1532                class="org.eclipse.egit.ui.internal.repository.tree.command.FetchCommand">
1533          </class>
1534          <activeWhen>
1535             <and>
1536                <count
1537                      value="1">
1538                </count>
1539                <and>
1540                   <iterate>
1541                      <instanceof
1542                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1543                      </instanceof>
1544                   </iterate>
1545                </and>
1546             </and>
1547          </activeWhen>
1548       </handler>
1549       <handler
1550             commandId="org.eclipse.egit.ui.team.Fetch">
1551          <class
1552                class="org.eclipse.egit.ui.internal.actions.FetchActionHandler">
1553          </class>
1554          <activeWhen>
1555             <test
1556                   property="GitSelection.projectsSingleRepository">
1557             </test>
1558          </activeWhen>
1559       </handler>
1560       <handler
1561             commandId="org.eclipse.egit.ui.team.Push">
1562          <class
1563                class="org.eclipse.egit.ui.internal.repository.tree.command.PushCommand">
1564          </class>
1565          <activeWhen>
1566             <or>
1567                <and>
1568                   <count
1569                         value="1">
1570                   </count>
1571                   <iterate>
1572                      <or>
1573                         <instanceof
1574                               value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
1575                         </instanceof>
1576                         <instanceof
1577                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1578                         </instanceof>
1579                      </or>
1580                   </iterate>
1581                </and>
1582                <and>
1583                   <count
1584                         value="+">
1585                   </count>
1586                   <iterate>
1587                      <instanceof
1588                            value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
1589                      </instanceof>
1590                   </iterate>
1591                </and>
1592             </or>
1593          </activeWhen>
1594       </handler>
1595       <handler
1596             commandId="org.eclipse.egit.ui.team.Push">
1597          <class
1598                class="org.eclipse.egit.ui.internal.actions.PushActionHandler">
1599          </class>
1600          <activeWhen>
1601             <test
1602                   property="GitSelection.projectsSingleRepository">
1603             </test>
1604          </activeWhen>
1605       </handler>
1606       <handler
1607             commandId="org.eclipse.egit.ui.team.PushBranch">
1608          <class
1609                class="org.eclipse.egit.ui.internal.actions.PushBranchActionHandler">
1610          </class>
1611          <activeWhen>
1612             <or>
1613                <reference
1614                      definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
1615                </reference>
1616                <and>
1617                   <count
1618                         value="1">
1619                   </count>
1620                   <iterate>
1621                              <instanceof
1622                                    value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1623                              </instanceof>
1624                   </iterate>
1625                </and>
1626             </or>
1627          </activeWhen>
1628       </handler>
1629       <handler
1630             commandId="org.eclipse.egit.ui.team.PushTags">
1631          <class
1632                class="org.eclipse.egit.ui.internal.actions.PushTagsActionHandler">
1633          </class>
1634          <activeWhen>
1635             <or>
1636                <test
1637                      property="GitSelection.projectsSingleRepository">
1638                </test>
1639                <and>
1640                   <count
1641                         value="1">
1642                   </count>
1643                   <iterate>
1644                              <instanceof
1645                                    value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1646                              </instanceof>
1647                   </iterate>
1648                </and>
1649                <and>
1650                   <count
1651                         value="1">
1652                   </count>
1653                   <iterate>
1654                              <instanceof
1655                                    value="org.eclipse.egit.ui.internal.repository.tree.TagsNode">
1656                              </instanceof>
1657                   </iterate>
1658                </and>
1659             </or>
1660          </activeWhen>
1661       </handler>
1662       <handler
1663             commandId="org.eclipse.egit.ui.team.Merge">
1664          <class
1665                class="org.eclipse.egit.ui.internal.repository.tree.command.MergeCommand">
1666          </class>
1667          <activeWhen>
1668             <and>
1669                <count
1670                      value="1">
1671                </count>
1672                <and>
1673                   <iterate>
1674                      <or>
1675                         <instanceof
1676                               value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
1677                         </instanceof>
1678                         <instanceof
1679                               value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
1680                         </instanceof>
1681                         <instanceof
1682                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1683                         </instanceof>
1684                      </or>
1685                   </iterate>
1686                </and>
1687             </and>
1688          </activeWhen>
1689       </handler>
1690       <handler
1691             class="org.eclipse.egit.ui.internal.repository.tree.command.AddToIndexCommand"
1692             commandId="org.eclipse.egit.ui.team.AddToIndex">
1693          <activeWhen>
1694             <and>
1695                <count
1696                      value="+">
1697                </count>
1698                <iterate
1699                      ifEmpty="false"
1700                      operator="and">
1701                   <or>
1702                      <instanceof
1703                            value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
1704                      </instanceof>
1705                      <instanceof
1706                            value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
1707                      </instanceof>
1708                      <instanceof
1709                            value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
1710                      </instanceof>
1711                   </or>
1712                </iterate>
1713             </and>
1714          </activeWhen>
1715       </handler>
1716       <handler
1717             commandId="org.eclipse.ui.edit.delete">
1718          <class
1719                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteFileCommand">
1720          </class>
1721          <activeWhen>
1722                <and>
1723                   <count
1724                         value="+">
1725                   </count>
1726                   <iterate
1727                         ifEmpty="false"
1728                         operator="and">
1729                      <or>
1730                         <instanceof
1731                               value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
1732                         </instanceof>
1733                         <instanceof
1734                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
1735                         </instanceof>
1736                      </or>
1737                   </iterate>
1738                </and>
1739          </activeWhen>
1740       </handler>
1741       <handler
1742             commandId="org.eclipse.ui.edit.delete">
1743          <class
1744                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveOrDeleteRepositoryCommand">
1745          </class>
1746          <activeWhen>
1747             <and>
1748                <count
1749                      value="1">
1750                </count>
1751                <iterate>
1752                   <instanceof
1753                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1754                   </instanceof>
1755                </iterate>
1756             </and>
1757          </activeWhen>
1758       </handler>
1759       <handler
1760             commandId="org.eclipse.ui.edit.delete">
1761          <class
1762                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteBranchCommand">
1763          </class>
1764          <activeWhen>
1765                <and>
1766                   <count
1767                         value="+">
1768                   </count>
1769                   <iterate>
1770                      <and>
1771                         <or>
1772                            <instanceof
1773                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
1774                            </instanceof>
1775                            <instanceof
1776                                  value="org.eclipse.egit.ui.internal.repository.tree.BranchHierarchyNode">
1777                            </instanceof>
1778                            <test
1779                                  property="GitRepository.isLocalBranch">
1780                            </test>
1781                         </or>
1782                         <test property="GitRepository.isRefCheckedOut" value="false" />
1783                      </and>
1784                   </iterate>
1785                </and>
1786          </activeWhen>
1787       </handler>
1788       <handler
1789             commandId="org.eclipse.ui.edit.delete">
1790          <class
1791                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveRemoteCommand">
1792          </class>
1793          <activeWhen>
1794             <and>
1795                <count
1796                      value="1">
1797                </count>
1798                <iterate
1799                      ifEmpty="false"
1800                      operator="and">
1801                   <instanceof
1802                         value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1803                   </instanceof>
1804                </iterate>
1805             </and>
1806          </activeWhen>
1807       </handler>
1808       <handler
1809             commandId="org.eclipse.ui.edit.delete">
1810          <class
1811                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteFetchCommand">
1812          </class>
1813          <activeWhen>
1814             <and>
1815                <count
1816                      value="1">
1817                </count>
1818                <iterate
1819                      ifEmpty="false"
1820                      operator="and">
1821                   <instanceof
1822                         value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
1823                   </instanceof>
1824                </iterate>
1825             </and>
1826          </activeWhen>
1827       </handler>
1828       <handler
1829             commandId="org.eclipse.ui.edit.delete">
1830          <class
1831                class="org.eclipse.egit.ui.internal.repository.tree.command.DeletePushCommand">
1832          </class>
1833          <activeWhen>
1834             <and>
1835                <count
1836                      value="1">
1837                </count>
1838                <iterate
1839                      ifEmpty="false"
1840                      operator="and">
1841                   <instanceof
1842                         value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
1843                   </instanceof>
1844                </iterate>
1845             </and>
1846          </activeWhen>
1847       </handler>
1848       <handler
1849             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureBranch">
1850          <class
1851                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureBranchCommand">
1852          </class>
1853          <activeWhen>
1854             <reference
1855                   definitionId="org.eclipse.egit.ui.singleRefNode">
1856             </reference>
1857          </activeWhen>
1858       </handler>
1859       <handler
1860             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureFetch">
1861          <class
1862                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureFetchCommand">
1863          </class>
1864          <activeWhen>
1865             <reference
1866                   definitionId="org.eclipse.egit.ui.repositoriesViewCanConfigureFetch">
1867             </reference>
1868          </activeWhen>
1869       </handler>
1870       <handler
1871             commandId="org.eclipse.egit.ui.RepositoriesViewConfigurePush">
1872          <class
1873                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigurePushCommand">
1874          </class>
1875          <activeWhen>
1876             <reference
1877                   definitionId="org.eclipse.egit.ui.repositoriesViewCanConfigurePush">
1878             </reference>
1879          </activeWhen>
1880       </handler>
1881       <handler
1882             commandId="org.eclipse.egit.ui.RepositoriesViewChangeCredentials">
1883          <class
1884                class="org.eclipse.egit.ui.internal.repository.tree.command.ChangeCredentialsCommand">
1885          </class>
1886          <activeWhen>
1887             <reference
1888                   definitionId="org.eclipse.egit.ui.repositoryTreePushFetchNode">
1889             </reference>
1890          </activeWhen>
1891       </handler>
1892       <handler
1893             commandId="org.eclipse.egit.ui.RepositoriesViewClearCredentials">
1894          <class
1895                class="org.eclipse.egit.ui.internal.repository.tree.command.ClearCredentialsCommand">
1896          </class>
1897          <activeWhen>
1898             <reference
1899                   definitionId="org.eclipse.egit.ui.repositoryTreePushFetchNode">
1900             </reference>
1901          </activeWhen>
1902       </handler>
1903       <handler
1904             commandId="org.eclipse.ui.edit.delete">
1905          <class
1906                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteTagCommand">
1907          </class>
1908          <activeWhen>
1909             <and>
1910               <count
1911                      value="+">
1912               </count>
1913               <iterate>
1914                  <instanceof
1915                         value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
1916                   </instanceof>
1917                </iterate>
1918             </and>
1919          </activeWhen>
1920       </handler>
1921       <handler
1922             commandId="org.eclipse.egit.ui.team.Merge">
1923          <class
1924                class="org.eclipse.egit.ui.internal.actions.MergeActionHandler">
1925          </class>
1926          <activeWhen>
1927             <test
1928                   property="GitSelection.projectsSingleRepository">
1929             </test>
1930          </activeWhen>
1931       </handler>
1932       <handler
1933             commandId="org.eclipse.egit.ui.team.Rebase">
1934          <class
1935                class="org.eclipse.egit.ui.internal.commands.shared.RebaseCurrentRefCommand">
1936          </class>
1937          <activeWhen>
1938             <and>
1939                <count
1940                      value="1">
1941                </count>
1942                <iterate>
1943                   <instanceof
1944                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1945                   </instanceof>
1946                   <not>
1947                      <instanceof
1948                            value="org.eclipse.egit.ui.internal.selection.RepositoryVirtualNode">
1949                      </instanceof>
1950                   </not>
1951                </iterate>
1952             </and>
1953          </activeWhen>
1954       </handler>
1955       <handler
1956             commandId="org.eclipse.egit.ui.team.Rebase">
1957          <class
1958                class="org.eclipse.egit.ui.internal.actions.RebaseActionHandler">
1959          </class>
1960          <activeWhen>
1961             <test
1962                   property="GitSelection.projectsSingleRepository">
1963             </test>
1964          </activeWhen>
1965       </handler>
1966       <handler
1967             commandId="org.eclipse.egit.ui.team.Synchronize">
1968          <class
1969                class="org.eclipse.egit.ui.internal.repository.tree.command.SynchronizeCommand">
1970          </class>
1971          <activeWhen>
1972             <or>
1973                <and>
1974                   <count value="1" />
1975                   <iterate>
1976                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode" />
1977                      <not>
1978                         <instanceof value="org.eclipse.egit.ui.internal.selection.RepositoryVirtualNode" />
1979                      </not>
1980                   </iterate>
1981                </and>
1982                <and>
1983                   <count value="2" />
1984                   <iterate>
1985                      <or>
1986                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
1987                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
1988                      </or>
1989                   </iterate>
1990                   <test property="GitSelection.selectionSingleRepository" />
1991                </and>
1992             </or>
1993          </activeWhen>
1994       </handler>
1995       <handler
1996             commandId="org.eclipse.egit.ui.team.ShowHistory">
1997          <class
1998                class="org.eclipse.egit.ui.internal.actions.ShowHistoryActionHandler">
1999          </class>
2000          <activeWhen>
2001             <reference
2002                   definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
2003             </reference>
2004          </activeWhen>
2005       </handler>
2006       <handler
2007             commandId="org.eclipse.egit.ui.team.Reset">
2008          <class
2009                class="org.eclipse.egit.ui.internal.repository.tree.command.ResetCommand">
2010          </class>
2011          <activeWhen>
2012             <and>
2013                <count
2014                      value="1">
2015                </count>
2016                <iterate>
2017                   <instanceof
2018                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
2019                   </instanceof>
2020                   <not>
2021                      <instanceof
2022                            value="org.eclipse.egit.ui.internal.selection.RepositoryVirtualNode">
2023                      </instanceof>
2024                   </not>
2025                </iterate>
2026             </and>
2027          </activeWhen>
2028       </handler>
2029       <handler
2030             commandId="org.eclipse.egit.ui.team.Reset">
2031          <class
2032                class="org.eclipse.egit.ui.internal.actions.ResetActionHandler">
2033          </class>
2034          <activeWhen>
2035             <test
2036                   property="GitSelection.projectsSingleRepository">
2037             </test>
2038          </activeWhen>
2039       </handler>
2040       <handler
2041             commandId="org.eclipse.ui.file.refresh">
2042          <class
2043                class="org.eclipse.egit.ui.internal.repository.tree.command.RefreshCommand">
2044          </class>
2045          <activeWhen>
2046              <with
2047                    variable="activePartId">
2048                 <equals
2049                         value="org.eclipse.egit.ui.RepositoriesView">
2050                 </equals>
2051              </with>
2052           </activeWhen>
2053       </handler>
2054       <handler
2055             commandId="org.eclipse.egit.ui.RepositoriesViewRemoveRemote">
2056          <class
2057                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveRemoteCommand">
2058          </class>
2059          <activeWhen>
2060              <and>
2061                   <count
2062                         value="1">
2063                   </count>
2064                   <iterate
2065                         ifEmpty="false"
2066                         operator="and">
2067                      <instanceof
2068                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
2069                      </instanceof>
2070                   </iterate>
2071                </and>
2072          </activeWhen>
2073       </handler>
2074       <handler
2075             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote">
2076          <class
2077                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureGerritRemoteCommand">
2078          </class>
2079          <activeWhen>
2080              <and>
2081                   <count
2082                         value="1">
2083                   </count>
2084                   <iterate
2085                         ifEmpty="false"
2086                         operator="and">
2087                      <instanceof
2088                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
2089                      </instanceof>
2090                   </iterate>
2091                </and>
2092          </activeWhen>
2093       </handler>
2094       <handler
2095             commandId="org.eclipse.egit.ui.RepositoriesViewCopyPath">
2096          <class
2097                class="org.eclipse.egit.ui.internal.repository.tree.command.CopyPathCommand">
2098          </class>
2099          <activeWhen>
2100             <reference
2101                   definitionId="org.eclipse.egit.ui.repositoryTreePathNode">
2102             </reference>
2103          </activeWhen>
2104       </handler>
2105       <handler
2106             commandId="org.eclipse.ui.edit.paste">
2107          <class
2108                class="org.eclipse.egit.ui.internal.repository.tree.command.PasteCommand">
2109          </class>
2110          <activeWhen>
2111             <with variable="activePart">
2112                <instanceof value="org.eclipse.egit.ui.internal.repository.RepositoriesView" />
2113             </with>
2114          </activeWhen>
2115       </handler>
2116       <handler
2117             commandId="org.eclipse.ui.edit.rename">
2118          <class
2119                class="org.eclipse.egit.ui.internal.repository.tree.command.RenameBranchCommand">
2120          </class>
2121          <activeWhen>
2122             <reference
2123                   definitionId="org.eclipse.egit.ui.singleRefNode">
2124             </reference>
2125          </activeWhen>
2126       </handler>
2127       <handler
2128             commandId="org.eclipse.egit.ui.team.RenameBranch">
2129          <class
2130                class="org.eclipse.egit.ui.internal.repository.tree.command.RenameBranchCommand">
2131          </class>
2132          <activeWhen>
2133             <and>
2134                <count value="1" />
2135                <iterate>
2136                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2137                </iterate>
2138             </and>
2139          </activeWhen>
2140       </handler>
2141       <handler
2142             commandId="org.eclipse.egit.ui.team.RenameBranch"
2143             class="org.eclipse.egit.ui.internal.actions.RenameBranchActionHandler">
2144          <activeWhen>
2145             <test property="GitSelection.projectsSingleRepository" />
2146          </activeWhen>
2147       </handler>
2148       <handler
2149             commandId="org.eclipse.ui.edit.rename"
2150             class="org.eclipse.egit.ui.internal.history.command.RenameBranchOnCommitHandler">
2151          <activeWhen>
2152             <and>
2153                <count value="1" />
2154                <iterate>
2155                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2156                   <test property="Git.hasRef" args="refs/heads/,refs/remotes" />
2157                </iterate>
2158             </and>
2159          </activeWhen>
2160       </handler>
2161       <handler
2162             commandId="org.eclipse.egit.ui.team.submodule.update">
2163          <class
2164                class="org.eclipse.egit.ui.internal.repository.tree.command.SubmoduleUpdateCommand">
2165          </class>
2166          <activeWhen>
2167              <and>
2168                   <count
2169                         value="+">
2170                   </count>
2171                   <iterate>
2172                      <or>
2173                         <and>
2174                            <instanceof
2175                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2176                            </instanceof>
2177                            <test
2178                                  property="GitRepository.isSubmodule">
2179                            </test>
2180                         </and>
2181                         <instanceof
2182                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
2183                         </instanceof>
2184                      </or>
2185                   </iterate>
2186                </and>
2187          </activeWhen>
2188       </handler>
2189       <handler
2190             commandId="org.eclipse.egit.ui.team.submodule.sync">
2191          <class
2192                class="org.eclipse.egit.ui.internal.repository.tree.command.SubmoduleSyncCommand">
2193          </class>
2194          <activeWhen>
2195              <and>
2196                   <count
2197                         value="+">
2198                   </count>
2199                   <iterate>
2200                      <or>
2201                         <and>
2202                            <instanceof
2203                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2204                            </instanceof>
2205                            <test
2206                                  property="GitRepository.isSubmodule">
2207                            </test>
2208                         </and>
2209                         <instanceof
2210                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
2211                         </instanceof>
2212                      </or>
2213                   </iterate>
2214                </and>
2215          </activeWhen>
2216       </handler>
2217       <handler
2218             commandId="org.eclipse.egit.ui.team.submodule.add">
2219          <class
2220                class="org.eclipse.egit.ui.internal.repository.tree.command.SubmoduleAddCommand">
2221          </class>
2222          <activeWhen>
2223              <and>
2224                   <count
2225                         value="1">
2226                   </count>
2227                   <iterate>
2228                      <or>
2229                         <and>
2230                            <instanceof
2231                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2232                            </instanceof>
2233                            <test property="GitRepository.isSubmodule" value="false" />
2234                            <test property="GitRepository.isBare" value="false" />
2235                         </and>
2236                         <instanceof
2237                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
2238                         </instanceof>
2239                      </or>
2240                   </iterate>
2241                </and>
2242          </activeWhen>
2243       </handler>
2244       <handler
2245             commandId="org.eclipse.ui.edit.delete">
2246          <class
2247                class="org.eclipse.egit.ui.internal.repository.tree.command.StashDropCommand">
2248          </class>
2249          <activeWhen>
2250              <and>
2251                   <count
2252                         value="+">
2253                   </count>
2254                   <iterate>
2255                      <and>
2256                         <instanceof
2257                               value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode">
2258                         </instanceof>
2259                         <test property="GitRepository.isBare" value="false" />
2260                         <test property="GitRepository.isSafe" />
2261                      </and>
2262                   </iterate>
2263                </and>
2264          </activeWhen>
2265       </handler>
2266       <handler
2267             commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand">
2268          <class
2269                class="org.eclipse.egit.ui.internal.reflog.command.CopyHandler">
2270          </class>
2271          <activeWhen>
2272             <and>
2273                <count
2274                      value="1">
2275                </count>
2276                <iterate>
2277                   <adapt
2278                         type="org.eclipse.jgit.lib.ReflogEntry">
2279                   </adapt>
2280                </iterate>
2281             </and>
2282          </activeWhen>
2283       </handler>
2284       <handler
2285             commandId="org.eclipse.egit.ui.team.GarbageCollect">
2286          <class
2287                class="org.eclipse.egit.ui.internal.repository.tree.command.GarbageCollectCommand">
2288          </class>
2289          <activeWhen>
2290              <and>
2291                   <count
2292                         value="+">
2293                   </count>
2294                   <iterate>
2295                      <and>
2296                         <instanceof
2297                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2298                         </instanceof>
2299                         <test
2300                               property="GitRepository.isSafe">
2301                         </test>
2302                         <test
2303                               property="GitRepository.containsHead">
2304                         </test>
2305                      </and>
2306                   </iterate>
2307                </and>
2308          </activeWhen>
2309       </handler>
2310       <handler
2311             commandId="org.eclipse.egit.ui.team.InstallLfsLocal">
2312          <class
2313                class="org.eclipse.egit.ui.internal.repository.tree.command.InstallLfsLocalCommand">
2314          </class>
2315          <activeWhen>
2316              <and>
2317                   <count
2318                         value="+">
2319                   </count>
2320                   <iterate>
2321                      <and>
2322                         <instanceof
2323                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2324                         </instanceof>
2325                         <test
2326                               property="GitRepository.isSafe">
2327                         </test>
2328                         <test
2329                               property="GitRepository.canEnableLfs">
2330                         </test>
2331                      </and>
2332                   </iterate>
2333                </and>
2334          </activeWhen>
2335       </handler>
2336       <handler
2337             class="org.eclipse.egit.ui.internal.actions.UntrackActionHandler"
2338             commandId="org.eclipse.egit.ui.team.Untrack">
2339          <activeWhen>
2340             <reference
2341                   definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
2342             </reference>
2343          </activeWhen>
2344       </handler>
2345       <handler
2346             class="org.eclipse.egit.ui.internal.actions.DisconnectActionHandler"
2347             commandId="org.eclipse.egit.ui.team.Disconnect">
2348          <activeWhen>
2349             <test
2350                   property="GitSelection.projectsWithRepositories">
2351             </test>
2352          </activeWhen>
2353       </handler>
2354       <handler
2355             class="org.eclipse.egit.ui.internal.actions.ShowBlameActionHandler"
2356             commandId="org.eclipse.egit.ui.team.ShowBlame">
2357          <activeWhen>
2358             <or>
2359                <and>
2360                   <count value="1" />
2361                   <iterate>
2362                      <adapt type="org.eclipse.core.resources.IResource">
2363                         <instanceof value="org.eclipse.core.resources.IFile" />
2364                         <test property="GitResource.isShared" />
2365                      </adapt>
2366                   </iterate>
2367                </and>
2368                <with variable="activePart">
2369                   <instanceof value="org.eclipse.ui.IEditorPart" />
2370                   <with variable="activeEditorInput">
2371                      <or>
2372                         <adapt type="org.eclipse.core.resources.IFile">
2373                            <test property="GitResource.isShared" />
2374                         </adapt>
2375                         <adapt type="org.eclipse.team.core.history.IFileRevision">
2376                            <instanceof value="org.eclipse.egit.core.internal.storage.CommitFileRevision" />
2377                         </adapt>
2378                      </or>
2379                   </with>
2380                </with>
2381             </or>
2382          </activeWhen>
2383       </handler>
2384       <handler
2385             commandId="org.eclipse.egit.ui.team.CompareWithHead">
2386          <class
2387                class="org.eclipse.egit.ui.internal.actions.CompareWithHeadActionHandler">
2388          </class>
2389          <activeWhen>
2390             <and>
2391                <test property="GitSelection.selectionSingleRepository" />
2392                <test property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources" />
2393             </and>
2394          </activeWhen>
2395       </handler>
2396       <handler
2397             commandId="org.eclipse.egit.ui.team.CompareWithHead">
2398          <class
2399                class="org.eclipse.egit.ui.internal.repository.tree.command.CompareWithHeadCommand">
2400          </class>
2401          <activeWhen>
2402             <and>
2403                <test property="GitSelection.selectionSingleRepository" />
2404                <iterate>
2405                   <or>
2406                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
2407                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FolderNode" />
2408                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode" />
2409                   </or>
2410                </iterate>
2411             </and>
2412          </activeWhen>
2413       </handler>
2414       <handler
2415             commandId="org.eclipse.egit.ui.team.CompareWithIndex">
2416          <class
2417                class="org.eclipse.egit.ui.internal.actions.CompareWithIndexActionHandler">
2418          </class>
2419          <activeWhen>
2420             <and>
2421                <test property="GitSelection.selectionSingleRepository" />
2422                <test property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources" />
2423             </and>
2424          </activeWhen>
2425       </handler>
2426       <handler
2427             commandId="org.eclipse.egit.ui.team.CompareIndexWithHead">
2428          <class
2429                class="org.eclipse.egit.ui.internal.actions.CompareIndexWithHeadActionHandler">
2430          </class>
2431          <activeWhen>
2432             <and>
2433                <count value="1" />
2434                <test property="org.eclipse.egit.ui.resources.ResourceState.hasStagedChanges" />
2435             </and>
2436          </activeWhen>
2437       </handler>
2438       <handler
2439             commandId="org.eclipse.egit.ui.team.CompareWithPrevious">
2440          <class
2441                class="org.eclipse.egit.ui.internal.actions.CompareWithPreviousActionHandler">
2442          </class>
2443          <activeWhen>
2444             <and>
2445                <count value="1" />
2446                <test property="org.eclipse.egit.ui.resources.ResourceState.hasTrackedResources" />
2447             </and>
2448          </activeWhen>
2449       </handler>
2450       <handler
2451             commandId="org.eclipse.egit.ui.team.CompareWithCommit">
2452          <class
2453                class="org.eclipse.egit.ui.internal.actions.CompareWithCommitActionHandler">
2454          </class>
2455          <activeWhen>
2456             <reference definitionId="org.eclipse.egit.ui.resourcesSingleRepository" />
2457          </activeWhen>
2458       </handler>
2459       <handler
2460             commandId="org.eclipse.egit.ui.team.CompareWithCommit">
2461          <class
2462                class="org.eclipse.egit.ui.internal.repository.tree.command.CompareWithCommitCommand">
2463          </class>
2464          <activeWhen>
2465             <and>
2466                <test property="GitSelection.selectionSingleRepository" />
2467                <iterate>
2468                   <or>
2469                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
2470                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FolderNode" />
2471                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode" />
2472                   </or>
2473                </iterate>
2474             </and>
2475          </activeWhen>
2476       </handler>
2477       <handler
2478             commandId="org.eclipse.egit.ui.team.CompareWithRef">
2479          <class
2480                class="org.eclipse.egit.ui.internal.actions.CompareWithRefActionHandler">
2481          </class>
2482          <activeWhen>
2483             <reference definitionId="org.eclipse.egit.ui.resourcesSingleRepository" />
2484          </activeWhen>
2485       </handler>
2486       <handler
2487             commandId="org.eclipse.egit.ui.team.CompareWithRef">
2488          <class
2489                class="org.eclipse.egit.ui.internal.repository.tree.command.CompareWithRefCommand">
2490          </class>
2491          <activeWhen>
2492             <and>
2493                <test property="GitSelection.selectionSingleRepository" />
2494                <iterate>
2495                   <or>
2496                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
2497                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FolderNode" />
2498                     <instanceof value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode" />
2499                   </or>
2500                </iterate>
2501             </and>
2502          </activeWhen>
2503       </handler>
2504       <handler
2505             commandId="org.eclipse.egit.ui.team.ReplaceWithPrevious">
2506          <class
2507                class="org.eclipse.egit.ui.internal.actions.ReplaceWithPreviousActionHandler">
2508          </class>
2509          <activeWhen>
2510             <and>
2511                <count value="1" />
2512                <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
2513                <test property="org.eclipse.egit.ui.resources.ResourceState.hasTrackedResources" />
2514             </and>
2515          </activeWhen>
2516       </handler>
2517       <handler
2518             commandId="org.eclipse.egit.ui.team.Discard">
2519          <class
2520                class="org.eclipse.egit.ui.internal.actions.DiscardChangesActionHandler">
2521          </class>
2522          <activeWhen>
2523             <test property="GitSelection.resourcesAllInRepository" args="isSafe" />
2524          </activeWhen>
2525       </handler>
2526       <handler
2527             commandId="org.eclipse.egit.ui.team.ReplaceWithHead">
2528          <class
2529                class="org.eclipse.egit.ui.internal.actions.ReplaceWithHeadActionHandler">
2530          </class>
2531          <activeWhen>
2532             <test property="GitSelection.resourcesAllInRepository" args="!isBare,hasHead" />
2533          </activeWhen>
2534       </handler>
2535       <handler
2536             commandId="org.eclipse.egit.ui.team.ReplaceWithCommit">
2537          <class
2538                class="org.eclipse.egit.ui.internal.actions.ReplaceWithCommitActionHandler">
2539          </class>
2540          <activeWhen>
2541             <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
2542          </activeWhen>
2543       </handler>
2544       <handler
2545             commandId="org.eclipse.egit.ui.team.ReplaceWithRef">
2546          <class
2547                class="org.eclipse.egit.ui.internal.actions.ReplaceWithRefActionHandler">
2548          </class>
2549          <activeWhen>
2550             <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
2551          </activeWhen>
2552       </handler>
2553       <handler
2554             commandId="org.eclipse.egit.ui.team.ReplaceWithOurs">
2555          <class
2556                class="org.eclipse.egit.ui.internal.actions.ReplaceWithOursActionHandler">
2557          </class>
2558          <activeWhen>
2559             <test property="GitSelection.conflictsInSingleRepository" />
2560          </activeWhen>
2561       </handler>
2562       <handler
2563             commandId="org.eclipse.egit.ui.team.ReplaceWithTheirs">
2564          <class
2565                class="org.eclipse.egit.ui.internal.actions.ReplaceWithTheirsActionHandler">
2566          </class>
2567          <activeWhen>
2568             <test property="GitSelection.conflictsInSingleRepository" />
2569          </activeWhen>
2570       </handler>
2571       <handler
2572             commandId="org.eclipse.egit.ui.RepositoriesViewImportProjects">
2573          <class
2574                class="org.eclipse.egit.ui.internal.repository.tree.command.ImportProjectsCommand">
2575          </class>
2576          <activeWhen>
2577             <or>
2578                <and>
2579                   <count
2580                         value="1">
2581                   </count>
2582                   <iterate>
2583                      <or>
2584                         <instanceof
2585                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2586                         </instanceof>
2587                         <instanceof
2588                               value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
2589                         </instanceof>
2590                      </or>
2591                      <test property="GitRepository.isBare" value="false" />
2592                   </iterate>
2593                </and>
2594                <and>
2595                   <count
2596                         value="+">
2597                   </count>
2598                   <iterate>
2599                      <or>
2600                         <instanceof
2601                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
2602                         </instanceof>
2603                      </or>
2604                      <test property="GitRepository.isBare" value="false" />
2605                   </iterate>
2606                </and>
2607             </or>
2608          </activeWhen>
2609       </handler>
2610       <handler
2611             commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch">
2612          <class
2613                class="org.eclipse.egit.ui.internal.repository.tree.command.CreateBranchCommand">
2614          </class>
2615          <activeWhen>
2616             <and>
2617                <count value="1" />
2618                <iterate>
2619                   <or>
2620                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
2621                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
2622                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
2623                   </or>
2624                </iterate>
2625             </and>
2626          </activeWhen>
2627       </handler>
2628       <handler
2629             commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch">
2630          <class
2631                class="org.eclipse.egit.ui.internal.commit.command.CreateBranchHandler">
2632          </class>
2633          <activeWhen>
2634             <and>
2635                <count value="1" />
2636                <iterate>
2637                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2638                      <test property="Git.isStash" value="false" />
2639                   </adapt>
2640                </iterate>
2641             </and>
2642          </activeWhen>
2643       </handler>
2644       <handler
2645             commandId="org.eclipse.egit.ui.RepositoriesViewNewRemote">
2646          <class
2647                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureRemoteCommand">
2648          </class>
2649          <activeWhen>
2650             <and>
2651                <count value="1" />
2652                <iterate>
2653                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RemotesNode" />
2654                </iterate>
2655             </and>
2656          </activeWhen>
2657       </handler>
2658       <handler
2659             commandId="org.eclipse.egit.ui.RepositoriesViewOpenInEditor">
2660          <class
2661                class="org.eclipse.egit.ui.internal.repository.tree.command.OpenInEditorCommand">
2662          </class>
2663          <activeWhen>
2664             <and>
2665                <count value="1" />
2666                <iterate>
2667                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
2668                </iterate>
2669             </and>
2670          </activeWhen>
2671       </handler>
2672       <handler
2673             commandId="org.eclipse.egit.ui.RepositoriesViewOpen">
2674          <class
2675                class="org.eclipse.egit.ui.internal.repository.tree.command.OpenCommand">
2676          </class>
2677          <activeWhen>
2678             <and>
2679                <count value="1" />
2680                <iterate>
2681                   <or>
2682                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
2683                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
2684                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
2685                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode" />
2686                   </or>
2687                </iterate>
2688             </and>
2689          </activeWhen>
2690       </handler>
2691       <handler
2692             commandId="org.eclipse.egit.ui.RepositoriesViewRemove">
2693          <class
2694                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveCommand">
2695          </class>
2696          <activeWhen>
2697             <iterate
2698                   ifEmpty="false"
2699                   operator="and">
2700                <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2701                <test property="GitRepository.isSubmodule" value="false" />
2702             </iterate>
2703          </activeWhen>
2704       </handler>
2705       <handler
2706             commandId="org.eclipse.egit.ui.RepositoriesViewDelete">
2707          <class
2708                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteCommand">
2709          </class>
2710          <activeWhen>
2711             <and>
2712                <count value="1" />
2713                <iterate>
2714                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2715                </iterate>
2716             </and>
2717          </activeWhen>
2718       </handler>
2719       <handler
2720             commandId="org.eclipse.egit.ui.CheckoutCommand">
2721          <class
2722                class="org.eclipse.egit.ui.internal.repository.tree.command.CheckoutCommand">
2723          </class>
2724          <activeWhen>
2725             <and>
2726                <count value="1" />
2727                <iterate>
2728                   <or>
2729                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
2730                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
2731                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
2732                   </or>
2733                   <test property="GitRepository.isRefCheckedOut" value="false" />
2734                   <test property="GitRepository.isBare" value="false" />
2735                </iterate>
2736             </and>
2737          </activeWhen>
2738       </handler>
2739       <handler
2740             commandId="org.eclipse.egit.ui.ImportChangedProjectsCommandId">
2741          <class
2742                class="org.eclipse.egit.ui.internal.history.command.ImportChangedProjectsCommand">
2743          </class>
2744          <activeWhen>
2745             <iterate ifEmpty="false">
2746                <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2747             </iterate>
2748          </activeWhen>
2749       </handler>
2750       <handler
2751             commandId="org.eclipse.egit.ui.CheckoutCommand">
2752          <class
2753                class="org.eclipse.egit.ui.internal.history.command.CheckoutCommitHandler">
2754          </class>
2755          <activeWhen>
2756             <and>
2757                <count value="1" />
2758                <iterate>
2759                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2760                   <test property="Git.canCommit" />
2761                </iterate>
2762             </and>
2763          </activeWhen>
2764       </handler>
2765       <handler
2766             commandId="org.eclipse.egit.ui.CheckoutCommand">
2767          <class
2768                class="org.eclipse.egit.ui.internal.commit.command.CheckoutHandler">
2769          </class>
2770          <activeWhen>
2771             <and>
2772                <with variable="activePart">
2773                   <instanceof value="org.eclipse.egit.ui.internal.commit.CommitEditor" />
2774                </with>
2775                <count value="1" />
2776                <iterate>
2777                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2778                      <test property="Git.isStash" value="false" />
2779                      <test property="Git.canCommit" />
2780                   </adapt>
2781                </iterate>
2782             </and>
2783          </activeWhen>
2784       </handler>
2785       <handler
2786             commandId="org.eclipse.egit.ui.team.ShowHistory">
2787          <class
2788                class="org.eclipse.egit.ui.internal.commit.command.ShowInHistoryHandler">
2789          </class>
2790          <activeWhen>
2791             <and>
2792                <with variable="activePart">
2793                   <instanceof value="org.eclipse.egit.ui.internal.commit.CommitEditor" />
2794                </with>
2795                <count value="1" />
2796                <iterate>
2797                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2798                      <test property="Git.isStash" value="false" />
2799                   </adapt>
2800                </iterate>
2801             </and>
2802          </activeWhen>
2803       </handler>
2804       <handler
2805             commandId="org.eclipse.egit.ui.team.CherryPick">
2806          <class
2807                class="org.eclipse.egit.ui.internal.commit.command.CherryPickHandler">
2808          </class>
2809          <activeWhen>
2810             <and>
2811                <count value="1" />
2812                <iterate>
2813                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2814                      <test property="Git.isStash" value="false" />
2815                      <test property="Git.isSafe" />
2816                   </adapt>
2817                </iterate>
2818             </and>
2819          </activeWhen>
2820       </handler>
2821       <handler
2822             commandId="org.eclipse.egit.ui.team.Revert">
2823          <class
2824                class="org.eclipse.egit.ui.internal.commit.command.RevertHandler">
2825          </class>
2826          <activeWhen>
2827             <iterate ifEmpty="false">
2828                <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2829                   <test property="Git.isStash" value="false" />
2830                   <test property="Git.isBare" value="false" />
2831                </adapt>
2832             </iterate>
2833          </activeWhen>
2834       </handler>
2835       <handler
2836             commandId="org.eclipse.egit.ui.team.stash.apply">
2837          <class
2838                class="org.eclipse.egit.ui.internal.commit.command.StashApplyHandler">
2839          </class>
2840          <activeWhen>
2841             <or>
2842                <and>
2843                   <count value="1" />
2844                   <iterate>
2845                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode" />
2846                      <test property="GitRepository.isBare" value="false" />
2847                      <test property="GitRepository.isSafe" />
2848                   </iterate>
2849                </and>
2850                <and>
2851                   <with variable="activePart">
2852                      <instanceof value="org.eclipse.egit.ui.internal.commit.CommitEditor" />
2853                   </with>
2854                   <count value="1" />
2855                   <iterate>
2856                      <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2857                         <test property="Git.isStash" />
2858                         <test property="Git.isBare" value="false" />
2859                         <test property="Git.isSafe" />
2860                      </adapt>
2861                   </iterate>
2862                </and>
2863             </or>
2864          </activeWhen>
2865       </handler>
2866       <handler
2867             commandId="org.eclipse.egit.ui.team.stash.drop">
2868          <class
2869                class="org.eclipse.egit.ui.internal.commit.command.StashDropHandler">
2870          </class>
2871          <activeWhen>
2872             <and>
2873                <with variable="activePart">
2874                   <instanceof value="org.eclipse.egit.ui.internal.commit.CommitEditor" />
2875                </with>
2876                <count value="1" />
2877                <iterate>
2878                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2879                      <test property="Git.isStash" />
2880                      <test property="Git.isBare" value="false" />
2881                      <test property="Git.isSafe" />
2882                   </adapt>
2883                </iterate>
2884             </and>
2885          </activeWhen>
2886       </handler>
2887       <handler
2888             commandId="org.eclipse.egit.ui.team.Tag">
2889          <class
2890                class="org.eclipse.egit.ui.internal.actions.TagActionHandler">
2891          </class>
2892          <activeWhen>
2893             <or>
2894                <test property="GitSelection.projectsSingleRepository" args="canCheckout" />
2895                <and>
2896                   <count value="1" />
2897                   <iterate>
2898                      <or>
2899                         <and>
2900                            <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagsNode" />
2901                            <test property="GitRepository.canCheckout" />
2902                         </and>
2903                         <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2904                            <test property="Git.isStash" value="false" />
2905                         </adapt>
2906                      </or>
2907                   </iterate>
2908                </and>
2909             </or>
2910          </activeWhen>
2911       </handler>
2912       <handler
2913             commandId="org.eclipse.egit.ui.AbortRebase">
2914          <class
2915                class="org.eclipse.egit.ui.internal.commands.shared.AbortRebaseCommand">
2916          </class>
2917          <activeWhen>
2918             <or>
2919                <and>
2920                   <count value="1" />
2921                   <iterate>
2922                      <and>
2923                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2924                         <test property="GitRepository.canAbortRebase" />
2925                      </and>
2926                   </iterate>
2927                </and>
2928                <test
2929                      property="GitSelection.projectsSingleRepository"
2930                      args="canAbortRebase">
2931                </test>
2932             </or>
2933          </activeWhen>
2934       </handler>
2935       <handler
2936             commandId="org.eclipse.egit.ui.ContinueRebase">
2937          <class
2938                class="org.eclipse.egit.ui.internal.commands.shared.ContinueRebaseCommand">
2939          </class>
2940          <activeWhen>
2941             <or>
2942                <and>
2943                   <count value="1" />
2944                   <iterate>
2945                      <and>
2946                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2947                         <test property="GitRepository.canContinueRebase" />
2948                      </and>
2949                   </iterate>
2950                </and>
2951                <test
2952                      property="GitSelection.projectsSingleRepository"
2953                      args="canContinueRebase">
2954                </test>
2955             </or>
2956          </activeWhen>
2957       </handler>
2958       <handler
2959             commandId="org.eclipse.egit.ui.SkipRebase">
2960          <class
2961                class="org.eclipse.egit.ui.internal.commands.shared.SkipRebaseCommand">
2962          </class>
2963          <activeWhen>
2964             <or>
2965                <and>
2966                   <count value="1" />
2967                   <iterate>
2968                      <and>
2969                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2970                         <test property="GitRepository.canAbortRebase" />
2971                      </and>
2972                   </iterate>
2973                </and>
2974                <test
2975                      property="GitSelection.projectsSingleRepository"
2976                      args="canAbortRebase">
2977                </test>
2978             </or>
2979          </activeWhen>
2980       </handler>
2981       <handler
2982             commandId="org.eclipse.egit.ui.team.clean">
2983          <class
2984                class="org.eclipse.egit.ui.internal.actions.CleanActionHandler">
2985          </class>
2986          <activeWhen>
2987             <or>
2988                <and>
2989                   <count value="1" />
2990                   <iterate>
2991                      <or>
2992                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2993                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode" />
2994                      </or>
2995                      <test property="GitRepository.isBare" value="false" />
2996                   </iterate>
2997                </and>
2998                <test property="GitSelection.projectsSingleRepository" />
2999             </or>
3000          </activeWhen>
3001       </handler>
3002       <handler
3003             commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand">
3004          <class
3005                class="org.eclipse.egit.ui.internal.history.command.OpenInCommitViewerHandler">
3006          </class>
3007          <activeWhen>
3008              <iterate operator="or" ifEmpty="false">
3009                 <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit" />
3010              </iterate>
3011          </activeWhen>
3012       </handler>
3013       <handler
3014             commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand">
3015          <class
3016                class="org.eclipse.egit.ui.internal.repository.tree.command.OpenInCommitViewerCommand">
3017          </class>
3018          <activeWhen>
3019             <or>
3020                <and>
3021                   <count value="1" />
3022                   <iterate>
3023                      <or>
3024                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
3025                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
3026                         <and>
3027                                <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
3028                                <test property="GitRepository.isCommit" />
3029                         </and>
3030                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode" />
3031                      </or>
3032                   </iterate>
3033                </and>
3034                <and>
3035                   <count value="(1-" />
3036                   <iterate>
3037                      <or>
3038                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
3039                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
3040                             <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
3041                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode" />
3042                      </or>
3043                   </iterate>
3044                </and>
3045             </or>
3046          </activeWhen>
3047       </handler>
3048       <handler
3049             commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand">
3050          <class
3051                class="org.eclipse.egit.ui.internal.commit.command.UnifiedDiffHandler">
3052          </class>
3053          <activeWhen>
3054             <and>
3055                <count value="2" />
3056                <iterate>
3057                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit" />
3058                </iterate>
3059             </and>
3060          </activeWhen>
3061       </handler>
3062       <handler
3063             commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand">
3064          <class
3065                class="org.eclipse.egit.ui.internal.reflog.command.ReflogUnifiedDiffHandler">
3066          </class>
3067          <activeWhen>
3068             <and>
3069                <count value="2" />
3070                <iterate>
3071                   <adapt type="org.eclipse.jgit.lib.ReflogEntry" />
3072                </iterate>
3073             </and>
3074          </activeWhen>
3075       </handler>
3076       <handler
3077             commandId="org.eclipse.egit.ui.history.CompareWithWorkingTree">
3078          <class
3079                class="org.eclipse.egit.ui.internal.history.command.CompareWithWorkingTreeHandler">
3080          </class>
3081          <activeWhen>
3082             <and>
3083                <count value="1" />
3084                <iterate>
3085                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
3086                      <test property="Git.isBare" value="false" />
3087                   </adapt>
3088                </iterate>
3089             </and>
3090          </activeWhen>
3091       </handler>
3092       <handler
3093             commandId="org.eclipse.egit.ui.history.ShowVersions">
3094          <class
3095                class="org.eclipse.egit.ui.internal.history.command.ShowVersionsHandler">
3096          </class>
3097          <activeWhen>
3098             <and>
3099                <count value="1" />
3100                <iterate>
3101                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3102                </iterate>
3103             </and>
3104          </activeWhen>
3105       </handler>
3106       <handler
3107             commandId="org.eclipse.egit.ui.history.ShowBlame">
3108          <class
3109                class="org.eclipse.egit.ui.internal.history.command.ShowBlameHandler">
3110          </class>
3111          <activeWhen>
3112             <reference definitionId="org.eclipse.egit.ui.singleFileCommit" />
3113          </activeWhen>
3114       </handler>
3115       <handler
3116             commandId="org.eclipse.egit.ui.history.OpenInTextEditorCommand">
3117          <class
3118                class="org.eclipse.egit.ui.internal.history.command.OpenInTextEditorHandler">
3119          </class>
3120          <activeWhen>
3121             <reference definitionId="org.eclipse.egit.ui.singleFileCommit" />
3122          </activeWhen>
3123       </handler>
3124       <handler
3125             commandId="org.eclipse.egit.ui.history.PushCommit">
3126          <class
3127                class="org.eclipse.egit.ui.internal.history.command.PushCommitHandler">
3128          </class>
3129          <activeWhen>
3130             <and>
3131                <count value="1" />
3132                <iterate>
3133                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3134                </iterate>
3135             </and>
3136          </activeWhen>
3137       </handler>
3138       <handler
3139             commandId="org.eclipse.egit.ui.history.DeleteBranch">
3140          <class
3141                class="org.eclipse.egit.ui.internal.history.command.DeleteBranchOnCommitHandler">
3142          </class>
3143          <activeWhen>
3144             <and>
3145                <count value="1" />
3146                <iterate>
3147                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
3148                      <test property="Git.hasRef" args="refs/heads/,refs/remotes/" />
3149                   </adapt>
3150                </iterate>
3151             </and>
3152          </activeWhen>
3153       </handler>
3154       <handler
3155             commandId="org.eclipse.egit.ui.history.DeleteTag">
3156          <class
3157                class="org.eclipse.egit.ui.internal.history.command.DeleteTagOnCommitHandler">
3158          </class>
3159          <activeWhen>
3160             <and>
3161                <count value="1" />
3162                <iterate>
3163                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
3164                      <test property="Git.hasRef" args="refs/tags/" />
3165                   </adapt>
3166                </iterate>
3167             </and>
3168          </activeWhen>
3169       </handler>
3170       <handler
3171             commandId="org.eclipse.egit.ui.history.CreatePatch">
3172          <class
3173                class="org.eclipse.egit.ui.internal.history.command.CreatePatchHandler">
3174          </class>
3175          <activeWhen>
3176             <and>
3177                <count value="1" />
3178                <iterate>
3179                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
3180                      <or>
3181                         <test property="Git.parentCount" value="1" />
3182                         <test property="Git.parentCount" value="0" />
3183                      </or>
3184                   </adapt>
3185                </iterate>
3186             </and>
3187          </activeWhen>
3188       </handler>
3189       <handler
3190             commandId="org.eclipse.egit.ui.history.Merge">
3191          <class
3192                class="org.eclipse.egit.ui.internal.history.command.MergeHandler">
3193          </class>
3194          <activeWhen>
3195             <and>
3196                <count value="1" />
3197                <iterate>
3198                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3199                   <test property="Git.isSafe" />
3200                </iterate>
3201             </and>
3202          </activeWhen>
3203       </handler>
3204       <handler
3205             commandId="org.eclipse.egit.ui.RebaseCurrent">
3206          <class
3207                class="org.eclipse.egit.ui.internal.history.command.RebaseCurrentHandler">
3208          </class>
3209          <activeWhen>
3210             <and>
3211                <count value="1" />
3212                <iterate>
3213                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3214                   <test property="Git.isSafe" />
3215                </iterate>
3216             </and>
3217          </activeWhen>
3218       </handler>
3219       <handler
3220             commandId="org.eclipse.egit.ui.RebaseInteractiveCurrent">
3221          <class
3222                class="org.eclipse.egit.ui.internal.history.command.RebaseInteractiveCurrentHandler">
3223          </class>
3224          <activeWhen>
3225             <and>
3226                <count value="1" />
3227                <iterate>
3228                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3229                   <test property="Git.isSafe" />
3230                </iterate>
3231             </and>
3232          </activeWhen>
3233       </handler>
3234       <handler
3235             commandId="org.eclipse.egit.ui.history.Reset">
3236          <class
3237                class="org.eclipse.egit.ui.internal.history.command.ResetHandler">
3238          </class>
3239          <activeWhen>
3240             <and>
3241                <count value="1" />
3242                <iterate>
3243                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3244                </iterate>
3245             </and>
3246          </activeWhen>
3247       </handler>
3248       <handler
3249             commandId="org.eclipse.egit.ui.history.SetQuickdiffBaseline">
3250          <class
3251                class="org.eclipse.egit.ui.internal.history.command.SetQuickdiffBaselineHandler">
3252          </class>
3253          <activeWhen>
3254             <and>
3255                <count value="1" />
3256                <iterate>
3257                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3258                </iterate>
3259             </and>
3260          </activeWhen>
3261       </handler>
3262       <handler
3263             commandId="org.eclipse.egit.ui.history.ResetQuickdiffBaseline">
3264          <class
3265                class="org.eclipse.egit.ui.internal.history.command.ResetQuickdiffBaselineHandler">
3266          </class>
3267          <activeWhen>
3268             <iterate ifEmpty="false">
3269                <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3270             </iterate>
3271          </activeWhen>
3272       </handler>
3273       <handler
3274             commandId="org.eclipse.egit.ui.history.Reword">
3275          <class
3276                class="org.eclipse.egit.ui.internal.history.command.RewordHandler">
3277          </class>
3278          <activeWhen>
3279             <and>
3280                <count value="1" />
3281                <iterate>
3282                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3283                   <test property="Git.isSafe" />
3284                </iterate>
3285             </and>
3286          </activeWhen>
3287       </handler>
3288       <handler
3289             commandId="org.eclipse.egit.ui.history.Edit">
3290          <class
3291                class="org.eclipse.egit.ui.internal.history.command.EditHandler">
3292          </class>
3293          <activeWhen>
3294             <and>
3295                <count value="1" />
3296                <iterate>
3297                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3298                   <test property="Git.isSafe" />
3299                   <test property="Git.parentCount" value="1" />
3300                </iterate>
3301             </and>
3302          </activeWhen>
3303       </handler>
3304       <handler
3305             commandId="org.eclipse.egit.ui.history.Squash">
3306          <class
3307                class="org.eclipse.egit.ui.internal.history.command.SquashHandler">
3308          </class>
3309          <activeWhen>
3310             <and>
3311                <not>
3312                   <count value="1" />
3313                </not>
3314                <iterate ifEmpty="false">
3315                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3316                   <test property="Git.isSafe" />
3317                </iterate>
3318             </and>
3319          </activeWhen>
3320       </handler>
3321       <handler
3322             commandId="org.eclipse.egit.ui.history.CompareVersions">
3323          <class
3324                class="org.eclipse.egit.ui.internal.history.command.CompareVersionsHandler">
3325          </class>
3326          <activeWhen>
3327             <and>
3328                <count value="2" />
3329                <iterate>
3330                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3331                </iterate>
3332             </and>
3333          </activeWhen>
3334       </handler>
3335       <handler
3336             commandId="org.eclipse.egit.ui.history.CompareVersions">
3337          <class
3338                class="org.eclipse.egit.ui.internal.repository.tree.command.CompareCommand">
3339          </class>
3340          <activeWhen>
3341             <or>
3342                <and>
3343                   <count value="2" />
3344                   <iterate>
3345                      <or>
3346                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
3347                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
3348                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
3349                      </or>
3350                   </iterate>
3351                   <test property="GitSelection.selectionSingleRepository" />
3352                </and>
3353                <and>
3354                   <count value="1" />
3355                   <iterate>
3356                      <or>
3357                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
3358                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
3359                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
3360                      </or>
3361                      <test property="GitRepository.isBare" value="false" />
3362                   </iterate>
3363                </and>
3364             </or>
3365          </activeWhen>
3366       </handler>
3367       <handler
3368             commandId="org.eclipse.egit.ui.history.CompareVersionsInTree">
3369          <class
3370                class="org.eclipse.egit.ui.internal.repository.tree.command.CompareInTreeCommand">
3371          </class>
3372          <activeWhen>
3373             <and>
3374                <count value="2" />
3375                <iterate>
3376                   <or>
3377                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
3378                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
3379                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
3380                   </or>
3381                </iterate>
3382                <test property="GitSelection.selectionSingleRepository" />
3383             </and>
3384          </activeWhen>
3385       </handler>
3386       <handler
3387             commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand">
3388          <class
3389                class="org.eclipse.egit.ui.internal.repository.tree.command.CompareUnifiedCommand">
3390          </class>
3391          <activeWhen>
3392             <and>
3393                <count value="2" />
3394                <iterate>
3395                   <or>
3396                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
3397                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
3398                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
3399                   </or>
3400                </iterate>
3401                <test property="GitSelection.selectionSingleRepository" />
3402             </and>
3403          </activeWhen>
3404       </handler>
3405       <handler
3406             commandId="org.eclipse.egit.ui.history.CompareVersionsInTree">
3407          <class
3408                class="org.eclipse.egit.ui.internal.history.command.CompareVersionsInTreeHandler">
3409          </class>
3410          <activeWhen>
3411             <and>
3412                <count value="2" />
3413                <iterate>
3414                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3415                </iterate>
3416                <with variable="activePart">
3417                   <test property="GitHistory.isSingleFileHistory" value="false" />
3418                </with>
3419             </and>
3420          </activeWhen>
3421       </handler>
3422       <handler
3423             commandId="org.eclipse.egit.ui.RepositoriesViewShowInSystemExplorer">
3424          <class
3425                class="org.eclipse.egit.ui.internal.actions.ShowInSystemExplorerActionHandler">
3426          </class>
3427          <activeWhen>
3428             <and>
3429                <count value="1" />
3430                <iterate>
3431                   <or>
3432                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
3433                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
3434                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FolderNode" />
3435                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode" />
3436                   </or>
3437                </iterate>
3438             </and>
3439          </activeWhen>
3440       </handler>
3441       <handler
3442             commandId="org.eclipse.ui.edit.rename">
3443          <class
3444                class="org.eclipse.egit.ui.internal.repository.tree.command.RenameRepositoryGroupCommand">
3445          </class>
3446          <activeWhen>
3447             <and>
3448                <count value="1"/>
3449                <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
3450             </and>
3451          </activeWhen>
3452       </handler>
3453       <handler
3454             commandId="org.eclipse.ui.edit.delete">
3455          <class
3456                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteRepositoryGroupCommand">
3457          </class>
3458          <activeWhen>
3459             <and>
3460                <count value="+"/>
3461                <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
3462             </and>
3463          </activeWhen>
3464       </handler>
3465       <handler
3466             commandId="org.eclipse.egit.ui.RepositoriesCreateGroup">
3467          <class
3468                class="org.eclipse.egit.ui.internal.repository.tree.command.CreateRepositoryGroupCommand">
3469          </class>
3470          <activeWhen>
3471             <with variable="activePart">
3472                <instanceof value="org.eclipse.egit.ui.internal.repository.RepositoriesView" />
3473             </with>
3474          </activeWhen>
3475       </handler>
3476        <handler
3477             commandId="org.eclipse.egit.ui.RepositoriesViewCollapseWorkingTree">
3478          <class
3479                class="org.eclipse.egit.ui.internal.repository.tree.command.CollapseWorkingTreeCommand">
3480          </class>
3481          <activeWhen>
3482             <iterate>
3483                <or>
3484                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
3485                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FolderNode" />
3486                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode" />
3487                </or>
3488             </iterate>
3489          </activeWhen>
3490       </handler>
3491    </extension>
3492    <extension
3493          point="org.eclipse.ui.views">
3494       <view
3495             category="org.eclipse.egit.ui.GitCategory"
3496             class="org.eclipse.egit.ui.internal.repository.RepositoriesView"
3497             icon="icons/eview16/repo_rep.png"
3498             id="org.eclipse.egit.ui.RepositoriesView"
3499             name="%GitRepositoriesView_name"
3500             restorable="true">
3501       </view>
3502       <view
3503             category="org.eclipse.egit.ui.GitCategory"
3504             class="org.eclipse.egit.ui.internal.staging.StagingView"
3505             icon="icons/eview16/staging.png"
3506             id="org.eclipse.egit.ui.StagingView"
3507             name="%GitStagingView_name">
3508       </view>
3509       <view
3510             category="org.eclipse.egit.ui.GitCategory"
3511             class="org.eclipse.egit.ui.internal.rebase.RebaseInteractiveView"
3512             icon="icons/eview16/rebase_interactive.png"
3513             id="org.eclipse.egit.ui.InteractiveRebaseView"
3514             name="%GitInteractiveRebaseView_name">
3515       </view>
3516       <category
3517             id="org.eclipse.egit.ui.GitCategory"
3518             name="%GitCategory_name">
3519       </category>
3520       <view
3521             category="org.eclipse.egit.ui.GitCategory"
3522             class="org.eclipse.egit.ui.internal.dialogs.CompareTreeView"
3523             icon="icons/obj16/gitrepository.png"
3524             id="org.eclipse.egit.ui.CompareTreeView"
3525             name="%TreeCompareView.name"
3526             restorable="false">
3527       </view>
3528       <view
3529             allowMultiple="false"
3530             category="org.eclipse.egit.ui.GitCategory"
3531             class="org.eclipse.egit.ui.internal.reflog.ReflogView"
3532             icon="icons/eview16/reflog.png"
3533             id="org.eclipse.egit.ui.ReflogView"
3534             name="%ReflogView">
3535       </view>
3536    </extension>
3537    <extension
3538          point="org.eclipse.ui.perspectives">
3539       <perspective
3540             class="org.eclipse.egit.ui.GitRepositoriesPerspectiveFactory"
3541             icon="icons/obj16/gitrepository.png"
3542             id="org.eclipse.egit.ui.GitRepositoryExploring"
3543             name="%GitRepositoryPerspective_name">
3544          <description>
3545             %GitRepositoryPerspective_description
3546          </description>
3547       </perspective>
3548    </extension>
3549    <extension
3550          point="org.eclipse.ui.perspectiveExtensions">
3551       <perspectiveExtension
3552             targetID="org.eclipse.ui.resourcePerspective">
3553          <showInPart
3554                id="org.eclipse.egit.ui.RepositoriesView">
3555          </showInPart>
3556       </perspectiveExtension>
3557       <perspectiveExtension
3558             targetID="org.eclipse.jdt.ui.JavaPerspective">
3559          <showInPart
3560                id="org.eclipse.egit.ui.RepositoriesView">
3561          </showInPart>
3562          <view
3563                id="org.eclipse.egit.ui.RepositoriesView"
3564                minimized="false"
3565                ratio="0.6"
3566                relationship="bottom"
3567                relative="org.eclipse.jdt.ui.PackageExplorer"
3568                visible="false">
3569          </view>
3570       </perspectiveExtension>
3571       <perspectiveExtension
3572             targetID="org.eclipse.debug.ui.DebugPerspective">
3573          <showInPart
3574                id="org.eclipse.egit.ui.RepositoriesView">
3575          </showInPart>
3576       </perspectiveExtension>
3577       <perspectiveExtension
3578             targetID="org.eclipse.pde.ui.PDEPerspective">
3579          <showInPart
3580                id="org.eclipse.egit.ui.RepositoriesView">
3581          </showInPart>
3582          <view
3583                id="org.eclipse.egit.ui.RepositoriesView"
3584                minimized="false"
3585                ratio="0.6"
3586                relationship="bottom"
3587                relative="org.eclipse.jdt.ui.PackageExplorer"
3588                visible="false">
3589          </view>
3590       </perspectiveExtension>
3591    </extension>
3592    <extension
3593          point="org.eclipse.ui.navigator.navigatorContent">
3594       <navigatorContent
3595             contentProvider="org.eclipse.egit.ui.internal.repository.RepositoriesViewExtensionFactory:org.eclipse.egit.ui.internal.repository.RepositoriesViewContentProvider"
3596             icon="icons/obj16/repository_rep.png"
3597             id="org.eclipse.egit.ui.RepositoriesViewContent"
3598             labelProvider="org.eclipse.egit.ui.internal.repository.RepositoryTreeNodeLabelProvider"
3599             name="%GitRepositoriesContentName">
3600          <enablement>
3601             <or>
3602                <instanceof
3603                      value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
3604                </instanceof>
3605                <instanceof
3606                      value="org.eclipse.core.resources.IWorkspaceRoot">
3607                </instanceof>
3608             </or>
3609          </enablement>
3610          <commonSorter
3611                class="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNodeSorter">
3612          </commonSorter>
3613          <dropAssistant
3614                class="org.eclipse.egit.ui.internal.repository.DropAdapterAssistant"
3615                id="org.eclipse.egit.ui.repositoriesView.dropAssistant">
3616             <possibleDropTargets>
3617                <or>
3618                  <instanceof
3619                        value="org.eclipse.core.resources.IWorkspaceRoot">
3620                  </instanceof>
3621                  <instanceof
3622                        value="org.eclipse.egit.ui.internal.repository.tree.RepositoryGroupNode">
3623                  </instanceof>
3624                </or>
3625             </possibleDropTargets>
3626          </dropAssistant>
3627          <actionProvider
3628                class="org.eclipse.egit.ui.internal.repository.RepositoriesViewActionProvider">
3629          </actionProvider>
3630       </navigatorContent>
3631       <commonFilter id="org.eclipse.egit.ui.repositoriesView.filters.remoteBranches"
3632           name="%RepoViewFilterRemoteBranches.label" description="%RepoViewFilterRemoteBranches.description" activeByDefault="false"
3633           class="org.eclipse.egit.ui.internal.repository.tree.filter.NodeFilterFactory:REMOTETRACKING"/>
3634       <commonFilter id="org.eclipse.egit.ui.repositoriesView.filters.tags"
3635           name="%RepoViewFilterTags.label" description="%RepoViewFilterTags.description" activeByDefault="false"
3636           class="org.eclipse.egit.ui.internal.repository.tree.filter.NodeFilterFactory:TAGS"/>
3637       <commonFilter id="org.eclipse.egit.ui.repositoriesView.filters.references"
3638           name="%RepoViewFilterReferences.label" description="%RepoViewFilterReferences.description" activeByDefault="false"
3639           class="org.eclipse.egit.ui.internal.repository.tree.filter.NodeFilterFactory:ADDITIONALREFS"/>
3640       <commonFilter id="org.eclipse.egit.ui.repositoriesView.filters.remotes"
3641           name="%RepoViewFilterRemotes.label" description="%RepoViewFilterRemotes.description" activeByDefault="false"
3642           class="org.eclipse.egit.ui.internal.repository.tree.filter.NodeFilterFactory:REMOTES"/>
3643       <commonFilter id="org.eclipse.egit.ui.repositoriesView.filters.stashes"
3644           name="%RepoViewFilterStashes.label" description="%RepoViewFilterStashes.description" activeByDefault="false"
3645           class="org.eclipse.egit.ui.internal.repository.tree.filter.NodeFilterFactory:STASH"/>
3646       <commonFilter id="org.eclipse.egit.ui.repositoriesView.filters.submodules"
3647           name="%RepoViewFilterSubmodules.label" description="%RepoViewFilterSubmodules.description" activeByDefault="false"
3648           class="org.eclipse.egit.ui.internal.repository.tree.filter.NodeFilterFactory:SUBMODULES"/>
3649       <commonFilter id="org.eclipse.egit.ui.repositoriesView.filters.worktree"
3650           name="%RepoViewFilterWorktree.label" description="%RepoViewFilterWorktree.description" activeByDefault="false"
3651           class="org.eclipse.egit.ui.internal.repository.tree.filter.NodeFilterFactory:WORKINGDIR"/>
3652    </extension>
3653    <extension
3654          point="org.eclipse.ui.navigator.viewer">
3655       <viewer
3656             viewerId="org.eclipse.egit.ui.RepositoriesView">
3657          <options>
3658             <property
3659                name="org.eclipse.ui.navigator.hideAvailableCustomizationsDialog"
3660                value="false"/>
3661             <!-- Hide the "Content" tab of the "Available Customizations" dialog -->
3662             <property
3663                name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
3664                value="true"/>
3665             <!-- Hide the "Link with Editor" action from the toolbar of the viewer -->
3666             <!-- We implement our own "Link with Editor and Selection"; the built-in -->
3667             <!-- ILinkHelper works only for linking with an active editor, but not -->
3668             <!-- for synchronizing the selection with that in other views. -->
3669             <property
3670                name="org.eclipse.ui.navigator.hideLinkWithEditorAction"
3671                value="true"/>
3672          </options>
3673          <popupMenu>
3674             <insertionPoint
3675                   name="branch"
3676                   separator="true">
3677             </insertionPoint>
3678             <insertionPoint
3679                   name="remotes"
3680                   separator="true">
3681             </insertionPoint>
3682             <insertionPoint
3683                   name="tag"
3684                   separator="true">
3685             </insertionPoint>
3686             <insertionPoint
3687                   name="remote"
3688                   separator="true">
3689             </insertionPoint>
3690             <insertionPoint
3691                   name="repo-0"
3692                   separator="true"> <!-- switch to -->
3693             </insertionPoint>
3694             <insertionPoint
3695                   name="repo-1"
3696                   separator="true"> <!-- commit, stash, apply stash -->
3697             </insertionPoint>
3698             <insertionPoint
3699                   name="repo-commit"
3700                   separator="true">
3701             </insertionPoint>
3702             <insertionPoint
3703                   name="repo-2"
3704                   separator="true"> <!-- merge, rebase, reset -->
3705             </insertionPoint>
3706             <insertionPoint
3707                   name="repo-3"
3708                   separator="true"> <!-- add to index, delete, import projects -->
3709             </insertionPoint>
3710             <insertionPoint
3711                   name="group.open"
3712                   separator="true">
3713             </insertionPoint>
3714             <insertionPoint
3715                   name="group.show"
3716                   separator="false">
3717             </insertionPoint>
3718             <insertionPoint
3719                   name="repo-4"
3720                   separator="true"> <!-- clean, gc, lfs, delete, remove -->
3721             </insertionPoint>
3722             <insertionPoint
3723                   name="repo-5"
3724                   separator="true"> <!-- submodule add, sync, update -->
3725             </insertionPoint>
3726             <insertionPoint
3727                   name="repo-6"
3728                   separator="true"> <!-- copy path, paste URL -->
3729             </insertionPoint>
3730             <insertionPoint
3731                   name="group.properties"
3732                   separator="true">
3733             </insertionPoint>
3734          </popupMenu>
3735       </viewer>
3736       <viewerContentBinding
3737             viewerId="org.eclipse.egit.ui.RepositoriesView">
3738          <includes>
3739             <contentExtension
3740                   pattern="org.eclipse.egit.ui.RepositoriesViewContent">
3741             </contentExtension>
3742             <contentExtension
3743                   pattern="org.eclipse.egit.ui.repositoriesView.filters.remoteBranches">
3744             </contentExtension>
3745             <contentExtension
3746                   pattern="org.eclipse.egit.ui.repositoriesView.filters.tags">
3747             </contentExtension>
3748             <contentExtension
3749                   pattern="org.eclipse.egit.ui.repositoriesView.filters.references">
3750             </contentExtension>
3751             <contentExtension
3752                   pattern="org.eclipse.egit.ui.repositoriesView.filters.remotes">
3753             </contentExtension>
3754             <contentExtension
3755                   pattern="org.eclipse.egit.ui.repositoriesView.filters.stashes">
3756             </contentExtension>
3757             <contentExtension
3758                   pattern="org.eclipse.egit.ui.repositoriesView.filters.submodules">
3759             </contentExtension>
3760             <contentExtension
3761                   pattern="org.eclipse.egit.ui.repositoriesView.filters.worktree">
3762             </contentExtension>
3763          </includes>
3764       </viewerContentBinding>
3765       <dragAssistant
3766             viewerId="org.eclipse.egit.ui.RepositoriesView"
3767             class="org.eclipse.egit.ui.internal.repository.RepositoryDragAssistant">
3768       </dragAssistant>
3769       <viewerActionBinding
3770             viewerId="org.eclipse.egit.ui.RepositoriesView">
3771          <includes>
3772             <actionExtension
3773                   pattern="org.eclipse.ui.navigator.resources.UndoRedoActionProvider">
3774             </actionExtension>
3775          </includes>
3776       </viewerActionBinding>
3777    </extension>
3778    <extension
3779          point="org.eclipse.ui.menus">
3780       <menuContribution
3781             locationURI="popup:org.eclipse.egit.ui.historyPageContributions?after=history.group">
3782          <command
3783               commandId="org.eclipse.egit.ui.history.CompareWithWorkingTree"
3784               label="%HistoryCompareWithWorkingTree.label"
3785               style="push">
3786             <visibleWhen checkEnabled="true" />
3787          </command>
3788          <command
3789               commandId="org.eclipse.egit.ui.history.ShowVersions"
3790               label="%HistoryShowVersions.label"
3791               style="push">
3792             <visibleWhen checkEnabled="true" />
3793          </command>
3794          <command
3795               commandId="org.eclipse.egit.ui.history.OpenInTextEditorCommand"
3796               label="%HistoryOpenInTextEditorCommand.label"
3797               style="push">
3798             <visibleWhen checkEnabled="true" />
3799          </command>
3800          <command
3801               commandId="org.eclipse.egit.ui.history.ShowBlame"
3802               label="%HistoryShowBlame.label"
3803               style="push">
3804             <visibleWhen checkEnabled="true" />
3805          </command>
3806          <command
3807               commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
3808               label="%HistoryOpenInCommitViewer.label"
3809               tooltip="%OpenInCommitViewerCommand.tooltip"
3810               style="push">
3811             <visibleWhen checkEnabled="true" />
3812          </command>
3813          <command
3814               commandId="org.eclipse.egit.ui.history.CompareVersions"
3815               label="%HistoryCompareVersions.label"
3816               style="push">
3817             <visibleWhen checkEnabled="true" />
3818          </command>
3819          <command
3820               commandId="org.eclipse.egit.ui.history.CompareVersionsInTree"
3821               label="%HistoryCompareVersionsInTree.label"
3822               style="push">
3823             <visibleWhen checkEnabled="true" />
3824          </command>
3825          <command
3826               commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand"
3827               label="%HistoryShowUnifiedDiff.label"
3828               style="push">
3829             <visibleWhen checkEnabled="true" />
3830          </command>
3831          <separator name="##Checkout" visible="true" />
3832          <command
3833               commandId="org.eclipse.egit.ui.CheckoutCommand"
3834               label="%HistoryCheckoutCommand.label"
3835               style="push">
3836             <visibleWhen>
3837                <and>
3838                   <count value="1"/>
3839                   <iterate>
3840                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3841                      <test property="Git.isBare" value="false" />
3842                      <test property="Git.hasMultipleRefs" args="refs/heads/" value="false" />
3843                   </iterate>
3844                </and>
3845             </visibleWhen>
3846          </command>
3847          <command
3848               commandId="org.eclipse.egit.ui.CheckoutCommand"
3849               label="%HistoryCheckoutCommand.label2"
3850               style="push">
3851             <visibleWhen>
3852                <and>
3853                   <count value="1"/>
3854                   <iterate>
3855                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3856                      <test property="Git.isBare" value="false" />
3857                      <test property="Git.hasMultipleRefs" args="refs/heads/"/>
3858                   </iterate>
3859                </and>
3860             </visibleWhen>
3861          </command>
3862          <command
3863               commandId="org.eclipse.egit.ui.history.PushCommit"
3864               label="%HistoryPushCommit.label"
3865               style="push">
3866             <visibleWhen checkEnabled="true" />
3867          </command>
3868          <separator name="##Refs" visible="true" />
3869          <command
3870               commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch"
3871               label="%HistoryCreateBranch.label"
3872               style="push">
3873             <visibleWhen checkEnabled="true" />
3874          </command>
3875          <command
3876               commandId="org.eclipse.egit.ui.history.DeleteBranch"
3877               label="%HistoryDeleteBranch.label"
3878               style="push">
3879             <visibleWhen checkEnabled="true" />
3880          </command>
3881          <command
3882                commandId="org.eclipse.ui.edit.rename"
3883                icon="icons/obj16/editconfig.png"
3884                label="%HistoryRenameBranch.label"
3885                style="push">
3886             <visibleWhen checkEnabled="true" />
3887          </command>
3888          <command
3889               commandId="org.eclipse.egit.ui.team.Tag"
3890               label="%HistoryCreateTag.label"
3891               style="push">
3892             <visibleWhen checkEnabled="true" />
3893          </command>
3894          <command
3895               commandId="org.eclipse.egit.ui.history.DeleteTag"
3896               label="%HistoryDeleteTag.label"
3897               style="push">
3898             <visibleWhen checkEnabled="true" />
3899          </command>
3900          <separator name="##Commits" visible="true" />
3901          <command
3902               commandId="org.eclipse.egit.ui.history.CreatePatch"
3903               label="%HistoryCreatePatch.label"
3904               style="push">
3905             <visibleWhen checkEnabled="true" />
3906          </command>
3907          <command
3908               commandId="org.eclipse.egit.ui.team.CherryPick"
3909               label="%HistoryCherryPick.label"
3910               style="push">
3911             <visibleWhen checkEnabled="true" />
3912          </command>
3913          <command
3914               commandId="org.eclipse.egit.ui.history.Merge"
3915               label="%HistoryMerge.label"
3916               style="push">
3917             <visibleWhen checkEnabled="true" />
3918          </command>
3919          <command
3920               commandId="org.eclipse.egit.ui.RebaseCurrent"
3921               label="%HistoryRebaseCurrent.label"
3922               style="push">
3923             <visibleWhen checkEnabled="true" />
3924          </command>
3925          <command
3926               commandId="org.eclipse.egit.ui.RebaseInteractiveCurrent"
3927               label="%HistoryRebaseInteractive.label"
3928               style="push">
3929             <visibleWhen checkEnabled="true" />
3930          </command>
3931          <separator name="##Reset" visible="true" />
3932          <!-- Reset submenu -->
3933          <menu
3934                icon="icons/obj16/reset.png"
3935                id="org.eclipse.egit.ui.history.resetMenu"
3936                label="%HistoryResetMenu.label">
3937             <visibleWhen>
3938                <and>
3939                   <count value="1" />
3940                   <iterate>
3941                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3942                   </iterate>
3943                </and>
3944             </visibleWhen>
3945             <command
3946                  commandId="org.eclipse.egit.ui.history.Reset"
3947                  label="%HistoryResetSoft.label"
3948                  style="push">
3949                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="SOFT" />
3950                <visibleWhen checkEnabled="true" />
3951             </command>
3952             <command
3953                  commandId="org.eclipse.egit.ui.history.Reset"
3954                  label="%HistoryResetMixed.label"
3955                  style="push">
3956                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="MIXED" />
3957                <visibleWhen checkEnabled="true" />
3958             </command>
3959             <command
3960                  commandId="org.eclipse.egit.ui.history.Reset"
3961                  label="%HistoryResetHard.label"
3962                  style="push">
3963                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="HARD" />
3964                <visibleWhen checkEnabled="true" />
3965             </command>
3966          </menu>
3967          <command
3968               commandId="org.eclipse.egit.ui.team.Revert"
3969               label="%HistoryRevert.label"
3970               style="push">
3971             <visibleWhen checkEnabled="true" />
3972          </command>
3973          <separator name="##Submenus" visible="true" />
3974          <!-- QuickDiff submenu -->
3975          <menu
3976                id="org.eclipse.egit.ui.history.quickDiff"
3977                label="%HistoryQuickdiffMenu.label">
3978             <visibleWhen>
3979                <and>
3980                   <count value="1" />
3981                   <iterate>
3982                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3983                   </iterate>
3984                </and>
3985             </visibleWhen>
3986             <command
3987                  commandId="org.eclipse.egit.ui.history.SetQuickdiffBaseline"
3988                  label="%HistoryQuickdiffSet.label"
3989                  style="push">
3990                <visibleWhen checkEnabled="true" />
3991             </command>
3992             <command
3993                  commandId="org.eclipse.egit.ui.history.ResetQuickdiffBaseline"
3994                  label="%HistoryResetQuickDiffHead.label"
3995                  style="push">
3996                <parameter name="org.eclipse.egit.ui.history.ResetQuickdiffBaselineTarget" value="HEAD" />
3997                <visibleWhen checkEnabled="true" />
3998             </command>
3999             <command
4000                  commandId="org.eclipse.egit.ui.history.ResetQuickdiffBaseline"
4001                  label="%HistoryResetQuickDiffHeadParent.label"
4002                  style="push">
4003                <parameter name="org.eclipse.egit.ui.history.ResetQuickdiffBaselineTarget" value="HEAD^1" />
4004                <visibleWhen checkEnabled="true" />
4005             </command>
4006          </menu>
4007          <!-- Modify submenu -->
4008          <menu
4009                id="org.eclipse.egit.ui.history.modify"
4010                label="%HistoryModifyMenu.label">
4011             <visibleWhen>
4012                <iterate ifEmpty="false" >
4013                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
4014                </iterate>
4015             </visibleWhen>
4016             <command
4017                  commandId="org.eclipse.egit.ui.history.Reword"
4018                  label="%HistoryModifyReword.label"
4019                  style="push">
4020                <visibleWhen checkEnabled="true" />
4021             </command>
4022             <command
4023                  commandId="org.eclipse.egit.ui.history.Edit"
4024                  label="%HistoryModifyEdit.label"
4025                  style="push">
4026                <visibleWhen checkEnabled="true" />
4027             </command>
4028             <command
4029                  commandId="org.eclipse.egit.ui.history.Squash"
4030                  label="%HistoryModifySquash.label"
4031                  style="push">
4032                <visibleWhen checkEnabled="true" />
4033             </command>
4034          </menu>
4035       </menuContribution>
4036       <menuContribution
4037             allPopups="false"
4038             locationURI="popup:org.eclipse.egit.ui.historyPageContributions?after=additions">
4039             <command
4040                commandId="org.eclipse.egit.ui.ImportChangedProjectsCommandId"
4041                icon="icons/obj16/import_prj.png"
4042                label="%ImportChangedProjects.label"
4043                style="push">
4044             <visibleWhen checkEnabled="true" />
4045          </command>
4046       </menuContribution>
4047       <menuContribution
4048             allPopups="false"
4049             locationURI="popup:org.eclipse.egit.ui.InteractiveRebaseView?after=additions">
4050          <command
4051                commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
4052                label="%RebaseInteractiveOpenInCommitViewer.label"
4053                tooltip="%OpenInCommitViewerCommand.tooltip"
4054                style="push">
4055             <visibleWhen checkEnabled="true" />
4056          </command>
4057          <command
4058                commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand"
4059                label="%RebaseInteractiveShowUnifiedDiff.label"
4060                style="push">
4061             <visibleWhen checkEnabled="true" />
4062          </command>
4063       </menuContribution>
4064       <menuContribution
4065             locationURI="popup:org.eclipse.egit.ui.internal.reflogview.popup">
4066          <command
4067                commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
4068                label="%RefLogViewOpenInCommitViewer.label"
4069                tooltip="%OpenInCommitViewerCommand.tooltip"
4070                style="push">
4071          </command>
4072          <command
4073               commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand"
4074               label="%RefLogShowUnifiedDiff.label"
4075               style="push">
4076             <visibleWhen checkEnabled="true" />
4077          </command>
4078          <separator
4079                name="##Checkout" visible="true">
4080          </separator>
4081          <command
4082                commandId="org.eclipse.egit.ui.CheckoutCommand"
4083                label="%RefLogViewCheckout.label"
4084                style="push">
4085          </command>
4086          <command
4087                commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand"
4088                label="%ReflogCopyCommand.label"
4089                style="push">
4090          </command>
4091          <!-- Reset submenu -->
4092          <menu
4093                icon="icons/obj16/reset.png"
4094                id="org.eclipse.egit.ui.reflog.resetMenu"
4095                label="%ReflogResetMenu.label">
4096             <command
4097                  commandId="org.eclipse.egit.ui.history.Reset"
4098                  label="%ReflogResetSoft.label"
4099                  style="push">
4100                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="SOFT" />
4101                <visibleWhen checkEnabled="true" />
4102             </command>
4103             <command
4104                  commandId="org.eclipse.egit.ui.history.Reset"
4105                  label="%ReflogResetMixed.label"
4106                  style="push">
4107                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="MIXED" />
4108                <visibleWhen checkEnabled="true" />
4109             </command>
4110             <command
4111                  commandId="org.eclipse.egit.ui.history.Reset"
4112                  label="%ReflogResetHard.label"
4113                  style="push">
4114                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="HARD" />
4115                <visibleWhen checkEnabled="true" />
4116             </command>
4117          </menu>
4118       </menuContribution>
4119       <menuContribution
4120             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=branch">
4121          <command
4122                commandId="org.eclipse.egit.ui.CheckoutCommand"
4123                label="%RepoViewCheckout.label"
4124                style="push">
4125             <visibleWhen checkEnabled="true" />
4126          </command>
4127          <command
4128                commandId="org.eclipse.egit.ui.team.Push"
4129                icon="icons/obj16/push.png"
4130                label="%RepoViewPushBranch.label"
4131                style="push">
4132             <visibleWhen
4133                   checkEnabled="false">
4134                <and>
4135                   <count
4136                         value="1">
4137                   </count>
4138                   <iterate>
4139                      <instanceof
4140                            value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
4141                      </instanceof>
4142                   </iterate>
4143                </and>
4144             </visibleWhen>
4145          </command>
4146          <command
4147                commandId="org.eclipse.egit.ui.team.Push"
4148                icon="icons/obj16/push.png"
4149                label="%RepoViewPushTag.label"
4150                style="push">
4151             <visibleWhen
4152                   checkEnabled="false">
4153                <and>
4154                   <count
4155                         value="+">
4156                   </count>
4157                   <iterate>
4158                      <instanceof
4159                            value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
4160                      </instanceof>
4161                   </iterate>
4162                </and>
4163             </visibleWhen>
4164          </command>
4165          <command
4166                commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch"
4167                label="%RepoViewCreateBranch.label"
4168                style="push">
4169             <visibleWhen checkEnabled="true" />
4170          </command>
4171          <command
4172                commandId="org.eclipse.ui.edit.rename"
4173                icon="icons/obj16/editconfig.png"
4174                label="%RepoViewRenameBranch.label"
4175                style="push">
4176             <visibleWhen>
4177                <reference
4178                      definitionId="org.eclipse.egit.ui.singleRefNode">
4179                </reference>
4180             </visibleWhen>
4181          </command>
4182          <command
4183                commandId="org.eclipse.egit.ui.RepositoriesViewConfigureBranch"
4184                label="%ConfigurBranchCommand.label"
4185                style="push">
4186             <visibleWhen checkEnabled="true" />
4187          </command>
4188          <command
4189                commandId="org.eclipse.ui.edit.delete"
4190                label="%RepoViewDeleteBranch.label"
4191                style="push">
4192             <visibleWhen
4193                   checkEnabled="false">
4194                <and>
4195                   <count
4196                         value="+">
4197                   </count>
4198                   <iterate>
4199                      <and>
4200                         <or>
4201                            <instanceof
4202                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
4203                            </instanceof>
4204                            <instanceof
4205                                  value="org.eclipse.egit.ui.internal.repository.tree.BranchHierarchyNode">
4206                            </instanceof>
4207                            <test property="GitRepository.isLocalBranch" />
4208                         </or>
4209                         <test property="GitRepository.isRefCheckedOut" value="false" />
4210                      </and>
4211                   </iterate>
4212                </and>
4213             </visibleWhen>
4214          </command>
4215          <separator
4216                name="##Branch-2"
4217                visible="true">
4218          </separator>
4219          <command
4220                commandId="org.eclipse.ui.edit.delete"
4221                label="%DeleteTagCommand.name"
4222                style="push">
4223             <visibleWhen
4224                   checkEnabled="false">
4225                <and>
4226                   <count
4227                         value="+">
4228                   </count>
4229                   <iterate>
4230                      <instanceof
4231                            value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
4232                      </instanceof>
4233                   </iterate>
4234                </and>
4235             </visibleWhen>
4236          </command>
4237          <command
4238                commandId="org.eclipse.egit.ui.team.Synchronize"
4239                icon="icons/obj16/synchronize.png"
4240                label="%RepoViewSynchronize.label"
4241                style="push">
4242             <visibleWhen
4243                   checkEnabled="false">
4244                <and>
4245                   <count
4246                         value="1">
4247                   </count>
4248                   <iterate>
4249                      <and>
4250                         <or>
4251                            <instanceof
4252                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
4253                            </instanceof>
4254                            <instanceof
4255                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
4256                            </instanceof>
4257                         </or>
4258                         <test property="GitRepository.isBare" value="false" />
4259                      </and>
4260                   </iterate>
4261                </and>
4262             </visibleWhen>
4263          </command>
4264          <command
4265                commandId="org.eclipse.egit.ui.team.Synchronize"
4266                icon="icons/obj16/synchronize.png"
4267                label="%RepoViewSynchronizeEachOther.label"
4268                style="push">
4269             <visibleWhen
4270                   checkEnabled="false">
4271                <and>
4272                   <count
4273                         value="2">
4274                   </count>
4275                   <iterate>
4276                      <and>
4277                         <or>
4278                            <instanceof
4279                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
4280                            </instanceof>
4281                            <instanceof
4282                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
4283                            </instanceof>
4284                         </or>
4285                         <test property="GitRepository.isBare" value="false" />
4286                      </and>
4287                   </iterate>
4288                </and>
4289             </visibleWhen>
4290          </command>
4291          <command
4292               commandId="org.eclipse.egit.ui.history.CompareVersions"
4293               label="%RepoViewCompareVersions.label"
4294               style="push">
4295             <visibleWhen checkEnabled="true" />
4296          </command>
4297          <command
4298               commandId="org.eclipse.egit.ui.history.CompareVersionsInTree"
4299               label="%RepoViewCompareVersionsInTree.label"
4300               style="push">
4301             <visibleWhen checkEnabled="true" />
4302          </command>
4303          <command
4304               commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand"
4305               label="%RepoViewCompareUnified.label"
4306               style="push">
4307             <visibleWhen checkEnabled="true" />
4308          </command>
4309       </menuContribution>
4310       <menuContribution
4311             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=remotes">
4312                      <command
4313                commandId="org.eclipse.egit.ui.RepositoriesViewNewRemote"
4314                label="%RepoViewCreateRemote.label"
4315                style="push">
4316             <visibleWhen checkEnabled="true" />
4317          </command>
4318          <command
4319                commandId="org.eclipse.egit.ui.team.SimplePush"
4320                icon="icons/obj16/push.png"
4321                label="%RepoViewPushSimpleLabel"
4322                style="push">
4323             <visibleWhen
4324                   checkEnabled="false">
4325                <and>
4326                   <count
4327                         value="1">
4328                   </count>
4329                   <iterate
4330                         ifEmpty="false"
4331                         operator="and">
4332                      <or>
4333                         <instanceof
4334                               value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
4335                         </instanceof>
4336                         <instanceof
4337                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
4338                         </instanceof>
4339                      </or>
4340                   </iterate>
4341                </and>
4342             </visibleWhen>
4343          </command>
4344          <command
4345                commandId="org.eclipse.egit.ui.team.SimpleFetch"
4346                icon="icons/obj16/fetch.png"
4347                label="%RepoViewFetchSimple.label"
4348                style="push">
4349             <visibleWhen
4350                   checkEnabled="false">
4351                <and>
4352                   <count
4353                         value="1">
4354                   </count>
4355                   <iterate
4356                         ifEmpty="false"
4357                         operator="and">
4358                      <or>
4359                         <instanceof
4360                               value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
4361                         </instanceof>
4362                         <instanceof
4363                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
4364                         </instanceof>
4365                      </or>
4366                   </iterate>
4367                </and>
4368             </visibleWhen>
4369          </command>
4370       </menuContribution>
4371       <menuContribution
4372             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=tag">
4373          <command
4374                commandId="org.eclipse.egit.ui.team.Tag"
4375                label="%RepoViewCreateTag.label"
4376                style="push">
4377             <visibleWhen checkEnabled="true" />
4378          </command>
4379          <command
4380                commandId="org.eclipse.egit.ui.team.PushTags"
4381                label="%PushTagsCommand.label"
4382                style="push">
4383             <visibleWhen
4384                   checkEnabled="false">
4385                <and>
4386                   <count
4387                         value="1">
4388                   </count>
4389                   <iterate>
4390                      <or>
4391                         <instanceof
4392                               value="org.eclipse.egit.ui.internal.repository.tree.TagsNode">
4393                         </instanceof>
4394                      </or>
4395                   </iterate>
4396                </and>
4397             </visibleWhen>
4398          </command>
4399          <command
4400                commandId="org.eclipse.ui.edit.findReplace"
4401                label="%RepoViewFilterTagCommand.label"
4402                icon="icons/elcl16/find.png"
4403                tooltip="%RepoViewFilterTagCommand.tooltip"
4404                style="push">
4405             <visibleWhen checkEnabled="true" />
4406          </command>
4407       </menuContribution>
4408       <menuContribution
4409             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=remote">
4410          <command
4411                commandId="org.eclipse.egit.ui.RepositoriesViewConfigureFetch"
4412                icon="icons/obj16/editconfig.png"
4413                label="%RepoViewConfigureFetch.label"
4414                style="push">
4415             <visibleWhen checkEnabled="true" />
4416          </command>
4417          <command
4418                commandId="org.eclipse.egit.ui.RepositoriesViewConfigurePush"
4419                icon="icons/obj16/editconfig.png"
4420                label="%RepoViewConfigurePush.label"
4421                style="push">
4422             <visibleWhen checkEnabled="true" />
4423          </command>
4424          <command
4425                commandId="org.eclipse.egit.ui.RepositoriesViewChangeCredentials"
4426                label="%RepoViewChangeCredentialsLabel"
4427                style="push">
4428             <visibleWhen checkEnabled="true"/>
4429          </command>
4430          <command
4431                commandId="org.eclipse.egit.ui.RepositoriesViewClearCredentials"
4432                label="%RepoViewClearCredentialsLabel"
4433                style="push">
4434             <visibleWhen checkEnabled="true" />
4435          </command>
4436          <command
4437                commandId="org.eclipse.ui.edit.delete"
4438                label="%RepoViewDeleteFetch.label"
4439                style="push">
4440             <visibleWhen
4441                   checkEnabled="false">
4442                <and>
4443                   <count
4444                         value="1">
4445                   </count>
4446                   <iterate
4447                         ifEmpty="false"
4448                         operator="and">
4449                      <instanceof
4450                            value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
4451                      </instanceof>
4452                   </iterate>
4453                </and>
4454             </visibleWhen>
4455          </command>
4456          <command
4457                commandId="org.eclipse.ui.edit.delete"
4458                label="%RepoViewDeletePush.label"
4459                style="push">
4460             <visibleWhen
4461                   checkEnabled="false">
4462                <and>
4463                   <count
4464                         value="1">
4465                   </count>
4466                   <iterate
4467                         ifEmpty="false"
4468                         operator="and">
4469                      <instanceof
4470                            value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
4471                      </instanceof>
4472                   </iterate>
4473                </and>
4474             </visibleWhen>
4475          </command>
4476          <command
4477                commandId="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote"
4478                label="%RepoViewConfigureGerritRemote.label"
4479                style="push">
4480             <visibleWhen
4481                   checkEnabled="false">
4482                <and>
4483                   <count
4484                         value="1">
4485                   </count>
4486                   <iterate
4487                         ifEmpty="false"
4488                         operator="and">
4489                      <instanceof
4490                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
4491                      </instanceof>
4492                   </iterate>
4493                </and>
4494             </visibleWhen>
4495          </command>
4496          <command
4497                commandId="org.eclipse.ui.edit.delete"
4498                label="%RepoViewRemoveRemote.label"
4499                style="push">
4500             <visibleWhen
4501                   checkEnabled="false">
4502                <and>
4503                   <count
4504                         value="1">
4505                   </count>
4506                   <iterate
4507                         ifEmpty="false"
4508                         operator="and">
4509                      <instanceof
4510                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
4511                      </instanceof>
4512                   </iterate>
4513                </and>
4514             </visibleWhen>
4515          </command>
4516       </menuContribution>
4517       <menuContribution
4518             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-0">
4519          <command
4520                commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
4521                style="push"
4522                tooltip="%RepoViewAddRepository.tooltip">
4523             <visibleWhen checkEnabled="false">
4524                <count value="0" />
4525             </visibleWhen>
4526          </command>
4527          <command
4528                commandId="org.eclipse.egit.ui.RepositoriesViewClone"
4529                style="push"
4530                tooltip="%RepoViewCloneRepository.tooltip">
4531             <visibleWhen checkEnabled="false">
4532                <count value="0" />
4533             </visibleWhen>
4534          </command>
4535          <command
4536                commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
4537                style="push"
4538                tooltip="%RepoViewCreateRepository.tooltip">
4539              <visibleWhen checkEnabled="false">
4540                <count value="0" />
4541             </visibleWhen>
4542          </command>
4543          <command
4544                commandId="org.eclipse.egit.ui.RepositoriesCreateGroup"
4545                label="%CreateRepositoryGroupCommand.label"
4546                style="push">
4547             <visibleWhen checkEnabled="false">
4548                <count value="0" />
4549             </visibleWhen>
4550          </command>
4551          <command
4552                commandId="org.eclipse.ui.edit.paste"
4553                label="%RepoViewPastePath.label"
4554                style="push">
4555             <visibleWhen checkEnabled="false">
4556                <count value="0" />
4557             </visibleWhen>
4558          </command>
4559          <menu
4560                icon="icons/obj16/branches_obj.png"
4561                label="%SwitchToMenuMultiple.label">
4562             <dynamic
4563                   class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
4564                   id="org.eclipse.egit.ui.switchToMenu">
4565             </dynamic>
4566             <visibleWhen
4567                   checkEnabled="false">
4568                <and>
4569                   <iterate
4570                         ifEmpty="false"
4571                         operator="and">
4572                      <and>
4573                         <or>
4574                            <instanceof
4575                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryGroupNode">
4576                            </instanceof>
4577                            <instanceof
4578                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4579                            </instanceof>
4580                            <instanceof
4581                                  value="org.eclipse.egit.ui.internal.repository.tree.BranchesNode">
4582                            </instanceof>
4583                            <instanceof
4584                                  value="org.eclipse.egit.ui.internal.repository.tree.LocalNode">
4585                            </instanceof>
4586                         </or>
4587                         <test property="GitRepository.isBare" value="false" />
4588                      </and>
4589                   </iterate>
4590                   <test
4591                         property="GitSelection.selectionMultipleRepositories">
4592                   </test>
4593                </and>
4594             </visibleWhen>
4595          </menu>
4596          <menu
4597                icon="icons/obj16/branches_obj.png"
4598                label="%SwitchToMenu.label">
4599             <dynamic
4600                   class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
4601                   id="org.eclipse.egit.ui.switchToMenu">
4602             </dynamic>
4603             <visibleWhen
4604                   checkEnabled="false">
4605                <and>
4606                   <count
4607                         value="1">
4608                   </count>
4609                   <iterate
4610                         ifEmpty="false"
4611                         operator="and">
4612                      <and>
4613                         <or>
4614                            <instanceof
4615                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryGroupNode">
4616                            </instanceof>
4617                            <instanceof
4618                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4619                            </instanceof>
4620                            <instanceof
4621                                  value="org.eclipse.egit.ui.internal.repository.tree.BranchesNode">
4622                            </instanceof>
4623                            <instanceof
4624                                  value="org.eclipse.egit.ui.internal.repository.tree.LocalNode">
4625                            </instanceof>
4626                         </or>
4627                         <test property="GitRepository.isBare" value="false" />
4628                      </and>
4629                   </iterate>
4630                   <test
4631                         property="GitSelection.selectionMultipleRepositories" value="false">
4632                   </test>
4633                </and>
4634             </visibleWhen>
4635          </menu>
4636       </menuContribution>
4637       <menuContribution
4638             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-1">
4639          <command
4640                commandId="org.eclipse.egit.ui.team.Commit"
4641                icon="icons/obj16/commit.png"
4642                label="%RepoViewCommit.label"
4643                style="push">
4644             <visibleWhen
4645                   checkEnabled="false">
4646                <and>
4647                   <count
4648                         value="1">
4649                   </count>
4650                   <iterate
4651                         ifEmpty="false"
4652                         operator="and">
4653                      <and>
4654                         <instanceof
4655                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4656                         </instanceof>
4657                         <test property="GitRepository.isBare" value="false" />
4658                      </and>
4659                   </iterate>
4660                </and>
4661             </visibleWhen>
4662          </command>
4663          <menu
4664                label="%StashesMenu.label"
4665                icon="icons/obj16/stash.png">
4666             <dynamic
4667                   class="org.eclipse.egit.ui.internal.actions.StashesMenu"
4668                   id="org.eclipse.egit.ui.stashedChanges">
4669             </dynamic>
4670             <visibleWhen
4671                   checkEnabled="false">
4672                <and>
4673                   <count
4674                         value="1">
4675                   </count>
4676                   <iterate>
4677                      <instanceof
4678                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4679                      </instanceof>
4680                      <test property="GitRepository.isSubmodule" value="false" />
4681                      <test property="GitRepository.isBare" value="false" />
4682                      <test property="GitRepository.canStash" />
4683                      <test property="GitRepository.containsHead" />
4684                   </iterate>
4685                </and>
4686             </visibleWhen>
4687          </menu>
4688          <command
4689                commandId="org.eclipse.egit.ui.team.stash.apply"
4690                label="%StashApplyCommand.label"
4691                style="push">
4692             <visibleWhen checkEnabled="true" />
4693          </command>
4694          <command
4695                commandId="org.eclipse.ui.edit.delete"
4696                label="%StashDropCommand.label"
4697                style="push">
4698             <visibleWhen
4699                   checkEnabled="false">
4700                <and>
4701                   <count
4702                         value="+">
4703                   </count>
4704                   <iterate>
4705                      <instanceof
4706                            value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode">
4707                      </instanceof>
4708                      <test property="GitRepository.isBare" value="false" />
4709                      <test property="GitRepository.isSafe" />
4710                   </iterate>
4711                </and>
4712             </visibleWhen>
4713          </command>
4714          <command
4715                commandId="org.eclipse.ui.edit.delete"
4716                label="%DeleteRepositoryGroupCommand.label"
4717                style="push">
4718             <visibleWhen checkEnabled="true">
4719                <and>
4720                   <count value="+"/>
4721                   <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
4722                </and>
4723             </visibleWhen>
4724          </command>
4725          <command
4726                commandId="org.eclipse.ui.edit.rename"
4727                label="%RenameRepositoryGroupCommand.label"
4728                style="push">
4729             <visibleWhen>
4730                <and>
4731                   <count value="1"/>
4732                   <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
4733                </and>
4734             </visibleWhen>
4735          </command>
4736       </menuContribution>
4737       <menuContribution
4738             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-commit">
4739          <command
4740                commandId="org.eclipse.egit.ui.team.SimplePush"
4741                icon="icons/obj16/push.png"
4742                label="%PushToUpstreamCommand.label"
4743                style="push">
4744             <visibleWhen
4745                   checkEnabled="false">
4746                <and>
4747                   <count
4748                         value="1">
4749                   </count>
4750                   <iterate
4751                         ifEmpty="false"
4752                         operator="and">
4753                      <instanceof
4754                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4755                      </instanceof>
4756                   </iterate>
4757                </and>
4758             </visibleWhen>
4759          </command>
4760          <command
4761                commandId="org.eclipse.egit.ui.team.SimpleFetch"
4762                icon="icons/obj16/fetch.png"
4763                label="%FetchFromUpstreamCommand.label"
4764                style="push">
4765             <visibleWhen
4766                   checkEnabled="false">
4767                <and>
4768                   <count
4769                         value="1">
4770                   </count>
4771                   <iterate
4772                         ifEmpty="false"
4773                         operator="and">
4774                      <instanceof
4775                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4776                      </instanceof>
4777                   </iterate>
4778                </and>
4779             </visibleWhen>
4780          </command>
4781          <command
4782                commandId="org.eclipse.egit.ui.PushHeadToGerrit"
4783                label="%PushToGerritMenu.label"
4784                style="push">
4785             <visibleWhen
4786                   checkEnabled="false">
4787                <and>
4788                   <count
4789                         value="1">
4790                   </count>
4791                   <iterate>
4792                      <and>
4793                         <instanceof
4794                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4795                         </instanceof>
4796                         <test
4797                               property="GitRepository.canPushToGerrit">
4798                         </test>
4799                      </and>
4800                   </iterate>
4801                </and>
4802             </visibleWhen>
4803          </command>
4804          <command
4805                commandId="org.eclipse.egit.ui.FetchGerritChange"
4806                label="%FetchFromGerritCommand.label"
4807                style="push">
4808             <visibleWhen
4809                   checkEnabled="false">
4810                <and>
4811                   <count
4812                         value="1">
4813                   </count>
4814                   <iterate>
4815                      <and>
4816                         <instanceof
4817                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4818                         </instanceof>
4819                         <test
4820                               property="GitRepository.canFetchFromGerrit">
4821                         </test>
4822                      </and>
4823                   </iterate>
4824                </and>
4825             </visibleWhen>
4826          </command>
4827          <command
4828                commandId="org.eclipse.egit.ui.FetchGitHubPR"
4829                label="%FetchFromGitHubCommand.label"
4830                style="push">
4831             <visibleWhen
4832                   checkEnabled="false">
4833                <and>
4834                   <count
4835                         value="1">
4836                   </count>
4837                   <iterate>
4838                      <and>
4839                         <instanceof
4840                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4841                         </instanceof>
4842                         <test
4843                               property="GitRepository.hasGitHubConfiguration">
4844                         </test>
4845                      </and>
4846                   </iterate>
4847                </and>
4848             </visibleWhen>
4849          </command>
4850          <command
4851                commandId="org.eclipse.egit.ui.FetchGitLabMergeRequest"
4852                label="%FetchFromGitLabCommand.label"
4853                style="push">
4854             <visibleWhen
4855                   checkEnabled="false">
4856                <and>
4857                   <count
4858                         value="1">
4859                   </count>
4860                   <iterate>
4861                      <and>
4862                         <instanceof
4863                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4864                         </instanceof>
4865                         <test
4866                               property="GitRepository.hasGitLabConfiguration">
4867                         </test>
4868                      </and>
4869                   </iterate>
4870                </and>
4871             </visibleWhen>
4872          </command>
4873          <command
4874                commandId="org.eclipse.egit.ui.FetchGiteaPullRequest"
4875                label="%FetchFromGiteaCommand.label"
4876                style="push">
4877             <visibleWhen
4878                   checkEnabled="false">
4879                <and>
4880                   <count
4881                         value="1">
4882                   </count>
4883                   <iterate>
4884                      <and>
4885                         <instanceof
4886                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4887                         </instanceof>
4888                         <test
4889                               property="GitRepository.hasGiteaConfiguration">
4890                         </test>
4891                      </and>
4892                   </iterate>
4893                </and>
4894             </visibleWhen>
4895          </command>
4896          <dynamic
4897                   class="org.eclipse.egit.ui.internal.actions.PushMenu"
4898                   id="org.eclipse.egit.ui.repository.tree.popup.Push">
4899                         <visibleWhen
4900                   checkEnabled="false">
4901                <and>
4902                   <count
4903                         value="1">
4904                   </count>
4905                   <iterate
4906                         ifEmpty="false"
4907                         operator="and">
4908                      <instanceof
4909                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4910                      </instanceof>
4911                   </iterate>
4912                </and>
4913             </visibleWhen>
4914          </dynamic>
4915          <command
4916                commandId="org.eclipse.egit.ui.team.Pull"
4917                icon="icons/obj16/pull.png"
4918                label="%RepoViewPullMenu.label"
4919                style="push">
4920             <visibleWhen
4921                   checkEnabled="false">
4922                <and>
4923                   <count
4924                         value="+">
4925                   </count>
4926                   <iterate>
4927                      <or>
4928                         <instanceof
4929                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4930                         </instanceof>
4931                         <instanceof
4932                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryGroupNode">
4933                         </instanceof>
4934                      </or>
4935                      <test
4936                            property="GitRepository.canMerge">
4937                      </test>
4938                   </iterate>
4939                </and>
4940             </visibleWhen>
4941          </command>
4942          <command
4943                commandId="org.eclipse.egit.ui.team.PullWithOptions"
4944                icon="icons/obj16/pull.png"
4945                label="%PullWithOptions.name"
4946                style="push">
4947             <visibleWhen
4948                   checkEnabled="false">
4949                <and>
4950                   <count
4951                         value="1">
4952                   </count>
4953                   <iterate>
4954                      <and>
4955                         <instanceof
4956                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4957                         </instanceof>
4958                         <test
4959                               property="GitRepository.canMerge">
4960                         </test>
4961                      </and>
4962                   </iterate>
4963                </and>
4964             </visibleWhen>
4965          </command>
4966          <menu
4967                label="%RemoteSubMenu.label">
4968             <command
4969                   commandId="org.eclipse.egit.ui.team.Push"
4970                   icon="icons/obj16/push.png"
4971                   label="%RepoViewPush.label"
4972                   style="push">
4973                <visibleWhen
4974                      checkEnabled="false">
4975                   <and>
4976                      <count
4977                            value="1">
4978                      </count>
4979                      <iterate>
4980                         <instanceof
4981                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4982                         </instanceof>
4983                      </iterate>
4984                   </and>
4985                </visibleWhen>
4986             </command>
4987             <command
4988                   commandId="org.eclipse.egit.ui.team.PushTags"
4989                   label="%PushTagsCommand.label"
4990                   style="push">
4991                <visibleWhen
4992                      checkEnabled="false">
4993                   <and>
4994                      <count
4995                            value="1">
4996                      </count>
4997                      <iterate>
4998                         <instanceof
4999                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5000                         </instanceof>
5001                      </iterate>
5002                   </and>
5003                </visibleWhen>
5004             </command>
5005             <command
5006                   commandId="org.eclipse.egit.ui.team.Fetch"
5007                   icon="icons/obj16/fetch.png"
5008                   label="%RepoViewFetch.label"
5009                   style="push">
5010                <visibleWhen
5011                      checkEnabled="false">
5012                   <and>
5013                      <count
5014                            value="1">
5015                      </count>
5016                      <iterate
5017                            ifEmpty="false"
5018                            operator="and">
5019                         <instanceof
5020                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5021                         </instanceof>
5022                      </iterate>
5023                   </and>
5024                </visibleWhen>
5025             </command>
5026          </menu>
5027       </menuContribution>
5028       <menuContribution
5029             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-2">
5030          <command
5031                commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
5032                style="push"
5033                tooltip="%RepoViewAddRepository.tooltip">
5034             <visibleWhen>
5035                <and>
5036                   <count value="1"/>
5037                   <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
5038                </and>
5039             </visibleWhen>
5040          </command>
5041          <command
5042                commandId="org.eclipse.egit.ui.RepositoriesViewClone"
5043                style="push"
5044                tooltip="%RepoViewCloneRepository.tooltip">
5045             <visibleWhen>
5046                <and>
5047                   <count value="1"/>
5048                   <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
5049                </and>
5050             </visibleWhen>
5051          </command>
5052          <command
5053                commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
5054                style="push"
5055                tooltip="%RepoViewCreateRepository.tooltip">
5056             <visibleWhen>
5057                <and>
5058                   <count value="1"/>
5059                   <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
5060                </and>
5061             </visibleWhen>
5062          </command>
5063          <command
5064                commandId="org.eclipse.ui.edit.paste"
5065                label="%RepoViewPastePath.label"
5066                style="push">
5067             <visibleWhen>
5068                <and>
5069                   <count value="1"/>
5070                   <reference definitionId="org.eclipse.egit.ui.repoGroups.onlyGroupsSelected"/>
5071                </and>
5072             </visibleWhen>
5073          </command>
5074          <command
5075                commandId="org.eclipse.egit.ui.team.Merge"
5076                icon="icons/obj16/merge.png"
5077                label="%RepoViewMergeSimple.label"
5078                style="push">
5079             <visibleWhen
5080                   checkEnabled="false">
5081                <and>
5082                   <count
5083                         value="1">
5084                   </count>
5085                   <iterate>
5086                      <and>
5087                         <or>
5088                            <instanceof
5089                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
5090                            </instanceof>
5091                            <instanceof
5092                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
5093                            </instanceof>
5094                         </or>
5095                         <test property="GitRepository.canMerge" />
5096                         <test property="GitRepository.isRefCheckedOut" value="false" />
5097                      </and>
5098                   </iterate>
5099                </and>
5100             </visibleWhen>
5101          </command>
5102          <command
5103                commandId="org.eclipse.egit.ui.team.Merge"
5104                icon="icons/obj16/merge.png"
5105                label="%RepoViewMerge.label"
5106                style="push">
5107             <visibleWhen
5108                   checkEnabled="false">
5109                <and>
5110                   <count
5111                         value="1">
5112                   </count>
5113                   <iterate>
5114                      <and>
5115                         <test
5116                               property="GitRepository.canMerge">
5117                         </test>
5118                         <or>
5119                            <instanceof
5120                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5121                            </instanceof>
5122                            <and>
5123                               <instanceof
5124                                     value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
5125                               </instanceof>
5126                               <test
5127                                     property="GitRepository.isRefCheckedOut">
5128                               </test>
5129                            </and>
5130                         </or>
5131                      </and>
5132                   </iterate>
5133                </and>
5134             </visibleWhen>
5135          </command>
5136          <command
5137                commandId="org.eclipse.egit.ui.team.Rebase"
5138                label="%RebaseCommand.label"
5139                style="push">
5140             <visibleWhen
5141                   checkEnabled="false">
5142                <and>
5143                   <count
5144                         value="1">
5145                   </count>
5146                   <iterate>
5147                      <and>
5148                         <test
5149                               property="GitRepository.canMerge">
5150                         </test>
5151                         <and>
5152                            <instanceof
5153                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
5154                            </instanceof>
5155                            <test property="GitRepository.isRefCheckedOut" value="false" />
5156                         </and>
5157                      </and>
5158                   </iterate>
5159                </and>
5160             </visibleWhen>
5161          </command>
5162          <command
5163                commandId="org.eclipse.egit.ui.team.Rebase"
5164                label="%RebaseCommand.label2"
5165                style="push">
5166             <visibleWhen
5167                   checkEnabled="false">
5168                <or>
5169                   <and>
5170                      <count
5171                            value="1">
5172                      </count>
5173                      <iterate>
5174                         <and>
5175                            <test
5176                                  property="GitRepository.canMerge">
5177                            </test>
5178                            <instanceof
5179                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5180                            </instanceof>
5181                         </and>
5182                      </iterate>
5183                   </and>
5184                   <and>
5185                      <count
5186                            value="1">
5187                      </count>
5188                      <iterate>
5189                         <and>
5190                            <test
5191                                  property="GitRepository.canMerge">
5192                            </test>
5193                            <test
5194                                  property="GitRepository.isRefCheckedOut">
5195                            </test>
5196                            <instanceof
5197                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
5198                            </instanceof>
5199                            <test
5200                                  property="GitRepository.isLocalBranch">
5201                            </test>
5202                         </and>
5203                      </iterate>
5204                   </and>
5205                </or>
5206             </visibleWhen>
5207          </command>
5208          <menu
5209                icon="icons/obj16/rebase.png"
5210                label="%RebaseMenu.label">
5211             <command
5212                   commandId="org.eclipse.egit.ui.AbortRebase"
5213                   label="%AbortCommand.label"
5214                   style="push">
5215                <visibleWhen checkEnabled="true" />
5216             </command>
5217             <command
5218                   commandId="org.eclipse.egit.ui.ContinueRebase"
5219                   label="%ContinueCommand.label"
5220                   style="push">
5221                <visibleWhen checkEnabled="true" />
5222             </command>
5223             <command
5224                   commandId="org.eclipse.egit.ui.SkipRebase"
5225                   label="%SkipCommand.label"
5226                   style="push">
5227                <visibleWhen checkEnabled="true" />
5228             </command>
5229          </menu>
5230          <command
5231                commandId="org.eclipse.egit.ui.team.Reset"
5232                icon="icons/obj16/reset.png"
5233                label="%RepoViewReset.label"
5234                style="push">
5235             <visibleWhen
5236                   checkEnabled="false">
5237                <and>
5238                   <count
5239                         value="1">
5240                   </count>
5241                   <iterate>
5242                      <and>
5243                         <test
5244                               property="GitRepository.canResetHead">
5245                         </test>
5246                         <or>
5247                            <instanceof
5248                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
5249                            </instanceof>
5250                            <instanceof
5251                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
5252                            </instanceof>
5253                            <instanceof
5254                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5255                            </instanceof>
5256                         </or>
5257                      </and>
5258                   </iterate>
5259                </and>
5260             </visibleWhen>
5261          </command>
5262       </menuContribution>
5263       <menuContribution
5264             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-3">
5265          <command
5266                commandId="org.eclipse.egit.ui.team.AddToIndex"
5267                icon="/icons/obj16/add.png"
5268                label="%RepoViewAddToIndex.label"
5269                style="push">
5270             <visibleWhen
5271                   checkEnabled="false">
5272                <and>
5273                   <count
5274                         value="+">
5275                   </count>
5276                   <iterate
5277                         ifEmpty="false"
5278                         operator="and">
5279                      <or>
5280                         <instanceof
5281                               value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
5282                         </instanceof>
5283                         <instanceof
5284                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
5285                         </instanceof>
5286                         <instanceof
5287                               value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
5288                         </instanceof>
5289                      </or>
5290                   </iterate>
5291                </and>
5292             </visibleWhen>
5293          </command>
5294          <command
5295                commandId="org.eclipse.ui.edit.delete"
5296                label="%RepoViewDeleteFile.label"
5297                style="push">
5298             <visibleWhen
5299                   checkEnabled="false">
5300                <and>
5301                   <count
5302                         value="+">
5303                   </count>
5304                   <iterate
5305                         ifEmpty="false"
5306                         operator="and">
5307                      <or>
5308                         <instanceof
5309                               value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
5310                         </instanceof>
5311                         <instanceof
5312                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
5313                         </instanceof>
5314                      </or>
5315                   </iterate>
5316                </and>
5317             </visibleWhen>
5318          </command>
5319          <command
5320                commandId="org.eclipse.egit.ui.RepositoriesViewImportProjects"
5321                icon="icons/obj16/import_prj.png"
5322                label="%RepoViewImportProjects.label"
5323                style="push">
5324             <visibleWhen checkEnabled="true" />
5325          </command>
5326          <command
5327                commandId="org.eclipse.egit.ui.team.RenameBranch"
5328                label="%RepoViewRenameBranch.label"
5329                style="push">
5330             <visibleWhen checkEnabled="true" />
5331          </command>
5332          <menu id="org.eclipse.egit.ui.repositorygroupmenu"
5333               label="%RepositoryGroupMenu.label">
5334             <dynamic
5335                   class="org.eclipse.egit.ui.internal.actions.RepositoryGroupsMenu"
5336                   id="org.eclipse.egit.ui.repositorygroupmenu.items">
5337             </dynamic>
5338             <visibleWhen checkEnabled="false">
5339                <and>
5340                   <iterate ifEmpty="false"
5341                            operator="and">
5342                      <instanceof
5343                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5344                      </instanceof>
5345                      <not>
5346                         <test
5347                               property="GitRepository.isSubmodule">
5348                         </test>
5349                      </not>
5350                   </iterate>
5351                </and>
5352             </visibleWhen>
5353          </menu>
5354          <command
5355                commandId="org.eclipse.egit.ui.team.InstallLfsLocal"
5356                label="%InstallLfsLocalCommand.label"
5357                style="push">
5358             <visibleWhen checkEnabled="true" />
5359          </command>
5360       </menuContribution>
5361       <menuContribution
5362             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=group.open">
5363          <command
5364                commandId="org.eclipse.egit.ui.RepositoriesViewOpenInEditor"
5365                label="%RepoViewOpenInEditor.label"
5366                style="push">
5367             <visibleWhen checkEnabled="true" />
5368          </command>
5369          <command
5370                commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
5371                label="%RepoViewOpenInCommitViewer.label"
5372                tooltip="%OpenInCommitViewerCommand.tooltip"
5373                style="push">
5374             <visibleWhen checkEnabled="true" />
5375          </command>
5376       </menuContribution>
5377       <menuContribution
5378             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=group.show">
5379          <command
5380                commandId="org.eclipse.egit.ui.RepositoriesViewShowInSystemExplorer"
5381                label="%ShowInSystemExplorer.label"
5382                style="push">
5383             <visibleWhen checkEnabled="true" />
5384          </command>
5385       </menuContribution>
5386       <menuContribution
5387             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-4">
5388          <command
5389               commandId="org.eclipse.egit.ui.team.clean"
5390               label="%CleanCommand.label"
5391               style="push">
5392             <visibleWhen checkEnabled="true" />
5393          </command>
5394          <command
5395                commandId="org.eclipse.egit.ui.team.GarbageCollect"
5396                label="%GarbageCollectCommand.label"
5397                icon="icons/elcl16/trash_flat.png"
5398                style="push">
5399             <visibleWhen
5400                   checkEnabled="false">
5401                <and>
5402                   <count
5403                         value="+">
5404                   </count>
5405                   <iterate>
5406                      <instanceof
5407                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5408                      </instanceof>
5409                   </iterate>
5410                </and>
5411             </visibleWhen>
5412          </command>
5413          <command
5414                commandId="org.eclipse.egit.ui.RepositoriesViewRemove"
5415                label="%RepoViewRemove.label"
5416                style="push">
5417             <visibleWhen checkEnabled="true" />
5418          </command>
5419          <command
5420                commandId="org.eclipse.egit.ui.RepositoriesViewDelete"
5421                label="%RepoViewDeleteRepository.label"
5422                style="push">
5423             <visibleWhen checkEnabled="true" />
5424          </command>
5425       </menuContribution>
5426       <menuContribution
5427             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-5">
5428          <command
5429                commandId="org.eclipse.egit.ui.team.submodule.add"
5430                label="%SubmoduleAddCommand.label"
5431                style="push">
5432             <visibleWhen
5433                   checkEnabled="false">
5434                <and>
5435                   <count
5436                         value="1">
5437                   </count>
5438                   <iterate>
5439                      <or>
5440                         <and>
5441                            <instanceof
5442                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5443                            </instanceof>
5444                            <test property="GitRepository.isSubmodule" value="false" />
5445                            <test property="GitRepository.isBare" value="false" />
5446                         </and>
5447                         <instanceof
5448                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
5449                         </instanceof>
5450                      </or>
5451                   </iterate>
5452                </and>
5453             </visibleWhen>
5454          </command>
5455          <command
5456                commandId="org.eclipse.egit.ui.team.submodule.sync"
5457                label="%SubmoduleSyncCommand.label"
5458                style="push">
5459             <visibleWhen
5460                   checkEnabled="false">
5461                <and>
5462                   <count
5463                         value="+">
5464                   </count>
5465                   <iterate>
5466                      <or>
5467                         <and>
5468                            <instanceof
5469                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5470                            </instanceof>
5471                            <test
5472                                  property="GitRepository.isSubmodule">
5473                            </test>
5474                         </and>
5475                         <instanceof
5476                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
5477                         </instanceof>
5478                      </or>
5479                   </iterate>
5480                </and>
5481             </visibleWhen>
5482          </command>
5483          <command
5484                commandId="org.eclipse.egit.ui.team.submodule.update"
5485                label="%SubmoduleUpdateCommand.label"
5486                style="push">
5487             <visibleWhen
5488                   checkEnabled="false">
5489                <and>
5490                   <count
5491                         value="+">
5492                   </count>
5493                   <iterate>
5494                      <or>
5495                         <and>
5496                            <instanceof
5497                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5498                            </instanceof>
5499                            <test
5500                                  property="GitRepository.isSubmodule">
5501                            </test>
5502                         </and>
5503                         <instanceof
5504                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
5505                         </instanceof>
5506                      </or>
5507                   </iterate>
5508                </and>
5509             </visibleWhen>
5510          </command>
5511       </menuContribution>
5512       <menuContribution
5513             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-6">
5514          <command
5515                commandId="org.eclipse.egit.ui.RepositoriesViewCopyPath"
5516                label="%RepoViewCopyPath.label"
5517                style="push">
5518             <visibleWhen
5519                   checkEnabled="false">
5520                   <reference
5521                         definitionId="org.eclipse.egit.ui.repositoryTreePathNode">
5522                   </reference>
5523             </visibleWhen>
5524          </command>
5525       </menuContribution>
5526       <menuContribution
5527             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=group.properties">
5528          <command
5529                commandId="org.eclipse.ui.file.properties"
5530                style="push">
5531             <visibleWhen
5532                   checkEnabled="false">
5533                <and>
5534                   <count
5535                         value="1">
5536                   </count>
5537                   <iterate>
5538                      <instanceof
5539                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
5540                      </instanceof>
5541                   </iterate>
5542                </and>
5543             </visibleWhen>
5544          </command>
5545       </menuContribution>
5546       <menuContribution
5547             locationURI="toolbar:org.eclipse.egit.ui.RepositoriesView">
5548          <separator
5549                name="org.eclipse.egit.ui.repositoryActions"
5550                visible="true">
5551          </separator>
5552          <command
5553                commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
5554                style="push"
5555                tooltip="%RepoViewAddRepository.tooltip">
5556          </command>
5557          <command
5558                commandId="org.eclipse.egit.ui.RepositoriesViewClone"
5559                style="push"
5560                tooltip="%RepoViewCloneRepository.tooltip">
5561          </command>
5562          <command
5563                commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
5564                style="push"
5565                tooltip="%RepoViewCreateRepository.tooltip">
5566          </command>
5567          <separator
5568                name="org.eclipse.egit.ui.viewActions"
5569                visible="true">
5570          </separator>
5571          <command
5572                commandId="org.eclipse.ui.file.refresh"
5573                icon="icons/obj16/refresh.png"
5574                disabledIcon="icons/obj16/refresh.png"
5575                style="push">
5576          </command>
5577          <command
5578                commandId="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
5579                tooltip="%RepoViewLinkWithSelection.tooltip"
5580                style="toggle">
5581          </command>
5582          <separator
5583                name="org.eclipse.egit.ui.separator1"
5584                visible="true">
5585          </separator>
5586          <command
5587                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
5588                helpContextId="Hierarchical Branch Representation"
5589                style="toggle"
5590                tooltip="%RepoViewHierarchicalBranchRepresenation.tooltip">
5591          </command>
5592          <command
5593                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
5594                style="toggle"
5595                tooltip="%RepoViewBranchCommit.tooltip">
5596          </command>
5597       </menuContribution>
5598       <menuContribution
5599             locationURI="menu:org.eclipse.egit.ui.RepositoriesView">
5600          <command
5601                commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
5602                label="%RepoViewAddRepository.label"
5603                tooltip="%RepoViewAddRepository.tooltip"
5604                style="push">
5605          </command>
5606          <command
5607                commandId="org.eclipse.egit.ui.RepositoriesViewClone"
5608                label="%RepoViewCloneRepository.label"
5609                tooltip="%RepoViewCloneRepository.tooltip"
5610                style="push">
5611          </command>
5612          <command
5613                commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
5614                label="%RepoViewCreateRepository.label"
5615                tooltip="%RepoViewCreateRepository.tooltip"
5616                style="push">
5617          </command>
5618          <command
5619                commandId="org.eclipse.egit.ui.RepositoriesCreateGroup"
5620                label="%CreateRepositoryGroupCommand.label"
5621                style="push">
5622          </command>
5623          <command
5624                commandId="org.eclipse.ui.edit.paste"
5625                label="%RepoViewPastePath.label"
5626                style="push">
5627          </command>
5628          <separator
5629                name="org.eclipse.egit.ui.viewActions"
5630                visible="true">
5631          </separator>
5632          <command
5633                commandId="org.eclipse.ui.file.refresh"
5634                icon="icons/obj16/refresh.png"
5635                style="push">
5636          </command>
5637          <command
5638                commandId="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
5639                label="%RepoViewLinkWithSelectionMenu.label"
5640                style="toggle">
5641          </command>
5642          <separator
5643                name="org.eclipse.egit.ui.separator2"
5644                visible="true">
5645          </separator>
5646          <command
5647                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
5648                label="%HierarchyLayout.label"
5649                style="toggle">
5650          </command>
5651          <command
5652                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
5653                label="%BranchCommit.label"
5654                style="toggle">
5655          </command>
5656       </menuContribution>
5657       <menuContribution
5658             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
5659          <menu
5660                id="team.main"
5661                label="%TeamMenu.label">
5662             <separator
5663                   name="group1"
5664                   visible="true">
5665             </separator>
5666             <command
5667                   commandId="org.eclipse.egit.ui.team.Commit"
5668                   label="%CommitAction_label"
5669                   style="push">
5670                <visibleWhen
5671                      checkEnabled="false">
5672                   <reference
5673                         definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
5674                   </reference>
5675                </visibleWhen>
5676             </command>
5677             <menu
5678                   id="egit.menu.stashes"
5679                   label="%StashesMenu.label"
5680                   icon="icons/obj16/stash.png">
5681                <dynamic
5682                      class="org.eclipse.egit.ui.internal.actions.StashesMenu"
5683                      id="org.eclipse.egit.ui.stashedChanges">
5684                </dynamic>
5685                <visibleWhen
5686                      checkEnabled="false">
5687                   <test
5688                         property="GitSelection.projectsSingleRepository">
5689                   </test>
5690                </visibleWhen>
5691             </menu>
5692             <separator
5693                   name="org.eclipse.egit.ui.pullPushSeparator"
5694                   visible="true">
5695             </separator>
5696             <command
5697                   commandId="org.eclipse.egit.ui.team.SimplePush"
5698                   label="%PushToUpstreamAction.label"
5699                   style="push">
5700                <visibleWhen
5701                      checkEnabled="false">
5702                   <test
5703                         property="GitSelection.projectsSingleRepository">
5704                   </test>
5705                </visibleWhen>
5706             </command>
5707             <command
5708                   commandId="org.eclipse.egit.ui.team.SimpleFetch"
5709                   label="%FetchFromUpstreamAction.label"
5710                   mnemonic="f"
5711                   style="push">
5712                <visibleWhen
5713                      checkEnabled="false">
5714                   <test
5715                         property="GitSelection.projectsSingleRepository">
5716                   </test>
5717                </visibleWhen>
5718             </command>
5719             <command
5720                   commandId="org.eclipse.egit.ui.PushHeadToGerrit"
5721                   label="%PushToGerritMenu.label"
5722                   style="push">
5723                <visibleWhen
5724                      checkEnabled="false">
5725                   <test
5726                         property="GitSelection.projectsSingleRepository"
5727                         args="canPushToGerrit">
5728                   </test>
5729                </visibleWhen>
5730             </command>
5731             <command
5732                   commandId="org.eclipse.egit.ui.FetchGerritChange"
5733                   label="%FetchFromGerritCommand.label"
5734                   style="push">
5735                <visibleWhen
5736                      checkEnabled="false">
5737                   <test
5738                         property="GitSelection.projectsSingleRepository"
5739                         args="canFetchFromGerrit">
5740                   </test>
5741                </visibleWhen>
5742             </command>
5743             <command
5744                   commandId="org.eclipse.egit.ui.FetchGitHubPR"
5745                   label="%FetchFromGitHubCommand.label"
5746                   style="push">
5747                <visibleWhen
5748                      checkEnabled="false">
5749                   <test
5750                         property="GitSelection.projectsSingleRepository"
5751                         args="hasGitHubConfiguration">
5752                   </test>
5753                </visibleWhen>
5754             </command>
5755             <command
5756                   commandId="org.eclipse.egit.ui.FetchGitLabMergeRequest"
5757                   label="%FetchFromGitLabCommand.label"
5758                   style="push">
5759                <visibleWhen
5760                      checkEnabled="false">
5761                   <test
5762                         property="GitSelection.projectsSingleRepository"
5763                         args="hasGitLabConfiguration">
5764                   </test>
5765                </visibleWhen>
5766             </command>
5767             <command
5768                   commandId="org.eclipse.egit.ui.FetchGiteaPullRequest"
5769                   label="%FetchFromGiteaCommand.label"
5770                   style="push">
5771                <visibleWhen
5772                      checkEnabled="false">
5773                   <test
5774                         property="GitSelection.projectsSingleRepository"
5775                         args="hasGiteaConfiguration">
5776                   </test>
5777                </visibleWhen>
5778             </command>
5779             <dynamic
5780                   class="org.eclipse.egit.ui.internal.actions.PushMenu"
5781                   id="org.eclipse.egit.ui.team.popup.Push">
5782                <visibleWhen
5783                      checkEnabled="false">
5784                   <test
5785                         property="GitSelection.projectsSingleRepository">
5786                   </test>
5787                </visibleWhen>
5788             </dynamic>
5789             <command
5790                   commandId="org.eclipse.egit.ui.team.Pull"
5791                   label="%PullIntoCurrentBranchMenuLabel"
5792                   style="push">
5793                <visibleWhen
5794                      checkEnabled="false">
5795                   <test
5796                         property="GitSelection.projectsWithRepositories">
5797                   </test>
5798                </visibleWhen>
5799             </command>
5800             <command
5801                   commandId="org.eclipse.egit.ui.team.PullWithOptions"
5802                   label="%PullWithOptions.name"
5803                   style="push">
5804                <visibleWhen
5805                      checkEnabled="false">
5806                   <test
5807                         property="GitSelection.projectsSingleRepository">
5808                   </test>
5809                </visibleWhen>
5810             </command>
5811             <separator
5812                   name="org.eclipse.egit.ui.remoteSeparator"
5813                   visible="true">
5814             </separator>
5815             <menu
5816                   id="egit.menu.remote"
5817                   label="%RemoteSubMenu.label">
5818                <command
5819                      commandId="org.eclipse.egit.ui.team.Push"
5820                      label="%PushAction_label"
5821                      style="push">
5822                </command>
5823                <command
5824                      commandId="org.eclipse.egit.ui.team.PushTags"
5825                      label="%PushTagsCommand.label"
5826                      style="push">
5827                </command>
5828                <command
5829                      commandId="org.eclipse.egit.ui.team.Fetch"
5830                      label="%FetchAction_label"
5831                      style="push">
5832                </command>
5833                <separator
5834                      name="org.eclipse.egit.ui.remote.group1"
5835                      visible="true">
5836                </separator>
5837                <command
5838                      commandId="org.eclipse.egit.ui.team.ConfigurePush"
5839                      label="%ConfigurePushToUpstreamCommand.label"
5840                      style="push">
5841                </command>
5842                <command
5843                      commandId="org.eclipse.egit.ui.team.ConfigureFetch"
5844                      label="%ConfigureFetchFromUpstreamCommand.label"
5845                      style="push">
5846                </command>
5847                <visibleWhen
5848                      checkEnabled="false">
5849                   <test
5850                         property="GitSelection.projectsSingleRepository">
5851                   </test>
5852                </visibleWhen>
5853             </menu>
5854             <separator
5855                   name="org.eclipse.egit.ui.branchSeparator">
5856             </separator>
5857             <menu
5858                   id="egit.menu.switch"
5859                   label="%SwitchToMenu.label"
5860                   icon="icons/obj16/branches_obj.png">
5861                <dynamic
5862                      class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
5863                      id="org.eclipse.egit.ui.switchToMenu">
5864                </dynamic>
5865                <visibleWhen
5866                      checkEnabled="false">
5867                   <test
5868                         property="GitSelection.projectsSingleRepository">
5869                   </test>
5870                </visibleWhen>
5871             </menu>
5872             <menu
5873                   id="egit.menu.switchMultiple"
5874                   label="%SwitchToMenuMultiple.label"
5875                   icon="icons/obj16/branches_obj.png">
5876                <dynamic
5877                      class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
5878                      id="org.eclipse.egit.ui.switchToMenuMultiple">
5879                </dynamic>
5880                <visibleWhen
5881                      checkEnabled="false">
5882                   <test
5883                         property="GitSelection.resourcesMultipleRepositories">
5884                   </test>
5885                </visibleWhen>
5886             </menu>
5887             <separator
5888                   name="org.eclipse.egit.ui.AdvancedSeparator">
5889             </separator>
5890             <menu
5891                   id="egit.menu.repo"
5892                   label="%RepositorySubMenu.label">
5893                <visibleWhen
5894                      checkEnabled="false">
5895                      <reference
5896                            definitionId="org.eclipse.egit.ui.fileOrFolderInRepository">
5897                      </reference>
5898                </visibleWhen>
5899                <separator
5900                      name="group1"
5901                      visible="true">
5902                </separator>
5903                <command
5904                      commandId="org.eclipse.egit.ui.team.SimplePush"
5905                      label="%PushToUpstreamAction.label"
5906                      style="push">
5907                </command>
5908                <command
5909                      commandId="org.eclipse.egit.ui.team.SimpleFetch"
5910                      label="%FetchFromUpstreamAction.label"
5911                      style="push">
5912                </command>
5913                <dynamic
5914                      class="org.eclipse.egit.ui.internal.actions.PushMenu"
5915                      id="org.eclipse.egit.ui.team.popup.Push">
5916                </dynamic>
5917                <command
5918                      commandId="org.eclipse.egit.ui.team.Pull"
5919                      label="%RepoViewPullMenu.label"
5920                      style="push">
5921                </command>
5922                <command
5923                      commandId="org.eclipse.egit.ui.PushHeadToGerrit"
5924                      label="%PushToGerritMenu.label"
5925                      style="push">
5926                   <visibleWhen
5927                         checkEnabled="false">
5928                      <reference
5929                            definitionId="org.eclipse.egit.ui.fileOrFolderPushToGerrit">
5930                      </reference>
5931                   </visibleWhen>
5932                </command>
5933                <command
5934                      commandId="org.eclipse.egit.ui.FetchGerritChange"
5935                      label="%FetchFromGerritCommand.label"
5936                      style="push">
5937                   <visibleWhen
5938                         checkEnabled="false">
5939                      <reference
5940                            definitionId="org.eclipse.egit.ui.fileOrFolderFetchFromGerrit">
5941                      </reference>
5942                   </visibleWhen>
5943                </command>
5944                <command
5945                      commandId="org.eclipse.egit.ui.FetchGitHubPR"
5946                      label="%FetchFromGitHubCommand.label"
5947                      style="push">
5948                   <visibleWhen
5949                         checkEnabled="false">
5950                      <reference
5951                            definitionId="org.eclipse.egit.ui.fileOrFolderFetchFromGitHub">
5952                      </reference>
5953                   </visibleWhen>
5954                </command>
5955                <command
5956                      commandId="org.eclipse.egit.ui.FetchGitLabMergeRequest"
5957                      label="%FetchFromGitLabCommand.label"
5958                      style="push">
5959                   <visibleWhen
5960                         checkEnabled="false">
5961                      <reference
5962                            definitionId="org.eclipse.egit.ui.fileOrFolderFetchFromGitLab">
5963                      </reference>
5964                   </visibleWhen>
5965                </command>
5966                <command
5967                      commandId="org.eclipse.egit.ui.FetchGiteaPullRequest"
5968                      label="%FetchFromGiteaCommand.label"
5969                      style="push">
5970                   <visibleWhen
5971                         checkEnabled="false">
5972                      <reference
5973                            definitionId="org.eclipse.egit.ui.fileOrFolderFetchFromGitea">
5974                      </reference>
5975                   </visibleWhen>
5976                </command>
5977                <separator
5978                      name="group2"
5979                      visible="true">
5980                </separator>
5981                <menu
5982                      id="egit.menu.repo.switchto"
5983                      label="%SwitchToMenu.label"
5984                      icon="icons/obj16/branches_obj.png">
5985                   <dynamic
5986                         class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
5987                         id="org.eclipse.egit.ui.switchToMenu">
5988                   </dynamic>
5989                </menu>
5990             </menu>
5991             <menu
5992                   id="egit.menu.advanced"
5993                   label="%AdvancedMenu.label">
5994                <command
5995                      commandId="org.eclipse.egit.ui.team.RenameBranch"
5996                      label="%RenameBranchMenu.label"
5997                      style="push">
5998                   <visibleWhen
5999                         checkEnabled="false">
6000                      <test
6001                            property="GitSelection.projectsSingleRepository">
6002                      </test>
6003                   </visibleWhen>
6004                </command>
6005                <command
6006                      commandId="org.eclipse.egit.ui.team.DeleteBranch"
6007                      label="%DeleteBranchMenu.label"
6008                      style="push">
6009                   <visibleWhen
6010                         checkEnabled="false">
6011                      <test
6012                            property="GitSelection.projectsSingleRepository">
6013                      </test>
6014                   </visibleWhen>
6015                </command>
6016                <separator
6017                   name="org.eclipse.egit.ui.SynchronizeWithSeparator"
6018                   visible="true" />
6019                <menu
6020                   id="egit.menu.synchronize"
6021                   label="%SynchronizeWith_label"
6022                   icon="$nl$/icons/obj16/synchronize.png">
6023                   <dynamic
6024                      class="org.eclipse.egit.ui.internal.actions.SynchronizeWithMenu"
6025                      id="org.eclipse.egit.ui.synchronize">
6026                   </dynamic>
6027                   <visibleWhen checkEnabled="false">
6028                   <and>
6029                      <count value="1" />
6030                      <iterate>
6031                         <and>
6032                            <adapt type="org.eclipse.core.resources.IResource">
6033                               <and>
6034                                  <test property="GitResource.isShared" />
6035                                  <test property="GitResource.isContainer" />
6036                               </and>
6037                            </adapt>
6038                         </and>
6039                      </iterate>
6040                   </and>
6041                </visibleWhen>
6042                </menu>
6043                <separator
6044                      name="org.eclipse.egit.ui.separator1"
6045                      visible="true">
6046                </separator>
6047                <command
6048                      commandId="org.eclipse.egit.ui.team.Tag"
6049                      label="%TagAction_label"
6050                      style="push">
6051                   <visibleWhen checkEnabled="false">
6052                      <test property="GitSelection.projectsSingleRepository" />
6053                   </visibleWhen>
6054                </command>
6055                <separator
6056                      name="org.eclipse.egit.ui.separator2"
6057                      visible="true">
6058                </separator>
6059                <command
6060                      commandId="org.eclipse.egit.ui.team.clean"
6061                      label="%CleanCommand.label"
6062                      style="push">
6063                   <visibleWhen checkEnabled="false">
6064                      <test property="GitSelection.projectsSingleRepository" />
6065                   </visibleWhen>
6066                </command>
6067                <separator
6068                      name="org.eclipse.egit.ui.TeamAdvancedFileSeparator"
6069                      visible="true">
6070                </separator>
6071                <command
6072                      commandId="org.eclipse.egit.ui.team.AssumeUnchanged"
6073                      label="%AssumeUnchangedAction_label"
6074                      style="push">
6075                   <visibleWhen
6076                         checkEnabled="false">
6077                      <reference
6078                            definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
6079                      </reference>
6080                   </visibleWhen>
6081                </command>
6082                <command
6083                      commandId="org.eclipse.egit.ui.team.NoAssumeUnchanged"
6084                      label="%NoAssumeUnchangedAction_label"
6085                      style="push">
6086                   <visibleWhen
6087                         checkEnabled="false">
6088                      <reference
6089                            definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
6090                      </reference>
6091                   </visibleWhen>
6092                </command>
6093                <command
6094                      commandId="org.eclipse.egit.ui.team.Untrack"
6095                      label="%UntrackAction_label"
6096                      style="push">
6097                   <visibleWhen
6098                         checkEnabled="false">
6099                      <reference
6100                            definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
6101                      </reference>
6102                   </visibleWhen>
6103                </command>
6104             </menu>
6105             <separator
6106                   name="group2"
6107                   visible="true">
6108             </separator>
6109             <separator
6110                   name="group3"
6111                   visible="true">
6112             </separator>
6113             <separator
6114                   name="group4"
6115                   visible="true">
6116             </separator>
6117             <command
6118                   commandId="org.eclipse.egit.ui.team.Merge"
6119                   label="%MergeAction_label"
6120                   style="push">
6121                <visibleWhen
6122                      checkEnabled="false">
6123                   <test
6124                         property="GitSelection.projectsSingleRepository">
6125                   </test>
6126                </visibleWhen>
6127             </command>
6128             <separator
6129                   name="group5"
6130                   visible="true">
6131             </separator>
6132             <command
6133                   commandId="org.eclipse.egit.ui.team.Rebase" style="push"
6134                   label="%RebaseWithDialog_label">
6135                <visibleWhen checkEnabled="false">
6136                   <test
6137                         property="GitSelection.projectsSingleRepository"
6138                         args="isSafe">
6139                   </test>
6140                </visibleWhen>
6141             </command>
6142             <menu
6143                   icon="icons/obj16/rebase.png"
6144                   id="egit.menu.rebase"
6145                   label="%RebaseMenu.label">
6146                <command
6147                      commandId="org.eclipse.egit.ui.AbortRebase"
6148                      style="push">
6149                   <visibleWhen>
6150                      <or>
6151                         <with variable="activeMenuSelection">
6152                            <count value="1" />
6153                            <iterate>
6154                               <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
6155                               <test property="GitRepository.canAbortRebase" />
6156                            </iterate>
6157                         </with>
6158                         <test
6159                               property="GitSelection.projectsSingleRepository"
6160                               args="canAbortRebase">
6161                         </test>
6162                      </or>
6163                   </visibleWhen>
6164                </command>
6165                <command
6166                      commandId="org.eclipse.egit.ui.ContinueRebase"
6167                      style="push">
6168                   <visibleWhen>
6169                      <or>
6170                         <with variable="activeMenuSelection">
6171                            <count value="1" />
6172                            <iterate>
6173                               <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
6174                               <test property="GitRepository.canContinueRebase" />
6175                            </iterate>
6176                         </with>
6177                         <test
6178                               property="GitSelection.projectsSingleRepository"
6179                               args="canContinueRebase">
6180                         </test>
6181                      </or>
6182                   </visibleWhen>
6183                </command>
6184                <command
6185                      commandId="org.eclipse.egit.ui.SkipRebase"
6186                      style="push">
6187                   <visibleWhen>
6188                      <or>
6189                         <with variable="activeMenuSelection">
6190                            <count value="1" />
6191                            <iterate>
6192                               <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
6193                               <test property="GitRepository.canAbortRebase" />
6194                            </iterate>
6195                         </with>
6196                         <test
6197                               property="GitSelection.projectsSingleRepository"
6198                               args="canAbortRebase">
6199                         </test>
6200                      </or>
6201                   </visibleWhen>
6202                </command>
6203             </menu>
6204             <command
6205                   commandId="org.eclipse.egit.ui.team.Reset"
6206                   label="%ResetAction_label"
6207                   style="push">
6208                <visibleWhen
6209                      checkEnabled="false">
6210                   <test
6211                         property="GitSelection.projectsSingleRepository">
6212                   </test>
6213                </visibleWhen>
6214             </command>
6215             <separator
6216                   name="group6"
6217                   visible="true">
6218             </separator>
6219             <command
6220                   commandId="org.eclipse.egit.ui.team.CreatePatch"
6221                   label="%CreatePatchAction.label"
6222                   style="push">
6223                <visibleWhen
6224                      checkEnabled="false">
6225                   <reference
6226                         definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
6227                   </reference>
6228                </visibleWhen>
6229             </command>
6230             <separator
6231                   name="applyPatchGroup"
6232                   visible="false">
6233             </separator>
6234             <separator
6235                   name="group7"
6236                   visible="true">
6237             </separator>
6238             <separator
6239                   name="group8"
6240                   visible="true">
6241             </separator>
6242             <separator
6243                   name="group9"
6244                   visible="true">
6245             </separator>
6246             <command
6247                   commandId="org.eclipse.egit.ui.team.ShowHistory"
6248                   label="%ShowResourceInHistoryAction_label"
6249                   style="push">
6250                <visibleWhen checkEnabled="true" />
6251             </command>
6252             <command
6253                   commandId="org.eclipse.egit.ui.team.ShowRepositoriesView"
6254                   label="%ShowRepositoryAction_label"
6255                   style="push">
6256                <visibleWhen
6257                      checkEnabled="false">
6258                   <reference
6259                         definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
6260                   </reference>
6261                </visibleWhen>
6262             </command>
6263             <separator
6264                   name="showAnnotationsGroup"
6265                   visible="false">
6266             </separator>
6267             <command
6268                   commandId="org.eclipse.egit.ui.team.ShowBlame"
6269                   label="%ShowBlameAction_label"
6270                   style="push">
6271                <visibleWhen checkEnabled="true" />
6272             </command>
6273             <separator
6274                   name="group10"
6275                   visible="true">
6276             </separator>
6277             <separator
6278                   name="targetGroup"
6279                   visible="true">
6280             </separator>
6281             <separator
6282                   name="projectGroup"
6283                   visible="true">
6284             </separator>
6285             <separator
6286                   name="group11"
6287                   visible="true">
6288             </separator>
6289             <command
6290                   commandId="org.eclipse.egit.ui.team.Disconnect"
6291                   label="%DisconnectAction_label"
6292                   style="push">
6293                <visibleWhen
6294                      checkEnabled="false">
6295                   <test
6296                         property="GitSelection.projectsWithRepositories">
6297                   </test>
6298                </visibleWhen>
6299             </command>
6300             <visibleWhen>
6301                <with variable="activeMenu">
6302                   <not>
6303                      <iterate operator="or">
6304                         <or>
6305                            <equals value="#AbstractTextEditorRulerContext" />
6306                            <equals value="#OverviewRulerContext" />
6307                         </or>
6308                      </iterate>
6309                   </not>
6310                </with>
6311             </visibleWhen>
6312          </menu>
6313       </menuContribution>
6314       <menuContribution
6315          locationURI="popup:#AbstractTextEditorRulerContext?before=Linenumbers.Toggle">
6316          <command
6317             commandId="org.eclipse.egit.ui.team.ShowBlame"
6318             label="%ShowBlameAction_label"
6319             style="push">
6320             <visibleWhen checkEnabled="false">
6321                <and>
6322                   <with variable="activeEditorInput">
6323                      <or>
6324                         <adapt type="org.eclipse.core.resources.IFile">
6325                            <test property="GitResource.isShared" />
6326                         </adapt>
6327                         <adapt type="org.eclipse.team.core.history.IFileRevision">
6328                            <instanceof value="org.eclipse.egit.core.internal.storage.CommitFileRevision" />
6329                         </adapt>
6330                      </or>
6331                   </with>
6332                   <with variable="activeEditor">
6333                      <test property="org.eclipse.egit.ui.EditorProperty.canShowRevisions" args="notAlready" />
6334                   </with>
6335                </and>
6336             </visibleWhen>
6337          </command>
6338       </menuContribution>
6339       <menuContribution
6340             allPopups="false"
6341             locationURI="popup:team.main?after=group8">
6342          <command
6343                commandId="org.eclipse.egit.ui.team.AddToIndex"
6344                label="%AddToIndexAction_label"
6345                style="push">
6346             <visibleWhen
6347                   checkEnabled="false">
6348                <test
6349                      property="org.eclipse.egit.ui.resources.ResourceState.hasUnstagedChanges">
6350                </test>
6351             </visibleWhen>
6352          </command>
6353          <command
6354                commandId="org.eclipse.egit.ui.team.RemoveFromIndex"
6355                label="%RemoveFromIndexAction_label"
6356                style="push">
6357             <visibleWhen
6358                   checkEnabled="false">
6359                <test
6360                      property="org.eclipse.egit.ui.resources.ResourceState.hasStagedChanges">
6361                </test>
6362             </visibleWhen>
6363          </command>
6364          <command
6365                commandId="org.eclipse.egit.ui.team.Ignore"
6366                label="%IgnoreAction_label"
6367                style="push">
6368             <visibleWhen
6369                   checkEnabled="false">
6370                <test
6371                      property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources">
6372                </test>
6373             </visibleWhen>
6374          </command>
6375       </menuContribution>
6376       <menuContribution
6377             allPopups="false"
6378             locationURI="popup:compareWithMenu?after=gitCompareWithGroup">
6379          <command
6380                commandId="org.eclipse.egit.ui.team.CompareWithHead"
6381                label="%CompareWithHeadAction_label"
6382                style="push">
6383             <visibleWhen checkEnabled="true" />
6384          </command>
6385          <command
6386                commandId="org.eclipse.egit.ui.team.CompareWithIndex"
6387                label="%CompareWithIndexAction_label"
6388                style="push">
6389             <visibleWhen checkEnabled="false">
6390                <and>
6391                   <test property="GitSelection.selectionSingleRepository" />
6392                   <test property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources" />
6393                </and>
6394             </visibleWhen>
6395          </command>
6396          <command
6397                commandId="org.eclipse.egit.ui.team.CompareIndexWithHead"
6398                label="%CompareIndexWithHeadAction_label"
6399                style="push">
6400             <visibleWhen checkEnabled="true" />
6401          </command>
6402          <command
6403                commandId="org.eclipse.egit.ui.team.CompareWithPrevious"
6404                label="%CompareWithPreviousAction.label"
6405                style="push">
6406             <visibleWhen checkEnabled="true" />
6407          </command>
6408       </menuContribution>
6409       <menuContribution
6410             allPopups="false"
6411             locationURI="popup:compareWithMenu?after=gitCompareWithGroup2">
6412          <command
6413                commandId="org.eclipse.egit.ui.team.CompareWithRef"
6414                label="%CompareWithBranchOrTagAction.label"
6415                style="push">
6416             <visibleWhen checkEnabled="true" />
6417          </command>
6418          <command
6419                commandId="org.eclipse.egit.ui.team.CompareWithCommit"
6420                label="%CompareWithCommitAction.label"
6421                style="push">
6422             <visibleWhen checkEnabled="true" />
6423          </command>
6424       </menuContribution>
6425       <menuContribution
6426             allPopups="false"
6427             locationURI="popup:replaceWithMenu?after=gitReplaceWithGroup">
6428          <command
6429                commandId="org.eclipse.egit.ui.team.ReplaceWithHead"
6430                label="%ReplaceWithHeadAction_label"
6431                style="push">
6432             <visibleWhen checkEnabled="true" />
6433          </command>
6434          <command
6435                commandId="org.eclipse.egit.ui.team.Discard"
6436                label="%DiscardChangesAction_label"
6437                style="push">
6438             <visibleWhen checkEnabled="true" />
6439          </command>
6440          <command
6441                commandId="org.eclipse.egit.ui.team.ReplaceWithPrevious"
6442                label="%ReplaceWithPreviousVersionAction.label"
6443                style="push">
6444             <visibleWhen checkEnabled="false">
6445                <and>
6446                   <count value="1" />
6447                   <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
6448                   <test property="org.eclipse.egit.ui.resources.ResourceState.hasTrackedResources" />
6449                </and>
6450             </visibleWhen>
6451          </command>
6452          <command
6453                commandId="org.eclipse.egit.ui.team.ReplaceWithOurs"
6454                label="%ReplaceWithOursAction_label"
6455                style="push">
6456             <visibleWhen checkEnabled="true" />
6457          </command>
6458          <command
6459                commandId="org.eclipse.egit.ui.team.ReplaceWithTheirs"
6460                label="%ReplaceWithTheirsAction_label"
6461                style="push">
6462             <visibleWhen checkEnabled="true" />
6463          </command>
6464       </menuContribution>
6465       <menuContribution
6466             allPopups="false"
6467             locationURI="popup:replaceWithMenu?after=gitReplaceWithGroup2">
6468          <command
6469                commandId="org.eclipse.egit.ui.team.ReplaceWithRef"
6470                label="%ReplaceWithRefAction_label"
6471                style="push">
6472             <visibleWhen checkEnabled="false">
6473                <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
6474             </visibleWhen>
6475          </command>
6476          <command
6477                commandId="org.eclipse.egit.ui.team.ReplaceWithCommit"
6478                label="%ReplaceWithCommitAction_label"
6479                style="push">
6480             <visibleWhen checkEnabled="false">
6481                <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
6482             </visibleWhen>
6483          </command>
6484       </menuContribution>
6485       <menuContribution
6486             allPopups="false"
6487             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
6488          <menu
6489                id="compareWithMenu"
6490                label="%CompareWithMenu.label">
6491             <separator
6492                   name="compareWithGroup">
6493             </separator>
6494             <separator
6495                   name="gitCompareWithGroup"
6496                   visible="true">
6497             </separator>
6498             <separator
6499                   name="gitCompareWithGroup2"
6500                   visible="true">
6501             </separator>
6502             <visibleWhen>
6503                <with variable="activeMenu">
6504                   <not>
6505                      <iterate operator="or">
6506                         <or>
6507                            <equals value="#AbstractTextEditorRulerContext" />
6508                            <equals value="#OverviewRulerContext" />
6509                         </or>
6510                      </iterate>
6511                   </not>
6512                </with>
6513             </visibleWhen>
6514          </menu>
6515       </menuContribution>
6516       <menuContribution
6517             allPopups="false"
6518             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
6519          <menu
6520                id="replaceWithMenu"
6521                label="%ReplaceWithMenu.label">
6522             <separator
6523                   name="replaceWithGroup">
6524             </separator>
6525             <separator
6526                   name="gitReplaceWithGroup"
6527                   visible="true">
6528             </separator>
6529             <separator
6530                   name="gitReplaceWithGroup2"
6531                   visible="true">
6532             </separator>
6533             <visibleWhen>
6534                <with variable="activeMenu">
6535                   <not>
6536                      <iterate operator="or">
6537                         <or>
6538                            <equals value="#AbstractTextEditorRulerContext" />
6539                            <equals value="#OverviewRulerContext" />
6540                         </or>
6541                      </iterate>
6542                   </not>
6543                </with>
6544             </visibleWhen>
6545          </menu>
6546       </menuContribution>
6547    </extension>
6548    <extension
6549          name="%RepositoryCommandsLabel"
6550          point="org.eclipse.ui.commands">
6551       <command
6552             categoryId="org.eclipse.egit.ui.commandCategory"
6553             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.AddCommand"
6554             id="org.eclipse.egit.ui.RepositoriesViewAddRepository"
6555             name="%AddRepositoryCommand"
6556             description="%AddRepositoryCommand.description">
6557       </command>
6558       <command
6559             categoryId="org.eclipse.egit.ui.commandCategory"
6560             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.CloneCommand"
6561             id="org.eclipse.egit.ui.RepositoriesViewClone"
6562             name="%CloneRepositoryCommand"
6563             description="%CloneRepositoryCommand.description">
6564          <commandParameter
6565                id="repositoryUri"
6566                name="%RepositoriesViewClone_repositoryUri_Name"
6567                optional="true">
6568          </commandParameter>
6569       </command>
6570       <command
6571             categoryId="org.eclipse.egit.ui.commandCategory"
6572             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.CreateRepositoryCommand"
6573             id="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
6574             name="%CreateRepositoryCommand"
6575             description="%CreateRepositoryCommand.description">
6576       </command>
6577       <command
6578             categoryId="org.eclipse.egit.ui.commandCategory"
6579             id="org.eclipse.egit.ui.RepositoriesViewCopyPath"
6580             name="%CopyPathCommand">
6581       </command>
6582       <command
6583             categoryId="org.eclipse.egit.ui.commandCategory"
6584             id="org.eclipse.egit.ui.RepositoriesViewRemove"
6585             name="%RemoveRepositoryCommand">
6586       </command>
6587       <command
6588             categoryId="org.eclipse.egit.ui.commandCategory"
6589             id="org.eclipse.egit.ui.RepositoriesViewImportProjects"
6590             name="%ImportProjectsCommand"
6591             description="%ImportProjectsCommand_description"
6592             >
6593       </command>
6594       <command
6595             categoryId="org.eclipse.egit.ui.commandCategory"
6596             id="org.eclipse.egit.ui.ImportChangedProjectsCommandId"
6597             name="%ImportChangedProjectsCommand"
6598             description="%ImportProjectsCommand_description">
6599       </command>
6600       <command
6601             categoryId="org.eclipse.egit.ui.commandCategory"
6602             id="org.eclipse.egit.ui.RepositoriesViewCreateBranch"
6603             name="%CreateBranchCommand">
6604       </command>
6605       <command
6606             categoryId="org.eclipse.egit.ui.commandCategory"
6607             id="org.eclipse.egit.ui.RepositoriesViewNewRemote"
6608             name="%NewRemoteCommand">
6609       </command>
6610       <command
6611             categoryId="org.eclipse.egit.ui.commandCategory"
6612             id="org.eclipse.egit.ui.RepositoriesViewConfigureFetch"
6613             name="%ConfigureFetchCommand">
6614       </command>
6615       <command
6616             categoryId="org.eclipse.egit.ui.commandCategory"
6617             id="org.eclipse.egit.ui.RepositoriesViewConfigurePush"
6618             name="%ConfigurePushCommand">
6619       </command>
6620       <command
6621             categoryId="org.eclipse.egit.ui.commandCategory"
6622             id="org.eclipse.egit.ui.RepositoriesViewRemoveRemote"
6623             name="%DeleteRemoteCommand">
6624       </command>
6625       <command
6626             categoryId="org.eclipse.egit.ui.commandCategory"
6627             id="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote"
6628             name="%ConfigureGerritRemoteCommand">
6629       </command>
6630       <command
6631             categoryId="org.eclipse.egit.ui.commandCategory"
6632             id="org.eclipse.egit.ui.RepositoriesViewChangeCredentials"
6633             name="%ChangeCredentialsCommand">
6634       </command>
6635       <command
6636             categoryId="org.eclipse.egit.ui.commandCategory"
6637             id="org.eclipse.egit.ui.RepositoriesViewClearCredentials"
6638             name="%ClearCredentialsCommand">
6639       </command>
6640       <command
6641             categoryId="org.eclipse.egit.ui.commandCategory"
6642             id="org.eclipse.egit.ui.RepositoriesViewOpenInEditor"
6643             name="%OpenInEditorCommand">
6644       </command>
6645       <command
6646             categoryId="org.eclipse.egit.ui.commandCategory"
6647             id="org.eclipse.egit.ui.RepositoriesViewOpen"
6648             name="%OpenCommand">
6649       </command>
6650       <command
6651             categoryId="org.eclipse.egit.ui.commandCategory"
6652             id="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
6653             defaultHandler="org.eclipse.egit.ui.internal.commands.ToggleCommand"
6654             name="%LinkWithSelectionCommand">
6655           <state
6656                 class="org.eclipse.ui.handlers.RegistryToggleState:false"
6657                 id="org.eclipse.ui.commands.toggleState">
6658           </state>
6659       </command>
6660       <command
6661             categoryId="org.eclipse.egit.ui.commandCategory"
6662             id="org.eclipse.egit.ui.CheckoutCommand"
6663             name="%CheckoutCommand">
6664       </command>
6665       <command
6666             categoryId="org.eclipse.egit.ui.commandCategory"
6667             id="org.eclipse.egit.ui.RepositoriesViewDelete"
6668             name="%DeleteRepositoryCommand.name">
6669       </command>
6670        <command
6671             categoryId="org.eclipse.egit.ui.commandCategory"
6672             id="org.eclipse.egit.ui.RepositoriesViewCollapseWorkingTree"
6673             name="%RepoViewCollapseWorktreeCommand.label">
6674             description="%RepoViewCollapseWorktreeCommand.description">
6675       </command>
6676       <command
6677             categoryId="org.eclipse.egit.ui.commandCategory"
6678             id="org.eclipse.egit.ui.RepositoriesCreateGroup"
6679             name="%CreateRepositoryGroupCommand.name"
6680             description="%CreateRepositoryGroupCommand.description">
6681       </command>
6682       <command
6683             categoryId="org.eclipse.egit.ui.commandCategory"
6684             id="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
6685             defaultHandler="org.eclipse.egit.ui.internal.commands.ToggleCommand"
6686             name="%ToggleLayoutCommand.name">
6687          <state
6688                class="org.eclipse.ui.handlers.RegistryToggleState:false"
6689                id="org.eclipse.ui.commands.toggleState">
6690          </state>
6691       </command>
6692        <command
6693             categoryId="org.eclipse.egit.ui.commandCategory"
6694             id="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
6695             defaultHandler="org.eclipse.egit.ui.internal.commands.ToggleCommand"
6696             name="%ToggleBranchCommitCommand.name">
6697          <state
6698                class="org.eclipse.ui.handlers.RegistryToggleState:true"
6699                id="org.eclipse.ui.commands.toggleState">
6700          </state>
6701       </command>
6702       <command
6703             categoryId="org.eclipse.egit.ui.commandCategory"
6704             id="org.eclipse.egit.ui.AbortRebase"
6705             name="%AbortRebaseCommand.name">
6706       </command>
6707       <command
6708             categoryId="org.eclipse.egit.ui.commandCategory"
6709             id="org.eclipse.egit.ui.SkipRebase"
6710             name="%SkipRebaseCommand.name">
6711       </command>
6712       <command
6713             categoryId="org.eclipse.egit.ui.commandCategory"
6714             id="org.eclipse.egit.ui.ContinueRebase"
6715             name="%ContinueRebaseCommand.name">
6716       </command>
6717       <command
6718             categoryId="org.eclipse.egit.ui.commandCategory"
6719             id="org.eclipse.egit.ui.team.submodule.update"
6720             name="%SubmoduleUpdateCommand.name">
6721       </command>
6722       <command
6723             categoryId="org.eclipse.egit.ui.commandCategory"
6724             id="org.eclipse.egit.ui.team.submodule.sync"
6725             name="%SubmoduleSyncCommand.name">
6726       </command>
6727       <command
6728             categoryId="org.eclipse.egit.ui.commandCategory"
6729             id="org.eclipse.egit.ui.team.submodule.add"
6730             name="%SubmoduleAddCommand.name">
6731       </command>
6732       <command
6733             categoryId="org.eclipse.egit.ui.commandCategory"
6734             id="org.eclipse.egit.ui.team.clean"
6735             name="%CleanCommand.name">
6736       </command>
6737       <command
6738             categoryId="org.eclipse.egit.ui.commandCategory"
6739             id="org.eclipse.egit.ui.team.stash.create"
6740             defaultHandler="org.eclipse.egit.ui.internal.actions.StashCreateHandler"
6741             name="%StashCreateCommand.name">
6742       </command>
6743       <command
6744             categoryId="org.eclipse.egit.ui.commandCategory"
6745             id="org.eclipse.egit.ui.team.stash.apply"
6746             name="%StashApplyCommand.name">
6747       </command>
6748       <command
6749             categoryId="org.eclipse.egit.ui.commandCategory"
6750             id="org.eclipse.egit.ui.team.stash.drop"
6751             name="%StashDropCommand.name">
6752       </command>
6753       <command
6754             categoryId="org.eclipse.egit.ui.commandCategory"
6755             id="org.eclipse.egit.ui.RepositoriesViewConfigureBranch"
6756             name="%RepoViewConfigureBranchCommand.name">
6757       </command>
6758       <command
6759             categoryId="org.eclipse.egit.ui.commandCategory"
6760             id="org.eclipse.egit.ui.RepositoriesViewShowInSystemExplorer"
6761             name="%ShowInSystemExplorerCommand.name">
6762       </command>
6763    </extension>
6764    <extension
6765          point="org.eclipse.ui.commandImages">
6766       <image
6767             commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
6768             icon="icons/etool16/newlocation_wiz.png">
6769       </image>
6770       <image
6771             commandId="org.eclipse.egit.ui.RepositoriesViewClone"
6772             icon="icons/obj16/cloneGit.png">
6773       </image>
6774       <image
6775             commandId="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
6776             icon="icons/elcl16/synced.png">
6777       </image>
6778       <image
6779             commandId="org.eclipse.egit.ui.team.ShowRepositoriesView"
6780             icon="icons/eview16/repo_rep.png">
6781       </image>
6782       <image
6783             commandId="org.eclipse.egit.ui.team.ShowHistory"
6784             icon="icons/obj16/history.png">
6785       </image>
6786       <image
6787             commandId="org.eclipse.egit.ui.team.CherryPick"
6788             icon="icons/obj16/cherry-pick.png">
6789       </image>
6790       <image
6791             commandId="org.eclipse.egit.ui.team.stash.apply"
6792             icon="icons/obj16/stash-apply.png">
6793       </image>
6794       <image
6795             commandId="org.eclipse.egit.ui.team.stash.drop"
6796             icon="icons/obj16/delete_obj.png">
6797       </image>
6798       <image
6799             commandId="org.eclipse.egit.ui.history.Squash"
6800             icon="icons/obj16/squash-down.png">
6801       </image>
6802       <image
6803             commandId="org.eclipse.egit.ui.commit.Squash"
6804             icon="icons/obj16/squash-down.png">
6805       </image>
6806       <image
6807             commandId="org.eclipse.egit.ui.history.Reword"
6808             icon="icons/obj16/reword.png">
6809       </image>
6810       <image
6811             commandId="org.eclipse.egit.ui.commit.Reword"
6812             icon="icons/obj16/reword.png">
6813       </image>
6814       <image
6815             commandId="org.eclipse.egit.ui.history.Edit"
6816             icon="icons/obj16/editconfig.png">
6817       </image>
6818       <image
6819             commandId="org.eclipse.egit.ui.commit.Edit"
6820             icon="icons/obj16/editconfig.png">
6821       </image>
6822       <image
6823             commandId="org.eclipse.egit.ui.CheckoutCommand"
6824             icon="icons/obj16/checkout.png">
6825       </image>
6826       <image
6827             commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch"
6828             icon="icons/obj16/new_branch_obj.png">
6829       </image>
6830       <image
6831             commandId="org.eclipse.egit.ui.RepositoriesViewNewRemote"
6832             icon="icons/obj16/synchronize.png">
6833       </image>
6834       <image
6835             commandId="org.eclipse.egit.ui.history.PushCommit"
6836             icon="icons/obj16/push.png">
6837       </image>
6838       <image
6839             commandId="org.eclipse.egit.ui.ImportChangedProjectsCommandId"
6840             icon="icons/obj16/import_prj.png">
6841       </image>
6842       <image
6843             commandId="org.eclipse.egit.ui.RepositoriesViewImportProjects"
6844             icon="icons/obj16/import_prj.png">
6845       </image>
6846       <image
6847             commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
6848             icon="icons/etool16/createRepository.png">
6849       </image>
6850       <image
6851             commandId="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
6852             icon="icons/elcl16/hierarchicalLayout.png">
6853       </image>
6854        <image
6855             commandId="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
6856             icon="icons/obj16/changelog_obj.png">
6857       </image>
6858       <image
6859             commandId="org.eclipse.egit.ui.RepositoriesViewDelete"
6860             icon="icons/obj16/delete_obj.png">
6861       </image>
6862       <image
6863             commandId="org.eclipse.egit.ui.RepositoriesViewRemove"
6864             icon="icons/obj16/clear.png">
6865       </image>
6866       <image
6867             commandId="org.eclipse.egit.ui.AbortRebase"
6868             icon="icons/elcl16/progress_stop.png">
6869       </image>
6870       <image
6871             commandId="org.eclipse.egit.ui.ContinueRebase"
6872             icon="icons/elcl16/continue.png">
6873       </image>
6874       <image
6875             commandId="org.eclipse.egit.ui.SkipRebase"
6876             icon="icons/elcl16/skip.png">
6877       </image>
6878       <image
6879             commandId="org.eclipse.egit.ui.history.Merge"
6880             icon="icons/obj16/merge.png">
6881       </image>
6882       <image
6883             commandId="org.eclipse.egit.ui.RebaseCurrent"
6884             icon="icons/obj16/rebase.png">
6885       </image>
6886       <image
6887             commandId="org.eclipse.egit.ui.team.Fetch"
6888             icon="icons/obj16/fetch.png">
6889       </image>
6890       <image
6891             commandId="org.eclipse.egit.ui.team.ConfigureFetch"
6892             icon="icons/obj16/fetch.png">
6893       </image>
6894       <image
6895             commandId="org.eclipse.egit.ui.team.ConfigurePush"
6896             icon="icons/obj16/push.png">
6897       </image>
6898       <image
6899             commandId="org.eclipse.egit.ui.team.Push"
6900             icon="icons/obj16/push.png">
6901       </image>
6902       <image
6903             commandId="org.eclipse.egit.ui.team.PushBranch"
6904             icon="icons/obj16/push.png">
6905       </image>
6906       <image
6907             commandId="org.eclipse.egit.ui.team.PushTags"
6908             icon="icons/obj16/push.png">
6909       </image>
6910       <image
6911             commandId="org.eclipse.egit.ui.FetchGerritChange"
6912             icon="icons/obj16/gerrit_fetch.png">
6913       </image>
6914       <image
6915             commandId="org.eclipse.egit.ui.FetchGitHubPR"
6916             icon="icons/obj16/fetch.png">
6917       </image>
6918       <image
6919             commandId="org.eclipse.egit.ui.FetchGitLabMergeRequest"
6920             icon="icons/obj16/fetch.png">
6921       </image>
6922       <image
6923             commandId="org.eclipse.egit.ui.FetchGiteaPullRequest"
6924             icon="icons/obj16/fetch.png">
6925       </image>
6926       <image
6927             commandId="org.eclipse.egit.ui.team.AddToIndex"
6928             icon="icons/obj16/add.png">
6929       </image>
6930       <image
6931             commandId="org.eclipse.egit.ui.team.RemoveFromIndex"
6932             icon="icons/obj16/unstage.png">
6933       </image>
6934       <image
6935             commandId="org.eclipse.egit.ui.team.Branch"
6936             icon="icons/obj16/branch_obj.png">
6937       </image>
6938       <image
6939             commandId="org.eclipse.egit.ui.team.Commit"
6940             icon="icons/obj16/commit.png">
6941       </image>
6942       <image
6943             commandId="org.eclipse.egit.ui.team.SimpleFetch"
6944             icon="icons/obj16/fetch.png">
6945       </image>
6946       <image
6947             commandId="org.eclipse.egit.ui.team.SimplePush"
6948             icon="icons/obj16/push.png">
6949       </image>
6950       <image
6951             commandId="org.eclipse.egit.ui.team.Ignore"
6952             icon="icons/obj16/ignore.png">
6953       </image>
6954       <image
6955             commandId="org.eclipse.egit.ui.team.Merge"
6956             icon="icons/obj16/merge.png">
6957       </image>
6958       <image
6959             commandId="org.eclipse.egit.ui.team.MergeTool"
6960             icon="icons/obj16/mergetool.png">
6961       </image>
6962       <image
6963             commandId="org.eclipse.egit.ui.team.Rebase"
6964             icon="icons/obj16/rebase.png">
6965       </image>
6966       <image
6967             commandId="org.eclipse.egit.ui.team.Pull"
6968             icon="icons/obj16/pull.png">
6969       </image>
6970       <image
6971             commandId="org.eclipse.egit.ui.team.PullWithOptions"
6972             icon="icons/obj16/pull_with_options.png">
6973       </image>
6974       <image
6975             commandId="org.eclipse.egit.ui.team.Reset"
6976             icon="icons/obj16/reset.png">
6977       </image>
6978       <image
6979             commandId="org.eclipse.egit.ui.team.Synchronize"
6980             icon="icons/obj16/synchronize.png">
6981       </image>
6982       <image
6983             commandId="org.eclipse.egit.ui.team.Tag"
6984             icon="icons/obj16/new_tag_obj.png">
6985       </image>
6986       <image
6987             commandId="org.eclipse.egit.ui.team.AssumeUnchanged"
6988             icon="icons/obj16/assume_unchanged.png">
6989       </image>
6990       <image
6991             commandId="org.eclipse.egit.ui.team.NoAssumeUnchanged"
6992             icon="icons/obj16/no_assume_unchanged.png">
6993       </image>
6994       <image
6995             commandId="org.eclipse.egit.ui.team.DeleteBranch"
6996             icon="icons/obj16/delete_obj.png">
6997       </image>
6998       <image
6999             commandId="org.eclipse.egit.ui.team.RenameBranch"
7000             icon="icons/obj16/editconfig.png">
7001       </image>
7002       <image
7003             commandId="org.eclipse.ui.edit.rename"
7004             icon="icons/obj16/editconfig.png">
7005       </image>
7006       <image
7007             commandId="org.eclipse.egit.ui.history.DeleteBranch"
7008             icon="icons/obj16/delete_obj.png">
7009       </image>
7010       <image
7011             commandId="org.eclipse.egit.ui.history.DeleteTag"
7012             icon="icons/obj16/delete_obj.png">
7013       </image>
7014       <image
7015             commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand"
7016             icon="icons/elcl16/sha1.png">
7017       </image>
7018       <image
7019             commandId="org.eclipse.egit.ui.RebaseInteractiveCurrent"
7020             icon="icons/obj16/rebase_interactive.png">
7021       </image>
7022       <image
7023             commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
7024             icon="icons/obj16/open-commit.png">
7025       </image>
7026       <image
7027             commandId="org.eclipse.egit.ui.history.CompareVersions"
7028             icon="icons/elcl16/compare_view.png">
7029       </image>
7030       <image
7031             commandId="org.eclipse.egit.ui.history.CompareVersionsInTree"
7032             icon="icons/elcl16/compare_view.png">
7033       </image>
7034       <image
7035             commandId="org.eclipse.egit.ui.team.Revert"
7036             icon="icons/obj16/revert.png">
7037       </image>
7038       <image
7039             commandId="org.eclipse.egit.ui.team.clean"
7040             icon="icons/obj16/clean_obj.png">
7041       </image>
7042       <image
7043             commandId="org.eclipse.egit.ui.team.stash.create"
7044             icon="icons/obj16/stash-create.png">
7045       </image>
7046       <image
7047             commandId="org.eclipse.egit.ui.history.ShowBlame"
7048             icon="icons/etool16/annotate.png">
7049       </image>
7050       <image
7051             commandId="org.eclipse.egit.ui.team.ShowBlame"
7052             icon="icons/etool16/annotate.png">
7053       </image>
7054       <image
7055             commandId="org.eclipse.egit.ui.PushHeadToGerrit"
7056             icon="icons/obj16/gerrit_push.png">
7057       </image>
7058       <image
7059             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote"
7060             icon="icons/obj16/gerrit_obj.png">
7061       </image>
7062       <image
7063             commandId="org.eclipse.egit.ui.team.GarbageCollect"
7064             icon="icons/elcl16/trash_flat.png">
7065       </image>
7066       <image
7067             commandId="org.eclipse.egit.ui.team.Disconnect"
7068             icon="icons/obj16/disconnect_co.png">
7069       </image>
7070       <image
7071             commandId="org.eclipse.egit.ui.RepositoriesViewRemoveRemote"
7072             icon="icons/obj16/delete_obj.png">
7073       </image>
7074       <image
7075             commandId="org.eclipse.egit.ui.team.Untrack"
7076             icon="icons/obj16/untrack.png">
7077       </image>
7078       <image
7079             commandId="org.eclipse.egit.ui.team.OpenCommit"
7080             icon="icons/obj16/open-commit.png">
7081       </image>
7082       <image
7083             commandId="org.eclipse.egit.ui.RepositoriesViewOpenInEditor"
7084             icon="icons/elcl16/goto_input.png">
7085       </image>
7086       <image
7087             commandId="org.eclipse.egit.ui.team.CompareWithCommit"
7088             icon="icons/obj16/changelog_obj.png">
7089       </image>
7090       <image
7091             commandId="org.eclipse.egit.ui.team.ReplaceWithCommit"
7092             icon="icons/obj16/changelog_obj.png">
7093       </image>
7094       <image
7095             commandId="org.eclipse.egit.ui.team.submodule.add"
7096             icon="icons/obj16/submodules.png">
7097       </image>
7098       <image
7099             commandId="org.eclipse.egit.ui.team.ReplaceWithRef"
7100             icon="icons/obj16/branches_obj.png">
7101       </image>
7102       <image
7103             commandId="org.eclipse.egit.ui.team.CompareWithRef"
7104             icon="icons/obj16/branches_obj.png">
7105       </image>
7106       <image
7107             commandId="org.eclipse.egit.ui.RepositoriesCreateGroup"
7108             icon="icons/etool16/newgroup_wiz.png">
7109       </image>
7110       <image
7111             commandId="org.eclipse.egit.ui.commit.UnifiedDiffCommand"
7112             icon="icons/obj16/changelog_obj.png">
7113       </image>
7114    </extension>
7115    <extension
7116          point="org.eclipse.core.expressions.propertyTesters">
7117       <propertyTester
7118             class="org.eclipse.egit.ui.internal.repository.tree.RepositoriesViewPropertyTester"
7119             id="org.eclipse.egit.ui.RepositoryTester"
7120             namespace="GitRepository"
7121             properties="isBare,isSafe,canCheckout,canCommit,canAmend,canResetHead,canStash,isRefCheckedOut,isLocalBranch,fetchExists,pushExists,canMerge,canAbortRebase,canContinueRebase,isSubmodule,containsHead,hasGitHubConfiguration,hasGitLabConfiguration,hasGiteaConfiguration,hasGerritConfiguration,canFetchFromGerrit,canPushToGerrit,canEnableLfs,isCommit"
7122             type="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
7123       </propertyTester>
7124       <propertyTester
7125             class="org.eclipse.egit.ui.internal.ResourcePropertyTester"
7126             id="org.eclipse.egit.ui.ResourceTester"
7127             namespace="GitResource"
7128             properties="isShared,isContainer,isSafe,canCheckout,canCommit,canAmend,canResetHead,canAbortRebase,canContinueRebase,hasGitHubConfiguration,hasGitLabConfiguration,hasGiteaConfiguration,hasGerritConfiguration,canFetchFromGerrit,canPushToGerrit"
7129             type="org.eclipse.core.resources.IResource">
7130       </propertyTester>
7131       <propertyTester
7132             class="org.eclipse.egit.ui.internal.selection.SelectionPropertyTester"
7133             id="org.eclipse.egit.ui.SelectionTester"
7134             namespace="GitSelection"
7135             properties="conflictsInSingleRepository,projectsSingleRepository,projectsWithRepositories,resourcesSingleRepository,resourcesMultipleRepositories,fileOrFolderInRepository,resourcesAllInRepository,selectionSingleRepository,selectionMultipleRepositories"
7136             type="java.util.Collection">
7137       </propertyTester>
7138       <propertyTester
7139             class="org.eclipse.egit.ui.internal.resources.ResourceStatePropertyTester"
7140             id="org.eclipse.egit.ui.ResourceStateTester"
7141             namespace="org.eclipse.egit.ui.resources.ResourceState"
7142             properties="hasStagedChanges,hasUnstagedChanges,hasNotIgnoredResources,hasTrackedResources"
7143             type="java.util.Collection">
7144       </propertyTester>
7145       <propertyTester
7146             class="org.eclipse.egit.ui.internal.expressions.GitPropertyTester"
7147             id="org.eclipse.egit.ui.GitRepositoryCommitTester"
7148             namespace="Git"
7149             properties="parentCount,isBare,isSafe,canCommit,hasMultipleRefs,hasRef,isStash"
7150             type="org.eclipse.egit.core.internal.IRepositoryCommit">
7151       </propertyTester>
7152       <propertyTester
7153             class="org.eclipse.egit.ui.internal.expressions.GitPropertyTester"
7154             id="org.eclipse.egit.ui.GitRepositoryTester"
7155             namespace="Git"
7156             properties="isBare,isSafe,canCommit"
7157             type="org.eclipse.jgit.lib.Repository">
7158       </propertyTester>
7159       <propertyTester
7160             class="org.eclipse.egit.ui.internal.expressions.GitPropertyTester"
7161             id="org.eclipse.egit.ui.GitRevCommitTester"
7162             namespace="Git"
7163             properties="parentCount"
7164             type="org.eclipse.jgit.revwalk.RevCommit">
7165       </propertyTester>
7166       <propertyTester
7167             class="org.eclipse.egit.ui.internal.history.GitHistoryPropertyTester"
7168             id="org.eclipse.egit.ui.GitHistoryTester"
7169             namespace="GitHistory"
7170             properties="isSingleFileHistory"
7171             type="org.eclipse.team.ui.history.IHistoryView">
7172       </propertyTester>
7173       <propertyTester
7174             class="org.eclipse.egit.ui.internal.expressions.BundlePropertyTester"
7175             id="org.eclipse.egit.ui.BundlePropertyTester"
7176             namespace="org.eclipse.egit.ui.BundleProperty"
7177             properties="isBundleInstalled"
7178             type="java.util.Collection">
7179       </propertyTester>
7180       <propertyTester
7181             class="org.eclipse.egit.ui.internal.expressions.EditorPropertyTester"
7182             id="org.eclipse.egit.ui.EditorPropertyTester"
7183             namespace="org.eclipse.egit.ui.EditorProperty"
7184             properties="canShowRevisions"
7185             type="org.eclipse.ui.IEditorPart">
7186          <!-- Type cannot be restricted to text editors because of multi-page editors. -->
7187       </propertyTester>
7188    </extension>
7189    <extension
7190          id="changeSetModel"
7191          name="%ChangeSetModel.name"
7192          point="org.eclipse.core.resources.modelProviders">
7193       <modelProvider
7194             class="org.eclipse.egit.ui.internal.synchronize.GitChangeSetModelProvider"/>
7195       <enablement>
7196         <instanceof
7197              value="org.eclipse.core.resources.IResource" />
7198       </enablement>
7199       <extends-model id="org.eclipse.core.resources.modelProvider"/>
7200    </extension>
7201     <extension
7202          point="org.eclipse.team.ui.synchronizeWizards">
7203       <wizard
7204             class="org.eclipse.egit.ui.internal.synchronize.GitSynchronizeWizard"
7205             description="%gitsyncwizard.description"
7206             icon="icons/obj16/gitrepository.png"
7207             id="org.eclipse.egit.ui.wizard1"
7208             name="%Synchronize_Name">
7209       </wizard>
7210    </extension>
7211    <extension
7212          point="org.eclipse.team.ui.synchronizeParticipants">
7213       <participant
7214             class="org.eclipse.egit.ui.internal.synchronize.GitModelSynchronizeParticipant"
7215             id="org.eclipse.egit.ui.modelCompareParticipant"
7216             name="%Synchronize_Name"
7217             icon="icons/obj16/gitrepository.png"
7218             persistent="true"/>
7219    </extension>
7220    <extension
7221          point="org.eclipse.ui.navigator.navigatorContent">
7222       <navigatorContent
7223             activeByDefault="false"
7224             contentProvider="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetContentProvider"
7225             icon="$nl$/icons/obj16/changelog_obj.png"
7226             id="org.eclipse.egit.ui.changeSetContent"
7227             labelProvider="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetLabelProvider"
7228             name="%Synchronize_ChangeSet"
7229             priority="normal">
7230          <enablement>
7231            <or>
7232             <instanceof value="org.eclipse.egit.ui.internal.synchronize.GitChangeSetModelProvider"/>
7233             <instanceof value="org.eclipse.egit.ui.internal.synchronize.model.GitModelBlob"/>
7234             <instanceof value="org.eclipse.egit.ui.internal.synchronize.model.GitModelCacheTree"/>
7235            </or>
7236          </enablement>
7237              <dropAssistant
7238                      class="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetDropAdapterAssistant"
7239                      id="org.eclipse.egit.ui.changeSetDropAssistant">
7240                <possibleDropTargets>
7241              <instanceof value="org.eclipse.egit.ui.internal.synchronize.model.GitModelCache"/>
7242                </possibleDropTargets>
7243              </dropAssistant>
7244              <commonSorter
7245                class="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetSorter"/>
7246        </navigatorContent>
7247    </extension>
7248    <extension
7249          point="org.eclipse.team.ui.teamContentProviders">
7250       <teamContentProvider
7251             contentExtensionId="org.eclipse.egit.ui.changeSetContent"
7252             icon="$nl$/icons/obj16/changelog_obj.png"
7253             modelProviderId="org.eclipse.egit.ui.changeSetModel"/>
7254    </extension>
7255    <extension point="org.eclipse.ui.navigator.viewer">
7256        <viewer viewerId="org.eclipse.egit.ui.compareSynchronization">
7257            <popupMenu
7258                 allowsPlatformContributions="false"
7259                 id="org.eclipse.egit.ui.compareSynchronizationMenu">
7260              <insertionPoint name="gitActions" separator="true"/>
7261              <insertionPoint name="file"/>
7262              <insertionPoint name="file-bottom"/>
7263              <insertionPoint name="edit" separator="true"/>
7264              <insertionPoint name="synchronize"/>
7265              <insertionPoint name="navigate" separator="true"/>
7266              <insertionPoint name="modelTeam" separator="true"/>
7267              <insertionPoint name="sort" separator="true"/>
7268                          <insertionPoint name="additions" separator="true"/>
7269           </popupMenu>
7270        </viewer>
7271    </extension>
7272    <extension
7273          name="%TeamMenuCommandsLabel"
7274          point="org.eclipse.ui.commands">
7275       <command
7276             categoryId="org.eclipse.egit.ui.commandCategory"
7277             defaultHandler="org.eclipse.egit.ui.internal.actions.AddToIndexActionHandler"
7278             id="org.eclipse.egit.ui.team.AddToIndex"
7279             name="%AddToIndexCommand.name">
7280       </command>
7281       <command
7282             categoryId="org.eclipse.egit.ui.commandCategory"
7283             defaultHandler="org.eclipse.egit.ui.internal.actions.CreatePatchActionHandler"
7284             id="org.eclipse.egit.ui.team.CreatePatch"
7285             name="%CreatePatchCommand.name">
7286       </command>
7287       <command
7288             categoryId="org.eclipse.egit.ui.commandCategory"
7289             defaultHandler="org.eclipse.egit.ui.internal.actions.RemoveFromIndexActionHandler"
7290             id="org.eclipse.egit.ui.team.RemoveFromIndex"
7291             name="%RemoveFromIndexCommand.name">
7292       </command>
7293       <command
7294             categoryId="org.eclipse.egit.ui.commandCategory"
7295             defaultHandler="org.eclipse.egit.ui.internal.actions.BranchActionHandler"
7296             id="org.eclipse.egit.ui.team.Branch"
7297             name="%BranchCommand.name"
7298             description="%BranchCommand.description">
7299       </command>
7300       <command
7301             categoryId="org.eclipse.egit.ui.commandCategory"
7302             id="org.eclipse.egit.ui.team.CompareWithHead"
7303             name="%CompareWithHeadCommand.name">
7304       </command>
7305       <command
7306             categoryId="org.eclipse.egit.ui.commandCategory"
7307             id="org.eclipse.egit.ui.team.CompareWithIndex"
7308             name="%CompareWithIndexCommand.name">
7309       </command>
7310       <command
7311             categoryId="org.eclipse.egit.ui.commandCategory"
7312             id="org.eclipse.egit.ui.team.CompareIndexWithHead"
7313             name="%CompareIndexWithHeadCommand.name">
7314       </command>
7315       <command
7316             categoryId="org.eclipse.egit.ui.commandCategory"
7317             id="org.eclipse.egit.ui.team.CompareWithPrevious"
7318             name="%CompareWithPreviousCommand.name">
7319       </command>
7320       <command
7321             categoryId="org.eclipse.egit.ui.commandCategory"
7322             id="org.eclipse.egit.ui.team.CompareWithRef"
7323             name="%CompareWithHistoryCommand.name">
7324       </command>
7325       <command
7326             categoryId="org.eclipse.egit.ui.commandCategory"
7327             id="org.eclipse.egit.ui.team.CompareWithCommit"
7328             name="%CompareWithCommitCommand.name">
7329       </command>
7330       <command
7331             categoryId="org.eclipse.egit.ui.commandCategory"
7332             id="org.eclipse.egit.ui.team.Discard"
7333             name="%ReplaceWithIndexCommand.name">
7334       </command>
7335       <command
7336             categoryId="org.eclipse.egit.ui.commandCategory"
7337             id="org.eclipse.egit.ui.team.ReplaceWithHead"
7338             name="%ReplaceWithHeadCommand.name">
7339       </command>
7340       <command
7341             categoryId="org.eclipse.egit.ui.commandCategory"
7342             id="org.eclipse.egit.ui.team.ReplaceWithCommit"
7343             name="%ReplaceWithCommitCommand.name">
7344       </command>
7345       <command
7346             categoryId="org.eclipse.egit.ui.commandCategory"
7347             id="org.eclipse.egit.ui.team.ReplaceWithRef"
7348             name="%ReplaceWithRefCommand.name">
7349       </command>
7350       <command
7351             categoryId="org.eclipse.egit.ui.commandCategory"
7352             id="org.eclipse.egit.ui.team.ReplaceWithPrevious"
7353             name="%ReplaceWithPreviousCommand.name">
7354       </command>
7355       <command
7356             categoryId="org.eclipse.egit.ui.commandCategory"
7357             id="org.eclipse.egit.ui.team.ReplaceWithOurs"
7358             name="%ReplaceWithOursCommand.name">
7359       </command>
7360       <command
7361             categoryId="org.eclipse.egit.ui.commandCategory"
7362             id="org.eclipse.egit.ui.team.ReplaceWithTheirs"
7363             name="%ReplaceWithTheirsCommand.name">
7364       </command>
7365       <command
7366             categoryId="org.eclipse.egit.ui.commandCategory"
7367             defaultHandler="org.eclipse.egit.ui.internal.actions.IgnoreActionHandler"
7368             id="org.eclipse.egit.ui.team.Ignore"
7369             name="%IgnoreCommand.name">
7370       </command>
7371       <command
7372             categoryId="org.eclipse.egit.ui.commandCategory"
7373             id="org.eclipse.egit.ui.team.Tag"
7374             name="%TagCommand.name">
7375       </command>
7376       <command
7377             categoryId="org.eclipse.egit.ui.commandCategory"
7378             defaultHandler="org.eclipse.egit.ui.internal.actions.ShowRepositoriesViewActionHandler"
7379             id="org.eclipse.egit.ui.team.ShowRepositoriesView"
7380             name="%ShowRepoViewCommand.name">
7381       </command>
7382       <command
7383             categoryId="org.eclipse.egit.ui.commandCategory"
7384             defaultHandler="org.eclipse.egit.ui.internal.actions.ApplyPatchActionHandler"
7385             id="org.eclipse.egit.ui.team.ApplyPatch"
7386             name="%ApplyPatchCommand.name">
7387       </command>
7388       <command
7389             categoryId="org.eclipse.egit.ui.commandCategory"
7390             defaultHandler="org.eclipse.egit.ui.internal.actions.MergeToolActionHandler"
7391             id="org.eclipse.egit.ui.team.MergeTool"
7392             name="%MergeToolCommand.name">
7393       </command>
7394       <command
7395             categoryId="org.eclipse.egit.ui.commandCategory"
7396             defaultHandler="org.eclipse.egit.ui.internal.actions.ConfigureFetchActionHandler"
7397             id="org.eclipse.egit.ui.team.ConfigureFetch"
7398             name="%ConfigureUpstreamFetchCommand.name">
7399       </command>
7400       <command
7401             categoryId="org.eclipse.egit.ui.commandCategory"
7402             defaultHandler="org.eclipse.egit.ui.internal.actions.ConfigurePushActionHandler"
7403             id="org.eclipse.egit.ui.team.ConfigurePush"
7404             name="%ConfigureUpstreamPushCommand.name">
7405       </command>
7406       <command
7407             categoryId="org.eclipse.egit.ui.commandCategory"
7408             defaultHandler="org.eclipse.egit.ui.internal.actions.DeleteBranchActionHandler"
7409             id="org.eclipse.egit.ui.team.DeleteBranch"
7410             name="%DeleteBranchCommand.name">
7411       </command>
7412       <command
7413             categoryId="org.eclipse.egit.ui.commandCategory"
7414             id="org.eclipse.egit.ui.team.RenameBranch"
7415             name="%RenameBranchCommand">
7416       </command>
7417       <command
7418             categoryId="org.eclipse.egit.ui.commandCategory"
7419             defaultHandler="org.eclipse.egit.ui.internal.actions.AssumeUnchangedActionHandler"
7420             id="org.eclipse.egit.ui.team.AssumeUnchanged"
7421             name="%AssumeUnchangedCommand">
7422       </command>
7423       <command
7424             categoryId="org.eclipse.egit.ui.commandCategory"
7425             defaultHandler="org.eclipse.egit.ui.internal.actions.NoAssumeUnchangedActionHandler"
7426             id="org.eclipse.egit.ui.team.NoAssumeUnchanged"
7427             name="%NoAssumeUnchangedCommand">
7428       </command>
7429       <command
7430             categoryId="org.eclipse.egit.ui.commandCategory"
7431             id="org.eclipse.egit.ui.team.Untrack"
7432             name="%UntrackCommand.name">
7433       </command>
7434    </extension>
7435    <extension
7436          point="org.eclipse.ui.bindings">
7437       <key
7438             commandId="org.eclipse.egit.ui.team.Commit"
7439             contextId="org.eclipse.ui.contexts.window"
7440             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7441             sequence="M1+#">
7442       </key>
7443       <!-- Command+Shift+3 takes a screenshot on the Mac. Delete and redefine key binding: -->
7444       <key
7445             platform="carbon"
7446             commandId=""
7447             contextId="org.eclipse.ui.contexts.window"
7448             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7449             sequence="M1+#">
7450       </key>
7451       <key
7452             platform="carbon"
7453             commandId="org.eclipse.egit.ui.team.Commit"
7454             contextId="org.eclipse.ui.contexts.window"
7455             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7456             sequence="COMMAND+ALT+3">
7457       </key>
7458       <key
7459             commandId="org.eclipse.egit.ui.RepositoriesViewCopyPath"
7460             contextId="org.eclipse.egit.ui.RepositoriesView"
7461             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7462             sequence="M1+C">
7463       </key>
7464       <key
7465             commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand"
7466             contextId="org.eclipse.egit.ui.ReflogView"
7467             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7468             sequence="M1+C">
7469       </key>
7470       <key
7471             commandId="org.eclipse.egit.ui.team.RenameBranch"
7472             contextId="org.eclipse.egit.ui.RepositoriesView.SingleRepository"
7473             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7474             sequence="F2">
7475       </key>
7476       <key
7477             commandId="org.eclipse.egit.ui.RepositoriesViewCollapseWorkingTree"
7478             contextId="org.eclipse.egit.ui.RepositoriesView"
7479             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7480             sequence="M1+ARROW_LEFT">
7481       </key>
7482       <key
7483             commandId="org.eclipse.egit.ui.commit.DiffEditorQuickOutlineCommand"
7484             contextId="org.eclipse.egit.ui.DiffViewer"
7485             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
7486             sequence="M1+O">
7487       </key>
7488    </extension>
7489    <extension
7490          name="%HistoryViewCommands.extension.name"
7491          point="org.eclipse.ui.commands">
7492       <command
7493             id="org.eclipse.egit.ui.history.CompareVersions"
7494             name="%CompareCommand.name">
7495       </command>
7496       <command
7497             id="org.eclipse.egit.ui.history.CompareVersionsInTree"
7498             name="%CompareInTreeCommand.name">
7499       </command>
7500       <command
7501             id="org.eclipse.egit.ui.history.CompareWithWorkingTree"
7502             name="%CompareWithWorkTreeCommand.name">
7503       </command>
7504       <command
7505             id="org.eclipse.egit.ui.history.ShowVersions"
7506             name="%ShowVersionsCommand.name">
7507          <commandParameter
7508                id="org.eclipse.egit.ui.history.CompareMode"
7509                name="%CompareModeCommandParameter.name"
7510                optional="true">
7511          </commandParameter>
7512       </command>
7513       <command
7514             id="org.eclipse.egit.ui.history.CreatePatch"
7515             name="%CreatePatchCommand.name">
7516       </command>
7517       <command
7518             id="org.eclipse.egit.ui.history.DeleteBranch"
7519             name="%DeleteBranchCommand.name">
7520       </command>
7521       <command
7522             id="org.eclipse.egit.ui.history.DeleteTag"
7523             name="%DeleteTagCommand.name">
7524       </command>
7525       <command
7526             id="org.eclipse.egit.ui.history.PushCommit"
7527             name="%PushCommit.name">
7528       </command>
7529       <command
7530             id="org.eclipse.egit.ui.history.Reset"
7531             name="%ResetCommand.name">
7532          <commandParameter
7533                id="org.eclipse.egit.ui.history.ResetMode"
7534                name="%ResetModeCommandParameter.name"
7535                optional="false">
7536          </commandParameter>
7537       </command>
7538       <command
7539             id="org.eclipse.egit.ui.history.ResetQuickdiffBaseline"
7540             name="%ResetQuickdiffCommand.name">
7541          <commandParameter
7542                id="org.eclipse.egit.ui.history.ResetQuickdiffBaselineTarget"
7543                name="%ResetTargetCommandParameter.name"
7544                optional="false">
7545          </commandParameter>
7546       </command>
7547       <command
7548             id="org.eclipse.egit.ui.history.SetQuickdiffBaseline"
7549             name="%SetQuickdiffBaselineCommand.name">
7550       </command>
7551       <command
7552             id="org.eclipse.egit.ui.history.OpenInTextEditorCommand"
7553             name="%OpenInTextEditorCommand.name">
7554       </command>
7555       <command
7556             id="org.eclipse.egit.ui.history.Squash"
7557             name="%SquashCommitsCommand.name">
7558       </command>
7559       <command
7560             defaultHandler="org.eclipse.egit.ui.internal.commit.command.SquashHandler"
7561             id="org.eclipse.egit.ui.commit.Squash"
7562             name="%SquashCommitsCommand.name">
7563       </command>
7564       <command
7565             id="org.eclipse.egit.ui.history.Reword"
7566             name="%RewordCommitCommand.name">
7567       </command>
7568       <command
7569             defaultHandler="org.eclipse.egit.ui.internal.commit.command.RewordHandler"
7570             id="org.eclipse.egit.ui.commit.Reword"
7571             name="%RewordCommitCommand.name">
7572       </command>
7573       <command
7574             id="org.eclipse.egit.ui.history.Edit"
7575             name="%EditCommitCommand.name">
7576       </command>
7577       <command
7578             defaultHandler="org.eclipse.egit.ui.internal.commit.command.EditHandler"
7579             id="org.eclipse.egit.ui.commit.Edit"
7580             name="%EditCommitCommand.name">
7581       </command>
7582       <command
7583             id="org.eclipse.egit.ui.history.Merge"
7584             name="%MergeCommand.name">
7585       </command>
7586       <command
7587             id="org.eclipse.egit.ui.RebaseCurrent"
7588             name="%RebaseCurrentCommand.name">
7589       </command>
7590       <command
7591             id="org.eclipse.egit.ui.RebaseInteractiveCurrent"
7592             name="%RebaseInteractiveCurrentCommand.name">
7593       </command>
7594       <command
7595             id="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
7596             name="%OpenInCommitViewerCommand.name"
7597             description="%OpenInCommitViewerCommand.tooltip">
7598       </command>
7599       <command
7600             id="org.eclipse.egit.ui.commit.UnifiedDiffCommand"
7601             name="%ShowUnifiedDiffCommand.name">
7602       </command>
7603    </extension>
7604    <extension
7605          name="%CommitViewerCommands.extension.name"
7606          point="org.eclipse.ui.commands">
7607       <command
7608             id="org.eclipse.egit.ui.history.ShowBlame"
7609             name="%ShowBlameCommand.name">
7610       </command>
7611    </extension>
7612    <extension
7613          name="%CompareViewerCommands.extension.name"
7614          point="org.eclipse.ui.commands">
7615       <command
7616             id="org.eclipse.egit.ui.CompareWithEachOther"
7617             name="%CompareWithEachOtherCommand.name"
7618             categoryId="org.eclipse.compare.ui.category.compare"
7619             description="%CompareWithEachOtherCommand.description">
7620       </command>
7621    </extension>
7622    <extension
7623          point="org.eclipse.ui.newWizards">
7624       <wizard
7625             category="org.eclipse.egit.ui.wizardCategory"
7626             class="org.eclipse.egit.ui.internal.repository.NewRepositoryWizard"
7627             hasPages="true"
7628             icon="icons/etool16/createRepository.png"
7629             id="org.eclipse.egit.ui.CreateRepositoryWizard"
7630             name="%CreateRepositoryWizard.name">
7631          <description>
7632             %CreateRepositoryWizard.description
7633          </description>
7634       </wizard>
7635       <category
7636             id="org.eclipse.egit.ui.wizardCategory"
7637             name="%Git">
7638       </category>
7639    </extension>
7640    <extension
7641          point="org.eclipse.ui.contexts">
7642       <context
7643             id="org.eclipse.egit.ui.RepositoriesView"
7644             name="%RepositoriesViewContext.name"
7645             parentId="org.eclipse.ui.contexts.window">
7646       </context>
7647       <context
7648             id="org.eclipse.egit.ui.RepositoriesView.SingleRepository"
7649             name="%RepositoriesViewContext.name"
7650             parentId="org.eclipse.egit.ui.RepositoriesView">
7651       </context>
7652       <context
7653             id="org.eclipse.egit.ui.ReflogView"
7654             name="%ReflogViewContext"
7655             parentId="org.eclipse.ui.contexts.window">
7656       </context>
7657       <context
7658             id="org.eclipse.egit.ui.DiffViewer"
7659             name="%DiffViewerContext"
7660             parentId="org.eclipse.ui.textEditorScope">
7661       </context>
7662    </extension>
7663    <extension
7664          point="org.eclipse.ui.editors">
7665       <editor
7666             class="org.eclipse.egit.ui.internal.commit.CommitEditor"
7667             contributorClass="org.eclipse.egit.ui.internal.commit.CommitEditorActionBarContributor"
7668             default="false"
7669             icon="icons/obj16/changelog_obj.png"
7670             id="org.eclipse.egit.ui.commitEditor"
7671             name="%CommitEditor.name">
7672       </editor>
7673       <editor
7674             class="org.eclipse.egit.ui.internal.commit.DiffEditor"
7675             contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
7676             default="false"
7677             icon="icons/obj16/changelog_obj.png"
7678             id="org.eclipse.egit.ui.diffEditor"
7679             name="%DiffEditor.name">
7680       </editor>
7681    </extension>
7682    <extension
7683          point="org.eclipse.ui.actionSetPartAssociations">
7684       <actionSetPartAssociation
7685             targetID="org.eclipse.ui.edit.text.actionSet.presentation">
7686          <part
7687                id="org.eclipse.egit.ui.commitEditor">
7688          </part>
7689          <part
7690                id="org.eclipse.egit.ui.diffEditor">
7691          </part>
7692       </actionSetPartAssociation>
7693    </extension>
7694    <extension
7695          point="org.eclipse.ui.editors.annotationTypes">
7696       <type name="org.eclipse.egit.ui.commitEditor.diffAdded" />
7697       <type name="org.eclipse.egit.ui.commitEditor.diffRemoved" />
7698    </extension>
7699    <extension
7700          point="org.eclipse.ui.editors.markerAnnotationSpecification">
7701       <specification
7702             annotationType="org.eclipse.egit.ui.commitEditor.diffAdded"
7703             overviewRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedInOverviewRuler"
7704             overviewRulerPreferenceValue="true"
7705             verticalRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedInVerticalRuler"
7706             verticalRulerPreferenceValue="false"
7707             textPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedIndication"
7708             textPreferenceValue="false"
7709             highlightPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedHighlighting"
7710             highlightPreferenceValue="false"
7711             showInNextPrevDropdownToolbarActionKey="org.eclipse.egit.ui.commitEditor.diffAddedInNextPrevDropdownToolbarAction"
7712             showInNextPrevDropdownToolbarAction="false"
7713             isGoToNextNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffAddedGoToNextNavigationTarget"
7714             isGoToNextNavigationTarget="true"
7715             isGoToPreviousNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffAddedGoToPreviousNavigationTarget"
7716             isGoToPreviousNavigationTarget="true"
7717             colorPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedColor"
7718             colorPreferenceValue="221,255,221"
7719             contributesToHeader="false"
7720             presentationLayer="5"
7721             includeOnPreferencePage="false">
7722       </specification>
7723       <specification
7724             annotationType="org.eclipse.egit.ui.commitEditor.diffRemoved"
7725             overviewRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedInOverviewRuler"
7726             overviewRulerPreferenceValue="true"
7727             verticalRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedInVerticalRuler"
7728             verticalRulerPreferenceValue="false"
7729             textPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedIndication"
7730             textPreferenceValue="false"
7731             highlightPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedHighlighting"
7732             highlightPreferenceValue="false"
7733             showInNextPrevDropdownToolbarActionKey="org.eclipse.egit.ui.commitEditor.diffRemovedInNextPrevDropdownToolbarAction"
7734             showInNextPrevDropdownToolbarAction="false"
7735             isGoToNextNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffRemovedGoToNextNavigationTarget"
7736             isGoToNextNavigationTarget="true"
7737             isGoToPreviousNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffRemovedGoToPreviousNavigationTarget"
7738             isGoToPreviousNavigationTarget="true"
7739             colorPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedColor"
7740             colorPreferenceValue="255,221,221"
7741             contributesToHeader="false"
7742             presentationLayer="5"
7743             includeOnPreferencePage="false">
7744       </specification>
7745    </extension>
7746    <extension
7747          point="org.eclipse.ui.editors.templates">
7748       <resolver
7749             class="org.eclipse.egit.ui.internal.variables.GitTemplateVariableResolver"
7750             contextTypeId="java"
7751             type="git_config"
7752             description="%GitTemplateVariableResolver_GitConfigDescription">
7753       </resolver>
7754    </extension>
7755    <extension
7756          point="org.eclipse.ui.editors.templates">
7757       <resolver
7758             class="org.eclipse.egit.ui.internal.variables.GitTemplateVariableResolver"
7759             contextTypeId="javadoc"
7760             type="git_config"
7761             description="%GitTemplateVariableResolver_GitConfigDescription">
7762       </resolver>
7763    </extension>
7764    <extension
7765          point="org.eclipse.ui.elementFactories">
7766       <factory
7767             class="org.eclipse.egit.ui.internal.commit.CommitEditorInputFactory"
7768             id="org.eclipse.egit.ui.internal.commit.CommitEditorInputFactory">
7769       </factory>
7770    </extension>
7771     <extension point="org.eclipse.search.searchPages">
7772       <page
7773             class="org.eclipse.egit.ui.internal.search.CommitSearchPage"
7774             icon="icons/obj16/search-commit.png"
7775             id="org.eclipse.egit.ui.commitSearchPage"
7776             label="%CommitSearchPage.label">
7777       </page>
7778    </extension>
7779    <extension
7780          point="org.eclipse.search.searchResultViewPages">
7781       <viewPage
7782             class="org.eclipse.egit.ui.internal.search.CommitSearchResultsPage"
7783             icon="icons/obj16/search-commit.png"
7784             id="org.eclipse.egit.ui.commitSearchResultsPage"
7785             label="%CommitSearchResults.label"
7786             searchResultClass="org.eclipse.egit.ui.internal.search.CommitSearchResult">
7787       </viewPage>
7788    </extension>
7790    <extension
7791          point="org.eclipse.ui.actionSets">
7792       <actionSet
7793             id="org.eclipse.egit.ui.navigation"
7794             label="%NavigationActionSet.label"
7795             visible="false">
7796         <action
7797                class="org.eclipse.egit.ui.internal.commit.OpenCommitAction"
7798                definitionId="org.eclipse.egit.ui.team.OpenCommit"
7799                icon="icons/obj16/open-commit.png"
7800                id="org.eclipse.egit.ui.commit.OpenCommitAction"
7801                label="%OpenCommitAction.label"
7802                menubarPath="navigate/open.ext3"
7803                style="push"
7804                toolbarPath="org.eclipse.search.searchActionSet/Search"
7805                tooltip="%OpenCommitAction.tooltip"/>
7806       </actionSet>
7807       <actionSet
7808             label="%GitSearchActionSet.label"
7809             description="%GitSearchActionSet.description"
7810             visible="false"
7811             id="org.eclipse.egit.ui.SearchActionSet">
7812          <!--
7813            Menu re-declaration needed because of bug 567910. Needs to be consistent
7814            with the base declaration in org.eclipse.search. Note that other bundles,
7815            for instance org.eclipse.jdt.ui, employ the same work-around.
7816          -->
7817          <menu
7818                 id="org.eclipse.search.menu"
7819                 label="%searchMenu.label"
7820                 path="navigate">
7821             <groupMarker name="internalDialogGroup"/>   <!-- not to be used by clients  -->
7822             <groupMarker name="dialogGroup"/>           <!-- to be used by clients      -->
7823             <separator name="fileSearchContextMenuActionsGroup"/> <!-- to be used by clients      -->
7824             <separator name="contextMenuActionsGroup"/> <!-- to be used by clients -->
7825             <separator name="occurencesActionsGroup"/> <!-- to be used by clients -->
7826             <separator name="extraSearchGroup"/> <!-- to be used by clients -->
7827          </menu>
7828          <action
7829                label="%OpenCommitSearchPageAction.label"
7830                icon="icons/obj16/search-commit.png"
7831                class="org.eclipse.egit.ui.internal.search.OpenCommitSearchPageAction"
7832                menubarPath="org.eclipse.search.menu/dialogGroup"
7833                id="org.eclipse.egit.ui.actions.OpenCommitSearchPage">
7834          </action>
7835       </actionSet>
7836    </extension>
7837    <extension
7838          point="org.eclipse.ui.actionSetPartAssociations">
7839       <actionSetPartAssociation
7840             targetID="org.eclipse.egit.ui.navigation">
7841          <part
7842                id="org.eclipse.egit.ui.RepositoriesView">
7843          </part>
7844          <part
7845                id="org.eclipse.egit.ui.StagingView">
7846          </part>
7847          <part
7848                id="org.eclipse.egit.ui.CompareTreeView">
7849          </part>
7850          <part
7851                id="org.eclipse.egit.ui.ReflogView">
7852          </part>
7853          <part
7854                id="org.eclipse.egit.ui.InteractiveRebaseView">
7855          </part>
7856          <part
7857                id="org.eclipse.egit.ui.commitEditor">
7858          </part>
7859          <part
7860                id="org.eclipse.team.ui.GenericHistoryView">
7861          </part>
7862          <part
7863                id="org.eclipse.team.sync.views.SynchronizeView">
7864          </part>
7865       </actionSetPartAssociation>
7866       <actionSetPartAssociation
7867             targetID="org.eclipse.egit.ui.SearchActionSet">
7868          <part
7869                id="org.eclipse.egit.ui.RepositoriesView">
7870          </part>
7871          <part
7872                id="org.eclipse.egit.ui.StagingView">
7873          </part>
7874          <part
7875                id="org.eclipse.egit.ui.CompareTreeView">
7876          </part>
7877          <part
7878                id="org.eclipse.egit.ui.ReflogView">
7879          </part>
7880          <part
7881                id="org.eclipse.egit.ui.InteractiveRebaseView">
7882          </part>
7883          <part
7884                id="org.eclipse.egit.ui.commitEditor">
7885          </part>
7886          <part
7887                id="org.eclipse.team.ui.GenericHistoryView">
7888          </part>
7889          <part
7890                id="org.eclipse.team.sync.views.SynchronizeView">
7891          </part>
7892       </actionSetPartAssociation>
7893    </extension>
7895   <extension
7896         point="org.eclipse.core.variables.dynamicVariables">
7897      <variable
7898            description="%GitVariable_git_dir"
7899            name="git_dir"
7900            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7901            supportsArgument="true">
7902      </variable>
7903      <variable
7904            description="%GitVariable_git_repo_relative_path"
7905            name="git_repo_relative_path"
7906            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7907            supportsArgument="true">
7908      </variable>
7909      <variable
7910            description="%GitVariable__git_work_tree_description"
7911            name="git_work_tree"
7912            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7913            supportsArgument="true">
7914      </variable>
7915      <variable
7916            description="%GitVariable_git_branch_description"
7917            name="git_branch"
7918            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7919            supportsArgument="true">
7920      </variable>
7921   </extension>
7922   <extension
7923         point="org.eclipse.debug.ui.stringVariablePresentations">
7924      <variablePresentation
7925            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7926            variableName="git_dir">
7927      </variablePresentation>
7928      <variablePresentation
7929            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7930            variableName="git_repo_relative_path">
7931      </variablePresentation>
7932      <variablePresentation
7933            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7934            variableName="git_work_tree">
7935      </variablePresentation>
7936      <variablePresentation
7937            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7938            variableName="git_branch">
7939      </variablePresentation>
7940   </extension>
7941   <extension
7942         point="org.eclipse.egit.ui.cloneSourceProvider">
7943      <source
7944            hasFixLocation="true"
7945            icon="/icons/obj16/editconfig.png"
7946            label="%CloneUri.label">
7947      </source>
7948      <repositorySearchPage
7949            class="org.eclipse.egit.ui.internal.components.RepositorySelectionPage"></repositorySearchPage>
7950   </extension>
7951   <extension
7952         name="%ReflogViewCommands"
7953         point="org.eclipse.ui.commands">
7954      <command
7955            id="org.eclipse.egit.ui.internal.reflog.CopyCommand"
7956            name="%ReflogCopyCommandName">
7957      </command>
7958   </extension>
7959    <extension
7960         point="org.eclipse.team.core.bundleImporters">
7961     <importer
7962            id="org.eclipse.egit.core.importer"
7963            name="%gitBundleImporter"
7964            repository="org.eclipse.egit.core.GitProvider">
7965         <supports
7966               prefix="scm:git:">
7967         </supports>
7968      </importer>
7969    </extension>
7970    <extension
7971          point="org.eclipse.team.ui.scmUrlImportPages">
7972       <scmUrlImportPage
7973             importer="org.eclipse.egit.core.importer"
7974             page="org.eclipse.egit.ui.internal.importing.GitScmUrlImportWizardPage">
7975       </scmUrlImportPage>
7976    </extension>
7977    <extension
7978         point="org.eclipse.e4.ui.css.swt.theme">
7979      <stylesheet uri="css/egit.css" />
7980      <stylesheet
7981            uri="css/e4-dark_egit_prefstyle.css">
7982         <themeid
7983               refid="org.eclipse.e4.ui.css.theme.e4_dark">
7984         </themeid>
7985      </stylesheet>
7986   </extension>
7987   <extension point="org.eclipse.core.contenttype.contentTypes">
7988     <file-association
7989         content-type="org.eclipse.core.runtime.text"
7990         file-names=".gitignore"/>
7991     <content-type
7992         id="org.eclipse.egit.contenttype.gitignore"
7993         base-type="org.eclipse.core.runtime.text"
7994         file-names=".gitignore"
7995         priority="normal"
7996         name="%GitIgnoreContentTypeName"/>
7997   </extension>
7998   <extension
7999         point="org.eclipse.ui.trace.traceComponents">
8000      <component
8001            id="org.eclipse.egit.ui.traceComponent"
8002            label="%extension.traceComponent.name">
8003         <bundle
8004               name="org.eclipse.egit.core">
8005         </bundle>
8006         <bundle
8007               name="org.eclipse.egit.ui">
8008         </bundle>
8009      </component>
8010   </extension>
8011   <extension
8012         point="org.eclipse.core.expressions.definitions">
8013      <definition
8014            id="org.eclipse.egit.ui.egitOnlyResourceMapping">
8015         <with
8016               variable="activeMenuSelection">
8017            <iterate
8018                  ifEmpty="false"
8019                  operator="and">
8020               <and>
8021                  <adapt
8022                        type="org.eclipse.core.resources.mapping.ResourceMapping">
8023                     <test
8024                           args="org.eclipse.team.core.repository"
8025                           property="org.eclipse.core.resources.projectPersistentProperty"
8026                           value="org.eclipse.egit.core.GitProvider">
8027                     </test>
8028                  </adapt>
8029                  <not>
8030                     <adapt
8031                           type="org.eclipse.core.resources.IResource">
8032                     </adapt>
8033                  </not>
8034               </and>
8035            </iterate>
8036         </with>
8037      </definition>
8038   </extension>
8039   <extension
8040         point="org.eclipse.ui.services">
8041      <sourceProvider
8042            provider="org.eclipse.egit.ui.internal.selection.RepositorySourceProvider">
8043         <variable
8044               name="org.eclipse.egit.ui.currentRepository"
8045               priorityLevel="activeWorkbenchWindow">
8046         </variable>
8047      </sourceProvider>
8048   </extension>
8049 </plugin>