<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
   id="com.ssaglobal.generator.documentation"
   name="%pluginName"
   version="8.5.0.0086"
   provider-name="%providerName"
   class="com.ssaglobal.generator.documentation.DocumentationPlugin">

   <runtime>
      <library name="doc.jar">
         <export name="*"/>
      </library>   
   </runtime>

   <requires>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="com.ssaglobal.generator"/>
      <import plugin="com.ssaglobal.generator.ui"/>
      <import plugin="com.ssaglobal.istudio.core"/>
   </requires>
   <extension
         id="DocumentationPackage"
         name="Interface Definition Documentation Generator"
         point="com.ssaglobal.generator.templatepackage">
      <Base
            templateRoot="templates"
            outputRoot="documentation\interfaceDefinition"/>
      <Template
            engine="FreeMarker"
            appliesToSubclasses="true"
            appliesToClass="com.ssaglobal.istudio.core.model.bid.impl.BusinessInterfaceDefinitionImpl"
            template="bid.pdf.ftl"
            nameTemplate="bid.pdf.name.ftl"
            writer="PDF"/>
      <Helper
            appliesToSubclasses="true"
            helperClass="com.ssaglobal.generator.helper.PropertiesHelper"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            name="properties"/>
      <Helper
            appliesToSubclasses="true"
            helperClass="com.ssaglobal.generator.helper.DateHelper"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            name="today"/>
      <Helper
            appliesToSubclasses="true"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            helperClass="com.ssaglobal.generator.helper.VersionHelper"
            name="versionhelper"/>                        
   </extension>
   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            objectClass="com.ssaglobal.istudio.core.model.bid.BusinessInterfaceDefinition"
            id="com.ssaglobal.generator.documentation.bid.contribution1">
         <menu
               label="&amp;Documentation Generator"
               path="additions"
               id="com.ssaglobal.generator.ui.documentationmenu">
            <separator name="group1"/>
         </menu>
         <action
               class="com.ssaglobal.generator.documentation.bid.DocumentationGenerateAction"
               definitionId="com.ssaglobal.istudio.generator.documentation"
               enablesFor="1"
               id="com.ssaglobal.generator.documentation.bid.Generate"
               label="&amp;Interface Definition Documentation"
               menubarPath="com.ssaglobal.generator.ui.documentationmenu/group1"/>
      </objectContribution>
      <objectContribution
            objectClass="org.eclipse.core.resources.IFile"
            nameFilter="*.bid"
            id="com.ssaglobal.generator.documentation.bid.contribution2">
         <menu
               label="&amp;Documentation Generator"
               path="additions"
               id="com.ssaglobal.generator.ui.documentationmenu">
            <separator name="group1"/>
         </menu>
         <action
               enablesFor="1"
               label="&amp;Interface Definition Documentation"
               class="com.ssaglobal.generator.documentation.bid.DocumentationGenerateAction"
               menubarPath="com.ssaglobal.generator.ui.documentationmenu/group1"
               id="com.ssaglobal.generator.documentation.bid.Generate"/>
      </objectContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="com.ssaglobal.istudio.ui.integration"
            id="com.ssaglobal.istudio.generator.documentation"
            name="Generate Documentation"/>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="com.ssaglobal.istudio.generator.documentation"
            contextId="com.ssaglobal.istudio.ui.integration"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M1+M2+8"/>
   </extension>
</plugin>
