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

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

   <requires>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="org.eclipse.help" export="true" optional="true"/>
      <import plugin="com.ssaglobal.generator" export="true"/>
      <import plugin="com.ssaglobal.istudio.core"/>
      <import plugin="com.ssaglobal.generator.ui"/>
      <import plugin="com.ssaglobal.istudio.biexporter"/>
      <import plugin="org.eclipse.core.resources"/>
      <import plugin="com.ssaglobal.istudio.ui"/>
      <import plugin="com.ssaglobal.generator.typesafe.wsdl"/>
      <import plugin="com.infor.erpln.jca.connectivity"/>
   </requires>
   <extension id="ERPlnPackage"
        name="ERP Template Package"
        point="com.ssaglobal.generator.templatepackage">
      <Base templateRoot="templates" outputRoot="erpln"/>
      <Template engine="FreeMarker"
            appliesToSubclasses="true"
            appliesToClass="com.ssaglobal.istudio.core.model.bii.impl.BusinessInterfaceImplementationImpl"
            template="protected.st.main.ftl"
            writer="none"
            nameTemplate="file.protected.st.ftl"/>
      <Template engine="FreeMarker"
            appliesToSubclasses="true"
            appliesToClass="com.ssaglobal.istudio.core.model.bii.impl.BusinessInterfaceImplementationImpl"
            template="public.sb.main.ftl"
            writer="none"
            nameTemplate="file.public.sb.ftl"/>
      <Helper appliesToSubclasses="true"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            helperClass="com.ssaglobal.generator.helper.PropertiesHelper" name="properties"/>
      <Property description="Major Version" name="majorVersion"/>
      <Property description="Minor Version" name="minorVersion"/>
      <Property description="Subordinate Version" name="subordinateVersion"/>
      <Helper appliesToSubclasses="true"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            helperClass="com.ssaglobal.generator.helper.VersionHelper"
            name="versionhelper"/>            
      <Helper appliesToSubclasses="true"
            helperClass="com.ssaglobal.generator.helper.DateHelper"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            name="today"/>
      <Helper appliesToClass="org.eclipse.emf.ecore.EObject"
            appliesToSubclasses="true"
            helperClass="com.ssaglobal.generator.helper.LogHelper"
            name="logger"/>
      <BuildClass name="com.ssaglobal.generator.erpln.ERPlnPostBuild"/> 
   </extension>
   <extension point="org.eclipse.ui.popupMenus">
      <objectContribution 
            objectClass="com.ssaglobal.istudio.core.model.bii.impl.BusinessInterfaceImplementationImpl" 
            id="com.ssaglobal.generator.erpln.contribution1">
         <menu 
                label="&amp;Implementation" 
                path="additions" 
                id="com.ssaglobal.generator.ui.menu2">
            <separator name="group1"/>
         </menu>
         <action
               class="com.ssaglobal.generator.erpln.ErplnDeleteAction"
               enablesFor="+"
               id="com.ssaglobal.generator.erpln.Delete"
               label="&amp;Delete ERP LN Implementation"
               menubarPath="com.ssaglobal.generator.ui.menu2/group1"/>
         <action
               class="com.ssaglobal.generator.erpln.ErplnExpireAction"
               enablesFor="+"
               id="com.ssaglobal.generator.erpln.Expire"
               label="&amp;Expire ERP LN Implementation"
               menubarPath="com.ssaglobal.generator.ui.menu2/group1"/>
         <action 
                enablesFor="+" 
                label="&amp;Generate ERP LN Implementation" 
                definitionId="com.ssaglobal.istudio.generator.erpln"
                class="com.ssaglobal.generator.erpln.ErplnGenerateAction" 
                menubarPath="com.ssaglobal.generator.ui.menu2/group1" 
                id="com.ssaglobal.generator.erpln.Generate"/>
      </objectContribution>
      <objectContribution 
            objectClass="org.eclipse.core.resources.IFile" 
            nameFilter="*.bii" 
            id="com.ssaglobal.generator.erpln.contribution2">
         <menu 
                label="&amp;Implementation" 
                path="additions" 
                id="com.ssaglobal.generator.ui.menu2">
            <separator name="group1"/>
         </menu>
         <action 
                enablesFor="+" 
                label="&amp;Generate ERP LN Implementation" 
                class="com.ssaglobal.generator.erpln.ErplnGenerateAction" 
                menubarPath="com.ssaglobal.generator.ui.menu2/group1" 
                id="com.ssaglobal.generator.erpln.Generate"/>
         <action
               class="com.ssaglobal.generator.erpln.ErplnExpireAction"
               enablesFor="+"
               id="com.ssaglobal.generator.erpln.Expire"
               label="&amp;Expire ERP LN Implementation"
               menubarPath="com.ssaglobal.generator.ui.menu2/group1"/>
         <action
               class="com.ssaglobal.generator.erpln.ErplnDeleteAction"
               enablesFor="+"
               id="com.ssaglobal.generator.erpln.Delete"
               label="&amp;Delete ERP LN Implementation"
               menubarPath="com.ssaglobal.generator.ui.menu2/group1"/>
      </objectContribution>
   </extension>
   <extension point="org.eclipse.ui.preferencePages">
      <page class="com.ssaglobal.generator.erpln.ErplnPreferencePage"
            category="com.ssaglobal.generator.ui.GeneratorMainPreferencePage"
            name="ERP LN BDE Implementation"
            id="com.ssaglobal.generator.erpln.ErplnPreferencePage"/>
   </extension>
   <extension point="org.eclipse.core.runtime.preferences">
      <initializer class="com.ssaglobal.generator.erpln.ErplnPreferenceInitializer"/>
   </extension>
   
   
   <extension point="org.eclipse.ui.propertyPages">
      <page
            class="com.ssaglobal.generator.erpln.ErplnPropertyPage"
            name="ERP LN Implementation Generator"
            id="com.ssaglobal.generator.erpln.ErplnPropertyPage">
         <filter value="com.ssaglobal.istudio.core.nature" name="nature"/>
         <enabledWhen>
            <instanceof
                  value="org.eclipse.core.resources.IProject">
            </instanceof>
         </enabledWhen>
      </page>
   </extension>

   <extension point="org.eclipse.ui.commands">
        <command
              categoryId="com.ssaglobal.istudio.ui.integration"
              id="com.ssaglobal.istudio.generator.erpln"
              name="Generate ERP LN BDE Implementation"/> 
   </extension>
   <extension
         point="org.eclipse.ui.actionSets">
      <actionSet
            label="com.ssaglobal.generator.erpln.actionSet"
            visible="true"
            id="com.ssaglobal.generator.erpln.actionSet">
         <action
               label="com.ssaglobal.generator.erpln.action"
               class="com.ssaglobal.generator.erpln.ErplnGenerateAction"
               definitionId="com.ssaglobal.istudio.generator.erpln"
               style="push"
               id="com.ssaglobal.generator.erpln.action"/>
      </actionSet>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="com.ssaglobal.istudio.generator.erpln"
            contextId="com.ssaglobal.istudio.ui.integration"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M1+M2+9"/>
   </extension>

</plugin>
