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