<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension-point id="newWizards" name="newWizards" schema="schema/newWizards.exsd"/>

   <extension
         point="org.eclipse.ui.views">
      <view
            category="org.eclipse.mylyn.ui"
            class="org.eclipse.mylyn.internal.commons.repositories.ui.RepositoriesView"
            icon="icons/eview16/repositories.gif"
            id="org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories"
            name="Team Repositories">
      </view>
   </extension>
   <extension
         point="org.eclipse.ui.navigator.viewer">
      <viewerContentBinding
            viewerId="org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories">
         <includes>
            <contentExtension
                  pattern="org.eclipse.ui.navigator.resources.linkHelper">
            </contentExtension>
         </includes>
      </viewerContentBinding>
      <viewerContentBinding
            viewerId="org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories">
         <includes>
            <contentExtension
                  pattern="org.eclipse.mylyn.commons.repositories.ui.navigator.*">
            </contentExtension>
         </includes>
      </viewerContentBinding>
      <viewerActionBinding
            viewerId="org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories">
         <includes>
            <actionExtension
                  pattern="org.eclipse.mylyn.commons.repositories.ui.navigator.*">
            </actionExtension>
         </includes>
      </viewerActionBinding>
   </extension>
   <extension
         point="org.eclipse.ui.navigator.navigatorContent">
      <navigatorContent
            activeByDefault="true"
            contentProvider="org.eclipse.mylyn.internal.commons.repositories.ui.RepositoryCategoryContentProvider"
            icon="icons/obj16/folder.gif"
            id="org.eclipse.mylyn.commons.repositories.ui.navigator.RepositoryCategories"
            labelProvider="org.eclipse.mylyn.internal.commons.repositories.ui.RepositoryLabelProvider"
            name="Categories">
         <possibleChildren>
            <instanceof
                  value="java.lang.Object">
            </instanceof>
         </possibleChildren>
         <triggerPoints>
            <instanceof
                  value="org.eclipse.mylyn.commons.repositories.core.RepositoryCategory">
            </instanceof></triggerPoints>
         <commonSorter
               class="org.eclipse.mylyn.internal.commons.repositories.ui.RepositoryCategorySorter">
         </commonSorter>
      </navigatorContent>
      <commonFilter
            activeByDefault="true"
            class="org.eclipse.mylyn.internal.commons.repositories.ui.EmptyRepositoryCategoriesFilter"
            id="org.eclipse.mylyn.commons.repositories.ui.navigator.filter.EmptyCategories"
            name="Empty Categories">
      </commonFilter>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <category
            id="org.eclipse.mylyn.commons.repositories.ui.category.Team"
            name="Team">
      </category>
      <command
            categoryId="org.eclipse.mylyn.commons.repositories.ui.category.Team"
            defaultHandler="org.eclipse.mylyn.internal.commons.repositories.ui.NewRepositoryHandler"
            id="org.eclipse.mylyn.commons.ui.command.AddRepository"
            name="Add Repository">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.commandImages">
      <image
            commandId="org.eclipse.mylyn.commons.ui.command.AddRepository"
            icon="icons/etool16/repository-new.gif">
      </image>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="toolbar:org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories">
         <command
               commandId="org.eclipse.mylyn.commons.ui.command.AddRepository"
               label="Add Repository..."
               style="push">
         </command>
      </menuContribution>
      <menuContribution
            locationURI="popup:org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories?after=group.new">
         <menu
               id="new"
               label="New">
            <command
                  commandId="org.eclipse.mylyn.commons.ui.command.AddRepository"
                  label="Repository..."
                  style="push">
            </command>
         </menu>
      </menuContribution>
      <menuContribution
            locationURI="popup:org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories?after=group.properties">
         <command
               commandId="org.eclipse.ui.file.properties"
               label="Properties"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <count
                     value="1">
               </count>
            </visibleWhen>
         </command>
      </menuContribution>
      <menuContribution
            locationURI="popup:org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories?after=group.goto">
         <menu
               label="Show In">
            <dynamic
                  class="org.eclipse.mylyn.internal.commons.repositories.ui.ShowInMenuContribution"
                  id="org.eclipse.mylyn.commons.repositories.ui.menu.ShowIn">
            </dynamic>
            <visibleWhen
                  checkEnabled="false">
               <and>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <not>
                        <instanceof
                              value="org.eclipse.mylyn.commons.repositories.core.RepositoryCategory">
                        </instanceof>
                     </not>
                  </iterate>
               </and>
            </visibleWhen>
         </menu>
      </menuContribution>
      <menuContribution
            locationURI="popup:org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories?after=group.edit">
         <command
               commandId="org.eclipse.ui.edit.delete"
               label="Delete"
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.mylyn.commons.repositories.core.locationServices">
      <service
            class="org.eclipse.mylyn.internal.commons.repositories.ui.UiLocationService"
            id="org.eclipse.mylyn.commons.repositories.ui.LocationService">
      </service>
   </extension>

</plugin>
