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

   <runtime>
      <library name="wsdl.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"/>
      <import plugin="org.eclipse.help" export="true" optional="true"/>
      <import plugin="org.eclipse.core.resources"/>
   </requires>
   <extension
         id="TypesafeProxyPackage"
         name="WSDL Generator"
         point="com.ssaglobal.generator.templatepackage">
      <Base
            templateRoot="templates"
            outputRoot="out"/>
      <Template
            engine="FreeMarker"
            appliesToSubclasses="false"
            appliesToClass="com.ssaglobal.istudio.core.model.bid.impl.BusinessInterfaceDefinitionImpl"
            writer="none"
            template="wsdl.ftl"
            nameTemplate="wsdl.name.ftl"/>
      <Helper
            appliesToSubclasses="true"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            helperClass="com.ssaglobal.generator.helper.LogHelper"
            name="logger"/>
      <Helper
            appliesToSubclasses="true"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            helperClass="com.ssaglobal.generator.helper.PropertiesHelper"
            name="properties"/>
      <Helper
            appliesToSubclasses="true"
            appliesToClass="org.eclipse.emf.ecore.impl.EObjectImpl"
            helperClass="com.ssaglobal.generator.helper.DateHelper"
            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.typesafe.wsdl.contribution1">
         <menu
               label="&amp;Proxy Generator"
               path="additions"
               id="com.ssaglobal.generator.ui.proxymenu">
            <separator name="group1"/>
         </menu>
         <action
               class="com.ssaglobal.generator.typesafe.wsdl.TypesafeGenerateAction"
               definitionId="com.ssaglobal.istudio.generator.wsdlproxy"
               enablesFor="+"
               id="com.ssaglobal.generator.typesafe.wsdl.Generate"
               label="&amp;WSDL"
               menubarPath="com.ssaglobal.generator.ui.proxymenu/group1"/>
      </objectContribution>
      <objectContribution
            objectClass="org.eclipse.core.resources.IFile"
            nameFilter="*.bid"
            id="com.ssaglobal.generator.typesafe.wsdl.contribution2">
         <menu
               label="&amp;Proxy Generator"
               path="additions"
               id="com.ssaglobal.generator.ui.proxymenu">
            <separator name="group1"/>
         </menu>
         <action
               enablesFor="+"
               label="&amp;WSDL"
               class="com.ssaglobal.generator.typesafe.wsdl.TypesafeGenerateAction"
               menubarPath="com.ssaglobal.generator.ui.proxymenu/group1"
               id="com.ssaglobal.generator.typesafe.wsdl.Generate"/>
      </objectContribution>
   </extension>

   <!-- Removed preference and project property page -->
   
   <!--extension
         point="org.eclipse.ui.preferencePages">
      <page
            class="com.ssaglobal.generator.typesafe.wsdl.TypesafePreferencePage"
            category="com.ssaglobal.generator.ui.GeneratorMainPreferencePage"
            name="WSDL"
            id="com.ssaglobal.generator.typesafe.wsdl.TypesafePreferencePage"/>
   </extension-->
   <!--extension
         point="org.eclipse.core.runtime.preferences">
      <initializer class="com.ssaglobal.generator.typesafe.wsdl.TypesafePreferenceInitializer"/>
   </extension-->
   <!--extension
         point="org.eclipse.ui.propertyPages">
          <page
                objectClass="org.eclipse.core.resources.IProject"
                class="com.ssaglobal.generator.typesafe.wsdl.TypesafePropertyPage"
                name="WSDL Generator"
                id="com.ssaglobal.generator.typesafe.wsdl.TypesafePropertyPage">
             <filter
                   name="nature"
                   value="com.ssaglobal.istudio.core.nature"
                   />
          </page>
   </extension-->
   <extension
         point="org.eclipse.ui.bindings">
      <key
           commandId="com.ssaglobal.istudio.generator.wsdlproxy"
           contextId="com.ssaglobal.istudio.ui.integration"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="M1+M2+5"/>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
              categoryId="com.ssaglobal.istudio.ui.integration"
              id="com.ssaglobal.istudio.generator.wsdlproxy"
              name="Generate WSDL Proxy"/> 
   </extension>
</plugin>
