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