<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright 1999-2004 The Apache Software Foundation or its licensors,
  as applicable.
  
  Licensed 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.
-->
<?eclipse version="3.0"?>
<plugin
   id="org.apache.forrest.eclipse"
   name="Forrest"
   version="0.1.0"
   provider-name="The Apache Software Foundation"
   class="org.apache.forrest.eclipse.ForrestPlugin">

   <runtime>
      <library name="forrestplugin.jar">
         <export name="*"/>
      </library>
      <library name="lib/log4j-1.2.9.jar">
         <export name="*"/>
      </library>
   </runtime>
   <requires>
      <import plugin="org.apache.ant"/>
      <import plugin="org.eclipse.ant.core"/>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.jdt.core"/>
      <import plugin="org.eclipse.jdt.launching"/>
      <import plugin="org.eclipse.jface.text"/>
      <import plugin="org.eclipse.core.resources"/>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="org.eclipse.debug.core"/>
      <import plugin="org.eclipse.ui.ide"/>
      <import plugin="org.eclipse.debug.ui"/>
      <import plugin="org.burrokeet.servletEngine"/>
      <import plugin="org.eclipse.wst.internet.webbrowser"/>
   </requires>


   <extension
      point="org.eclipse.ui.preferencePages">
      <page
            class="org.apache.forrest.eclipse.preference.ForrestPreferences"
            name="Forrest Preferences"
            id="org.apache.forrest.eclipse.preference.ForrestPreferences"/>
   </extension>
   <extension
         point="org.eclipse.ui.newWizards">
      <category
            name="Forrest"
            id="org.apache.forrest.eclipse"/>
      <wizard
            class="org.apache.forrest.eclipse.wizards.NewProjectWizard"
            category="org.apache.forrest.eclipse"
            project="true"
            name="Seed New Project"
            id="org.apache.forrest.eclipse.NewProjectWizard"/>
      <wizard
            class="org.apache.forrest.eclipse.wizards.NewXDoc"
            category="org.apache.forrest.eclipse"
            name="XDoc File"
            id="org.apache.forrest.eclipse.wizards.NewXDoc"/>
   </extension>
   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            objectClass="org.eclipse.core.resources.IProject"
            id="org.apache.forrest.eclipse.siteContribution">
         <menu
               label="Site"
               path="projStart"
               id="org.apache.forrest.eclipse.siteMenu">
            <separator name="Server"/>
            <separator name="Static"/>
         </menu>
         <action
               enablesFor="1"
               label="Start Test Server"
               icon="icons/start.png"
               class="org.apache.forrest.eclipse.popup.actions.StartForrest"
               menubarPath="org.apache.forrest.eclipse.siteMenu/Server"
               id="org.apache.forrest.eclipse.StartForrest"/>
         <action
               enablesFor="1"
               label="Stop Test Server"
               icon="icons/stop.png"
               class="org.apache.forrest.eclipse.popup.actions.StopForrest"
               menubarPath="org.apache.forrest.eclipse.siteMenu/Server"
               id="org.apache.forrest.eclipse.StopServer"/>
         <action
               enablesFor="1"
               label="Build Site"
               icon="icons/build.png"
               class="org.apache.forrest.eclipse.popup.actions.BuildSite"
               menubarPath="org.apache.forrest.eclipse.siteMenu/Static"
               id="org.apache.forrest.eclipse.BuildServer"/>
      </objectContribution>
   </extension>
  
  <extension point="org.eclipse.ui.editors">
    <editor id="org.eclipse.webbrowser"
      name="%viewWebBrowserTitle"
      icon="icons/obj16/internal_browser.gif"
      class="org.eclipse.webbrowser.internal.WebBrowserEditor"
      extensions="html,htm,gif,jpg,jpeg,xhtml"
      contributorClass="org.eclipse.webbrowser.internal.WebBrowserEditorActionBarContributor"/>
  </extension>
</plugin>