<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<!--
/**
 * <copyright>
 *
 * Copyright (c) 2004 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 *
 * Contributors:
 *   IBM - Initial API and implementation
 *
 * </copyright>
 *
 * $Id: plugin.xml,v 1.5 2004/07/20 17:17:46 marcelop Exp $
 */
-->

<plugin
   id="org.eclipse.emf.mapping.ecore2ecore.editor"
   name="%pluginName"
   version="2.0.1"
   provider-name="%providerName"
   class="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreEditorPlugin$Implementation">

   <requires>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="org.eclipse.emf.mapping.ecore2ecore" export="true"/>
      <import plugin="org.eclipse.emf.mapping.ui" export="true"/>
      <import plugin="org.eclipse.ui"/>
   </requires>

   <runtime>
      <library name="runtime/mapping.ecore2ecore.editor.jar">
         <export name="*"/>
      </library>
   </runtime>

   <extension point="org.eclipse.ui.newWizards">
      <category
            name="%_UI_Wizard_category"
            id="org.eclipse.emf.ecore.Wizard.category.ID">
      </category>
      <wizard
            name="%_UI_Ecore2EcoreModelWizard_label"
            icon="icons/full/ctool16/NewEcore2Ecore.gif"
            category="org.eclipse.emf.ecore.Wizard.category.ID"
            class="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreModelWizard"
            id="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreModelWizardID">
         <description>%_UI_Ecore2EcoreModelWizard_description</description>
         <selection class="org.eclipse.core.resources.IResource"/>
      </wizard>
   </extension>

   <extension point="org.eclipse.ui.editors">
      <editor
            name="%_UI_Ecore2EcoreEditor_label"
            extensions="ecore2ecore"
            icon="icons/full/obj16/Ecore2EcoreModelFile.gif"
            contributorClass="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreActionBarContributor"
            class="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreEditor"
            id="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreEditorID">
      </editor>
   </extension>

   <extension point="org.eclipse.ui.editorActions">
      <editorContribution
            targetID="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreEditorID"
            id="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreContributionID">
         <menu
               label="&amp;Ecore to Ecore Mapping Editor"
               path="additions"
               id="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID">
            <separator name="settings"/>
            <separator name="actions"/>
            <separator name="global-actions"/>
            <separator name="additions"/>
            <separator name="additions-end"/>
         </menu>
         <action
               label="&amp;Remove Mapping"
               icon="platform:/plugin/org.eclipse.emf.mapping/icons/full/ctool16/RemoveOneToOneMapping.gif"
               class="org.eclipse.emf.mapping.action.RemoveMappingAction"
               tooltip="Remove the mapping associated with the selected objects."
               menubarPath="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID/actions"
               toolbarPath="Normal/mapping-additions"
               id="org.eclipse.emf.mapping.action.RemoveMappingActionID">
         </action>
         <action
               label="Match Mapping by &amp;Type"
               icon="platform:/plugin/org.eclipse.emf.mapping/icons/full/ctool16/MatchByType.gif"
               class="org.eclipse.emf.mapping.action.TypeMatchMappingAction"
               tooltip="Create child mappings automatically by type."
               menubarPath="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID/actions"
               toolbarPath="Normal/mapping-additions"
               id="org.eclipse.emf.mapping.action.TypeMatchMappingActionID">
         </action>
         <action
               label="Match Mapping by &amp;Name"
               icon="platform:/plugin/org.eclipse.emf.mapping/icons/full/ctool16/MatchByName.gif"
               class="org.eclipse.emf.mapping.action.NameMatchMappingAction"
               tooltip="Create child mappings automatically by name."
               menubarPath="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID/actions"
               toolbarPath="Normal/mapping-additions"
               id="org.eclipse.emf.mapping.action.NameMatchMappingActionID">
         </action>
         <action
               label="Create &amp;One-sided Mapping"
               icon="platform:/plugin/org.eclipse.emf.mapping/icons/full/ctool16/CreateOneToNoneMapping.gif"
               class="org.eclipse.emf.mapping.action.CreateOneSidedMappingAction"
               tooltip="Create a new mapping for the selected object."
               menubarPath="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID/actions"
               toolbarPath="Normal/mapping-additions"
               id="org.eclipse.emf.mapping.action.CreateOneSidedMappingActionID">
         </action>
         <action
               label="Create &amp;Mapping"
               icon="platform:/plugin/org.eclipse.emf.mapping/icons/full/ctool16/CreateOneToOneMapping.gif"
               class="org.eclipse.emf.mapping.action.CreateMappingAction"
               tooltip="Create a new mapping between the selected objects."
               menubarPath="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID/actions"
               toolbarPath="Normal/mapping-additions"
               id="org.eclipse.emf.mapping.action.CreateMappingActionID">
         </action>
         <action
               label="Add &amp;Output Root..."
               icon="platform:/plugin/org.eclipse.emf.mapping.ui/icons/full/ctool16/AddRootBottom.gif"
               class="org.eclipse.emf.mapping.ecore2ecore.action.AddOutputRootAction"
               tooltip="Add new output root."
               menubarPath="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID/actions"
               toolbarPath="Normal/mapping-additions"
               id="org.eclipse.emf.mapping.ecore2ecore.action.AddOuputRootActionID">
         </action>
         <action
               label="Add &amp;Input Root..."
               icon="platform:/plugin/org.eclipse.emf.mapping.ui/icons/full/ctool16/AddRootTop.gif"
               class="org.eclipse.emf.mapping.ecore2ecore.action.AddInputRootAction"
               tooltip="Add new input root."
               menubarPath="org.eclipse.emf.mapping.ecore2ecore.presentation.Ecore2EcoreMenuID/actions"
               toolbarPath="Normal/mapping-additions"
               id="org.eclipse.emf.mapping.ecore2ecore.action.AddInputRootActionID">
         </action>
      </editorContribution>
   </extension>

   <extension point="org.eclipse.ui.popupMenus">
      <objectContribution
            objectClass="org.eclipse.core.resources.IFile"
            nameFilter="*.ecore"
            id="org.eclipse.emf.mapping.ecore2ecore.editor.MapToEcoreActionID">
         <action
               label="Map to Ecore..."
               class="org.eclipse.emf.mapping.ecore2ecore.action.MapToEcoreActionDelegate"
               menubarPath="additions"
               enablesFor="1"
               id="org.eclipse.emf.mapping.ecore2ecore.editor.MapToEcoreActionID">
         </action>
      </objectContribution>
   </extension>
</plugin>
