<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
   id="org.eclipse.ui.examples.javaeditor"
   name="%pluginName"
   version="3.0.0"
   provider-name="%providerName"
   class="org.eclipse.ui.examples.javaeditor.JavaEditorExamplePlugin">

   <runtime>
      <library name="javaeditorexample.jar">
         <export name="*"/>
      </library>
      <library name="templateeditorexample.jar">
         <export name="*"/>
      </library>
   </runtime>
   <requires>
      <import plugin="org.eclipse.core.runtime.compatibility"/>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.core.filebuffers"/>
      <import plugin="org.eclipse.jface.text"/>
      <import plugin="org.eclipse.ui.workbench.texteditor"/>
      <import plugin="org.eclipse.ui.editors"/>
      <import plugin="org.eclipse.ui.views"/>
   </requires>


<!-- =========================================================================== -->
<!-- Java Editor Example                                                         -->
<!-- =========================================================================== -->

   <extension
         point="org.eclipse.ui.editors">
      <editor
            name="%javaEditorName"
            icon="icons/obj16/java.gif"
            extensions="%javaFileExtensions"
            contributorClass="org.eclipse.ui.examples.javaeditor.JavaActionContributor"
            class="org.eclipse.ui.examples.javaeditor.JavaEditor"
            id="org.eclipse.ui.JavaEditor">
      </editor>
   </extension>
   
   <extension
         id="ExampleJavaDocumentSetupParticipant"
         name="%documentSetupParticipantName"
         point="org.eclipse.core.filebuffers.documentSetup">
      <participant
            extensions="%javaFileExtensions"
            class="org.eclipse.ui.examples.javaeditor.JavaDocumentSetupParticipant">
      </participant>
   </extension>
   
<!-- =========================================================================== -->
<!-- Template Editor Example                                                     -->
<!-- =========================================================================== -->

   <extension
         point="org.eclipse.ui.editors">
      <editor
            name="%xml.editor.name"
            icon="icons/sample.gif"
            extensions="%xml.editor.extensions"
            contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
            class="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor"
            id="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor">
      </editor>
   </extension>

   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            name="Template Editor"
            class="org.eclipse.ui.examples.templateeditor.preferences.TemplatesPreferencePage"
            id="org.eclipse.ui.examples.templateeditor.preferencepage">
      </page>
   </extension>

   <extension
         point="org.eclipse.ui.editors.templates">
      <contextType
            name="%xml.contextType.name"
            class="org.eclipse.ui.examples.templateeditor.template.XMLContextType"
            id="org.eclipse.ui.examples.templateeditor.xml">
      </contextType>
      <template
            name="%ant.tasks.copy.name"
            icon="icons/template.gif"
            description="%ant.tasks.copy.description"
            contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
            id="org.eclipse.ui.examples.templateeditor.ant.copy">
         <pattern>&lt;copy todir=&quot;${dst}&quot;&gt;
	&lt;fileset dir=&quot;${src}&quot;/&gt;
&lt;/copy&gt;</pattern>
      </template>
      <resolver
            name="%ant.resolvers.src"
            type="src"
            icon="icons/resolver.gif"
            description="%ant.resolvers.src.description"
            contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
            class="org.eclipse.ui.examples.templateeditor.template.AntVariableResolver">
      </resolver>
      <resolver
            name="%ant.resolvers.dst"
            type="dst"
            icon="icons/resolver.gif"
            description="%ant.resolvers.dst.description"
            contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
            class="org.eclipse.ui.examples.templateeditor.template.AntVariableResolver">
      </resolver>
      <include
      		file="templates/ant.xml"
      		translations="templates/ant.properties">
      </include>
   </extension>

</plugin>
