<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
  ~ 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$ $Date$ -->

<plugin>

    <extension-point id="loader" name="Source Path Computer Mapping" schema="schema/loader.exsd"/>
    <extension-point id="actionURLs" name="Action ID and URL" schema="schema/actionURLs.exsd"/>
    
    
    <!-- ======================================================================================= -->
    <!--                                                                                         -->
    <!-- Define the icon for the Geronimo <runtime-component-type> and the "Geronimo Deployment" -->
    <!-- <project-facet>, which are declared in org.apache.geronimo.st.core\plugin.xml           -->
    <!--                                                                                         -->
    <!-- ======================================================================================= -->
    <extension point="org.eclipse.wst.common.project.facet.ui.images">
        <image runtime-component-type="org.apache.geronimo.runtime"
            path="icons/obj16/littleG.gif"/>
        <image facet="org.apache.geronimo.facet"
            path="icons/obj16/littleG.gif"/>
    </extension>
    

    <!-- 
     |
     | Define the icon for the Geronimo runtime and server types                               
     | (defined in plugins\org.apache.geronimo.st.v*.core\plugin.xml)                          
     |   
     -->
    <extension point="org.eclipse.wst.server.ui.serverImages">

        <image id="org.apache.geronimo.runtime.image" 
            icon="icons/obj16/littleG.gif"
            typeIds="org.apache.geronimo.runtime.11,
            		 org.apache.geronimo.runtime.20,
                     org.apache.geronimo.runtime.21,
                     org.apache.geronimo.runtime.22"/>

        <image id="org.apache.geronimo.server.image" 
            icon="icons/obj16/littleG.gif"
            typeIds="org.apache.geronimo.server.11,
            		 org.apache.geronimo.server.20,
                     org.apache.geronimo.server.21,
                     org.apache.geronimo.server.22"/>
    </extension>


    <!-- 
     |
     | Extend WTP wizardFragments to include the Geronimo runtime and server types                
     | (defined in plugins\org.apache.geronimo.st.v*.core\plugin.xml) when defining either a       
     | new Geronimo runtime (e.g., via Window->Preferences->Server->Installed Runtimes->Add)       
     | or a new Geronimo server (e.g., via File->New->Other->Server)                              
     |   
     -->
    <extension point="org.eclipse.wst.server.ui.wizardFragments">
        <fragment id="org.apache.geronimo.runtime.wizardFragment"
            typeIds="org.apache.geronimo.runtime.11,
            		 org.apache.geronimo.runtime.20,
                     org.apache.geronimo.runtime.21,
                     org.apache.geronimo.runtime.22"
            class="org.apache.geronimo.st.ui.internal.GeronimoRuntimeWizardFragment"/>
        <!-- fragment id="org.apache.geronimo.server.wizardFragment"
            typeIds="org.apache.geronimo.server.11,
            		 org.apache.geronimo.server.20,
                     org.apache.geronimo.server.21,
                     org.apache.geronimo.server.22"
            class="org.apache.geronimo.st.ui.internal.GeronimoServerWizardFragment"/ -->
    </extension>

    <extension point="org.apache.geronimo.st.ui.actionURLs">
        <server_prefix>org.apache.geronimo.</server_prefix>
        <action_URL class="org.apache.geronimo.st.ui.actions.LaunchGeronimoSupportAction"
                    URL="http://geronimo.apache.org/" />
    </extension>
    
 	<extension point="org.eclipse.ltk.core.refactoring.renameParticipants">		    
		<renameParticipant    
			id="org.apache.geronimo.st.ui.refactoring.rename"    
			name="Rename a project with renaming additional info in deployment plan"     
			class="org.apache.geronimo.st.ui.refactoring.GeronimoProjectRenameParticipant">     
			<enablement>
				<with variable="element">
					<instanceof value="org.eclipse.core.resources.IProject">
					</instanceof>
				</with> 
			</enablement>        
		</renameParticipant>    
	</extension>
	
	 <!-- 
     |
     | Define the Web editor class for the various Geronimo-specific XML files
     | (except for geronimo-application-client.xml)
     |   
     -->
    <extension point="org.eclipse.ui.editors">
        <editor class="org.apache.geronimo.st.ui.editors.SharedDeploymentPlanEditor"
            default="true"
            filenames="geronimo-web.xml,
                       geronimo-application.xml,    
                       openejb-jar.xml,
                       geronimo-application-client.xml,
                       geronimo-ra.xml"
            icon="icons/obj16/littleG.gif"
            id="org.apache.geronimo.ui.editors.WebEditor" 
            name="%deploymentPlanEditorName">
        </editor>
    </extension>
</plugin>
