<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!-- $Rev: 589873 $ $Date: 2007-10-29 17:48:35 -0400 (Mon, 29 Oct 2007) $ -->

<plugin>
   <extension
         id="builder"
         name="OpenJPA Enhancer"
         point="org.eclipse.core.resources.builders">
      <requires-nature id="org.eclipse.jdt.core.javanature" /> 
      <builder
            hasNature="true">
         <run
               class="org.apache.openjpa.eclipse.Enhancer">
         </run>
      </builder>
   </extension>
   <extension
         id="nature"
         name="OpenJPA Enhancer"
         point="org.eclipse.core.resources.natures">
      <runtime>
         <run
               class="org.apache.openjpa.eclipse.EnhancerNature">
         </run>
      </runtime>
      <builder
            id="org.apache.openjpa.enhancer">
      </builder>
   </extension>
   
   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            adaptable="true"
            objectClass="org.eclipse.core.resources.IProject"
            nameFilter="*"
            id="org.apache.openjpa.enhancer.nature.popup">
         <action
               label="Add/Remove Enhancer"
               class="org.apache.openjpa.eclipse.ToggleNatureAction"
               menubarPath="additions"
               enablesFor="+"
               id="org.apache.openjpa.enhancer.addRemoveNatureAction">
         </action>
      </objectContribution>
   </extension>
   <extension
         id="xmlProblem"
         name="XML Problem"
         point="org.eclipse.core.resources.markers">
      <super
            type="org.eclipse.core.resources.problemmarker">
      </super>
      <persistent
            value="true">
      </persistent>
   </extension>
</plugin>

