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