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

<!--
/**
 * <copyright>
 *
 * Copyright (c) 2002-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.7 2004/07/14 15:44:18 marcelop Exp $
 */
-->

<plugin
    name = "%pluginName"
    id = "org.eclipse.emf.codegen.ecore.ui"
    version = "2.0.1"
    provider-name = "%providerName" 
    class = "org.eclipse.emf.codegen.ecore.genmodel.provider.GenModelEditPlugin$Implementation">

  <requires>
    <import plugin="org.eclipse.core.runtime"/>
    <import plugin="org.eclipse.core.resources"/>
    <import plugin="org.eclipse.jdt.core"/>
    <import plugin="org.eclipse.ui.ide" export="true"/>
    <import plugin="org.eclipse.emf.codegen.ecore" export="true"/>
    <import plugin="org.eclipse.emf.edit.ui" export="true"/>
    <import plugin="org.eclipse.emf.ecore.edit" export="true"/>
  </requires>

  <runtime>
    <library name="runtime/codegen.ecore.ui.jar">
      <export name="*"/>
      <packages prefixes="org.eclipse.emf.codegen.ecore.genmodel"/>
    </library>
  </runtime>

  <extension
      point = "org.eclipse.ui.newWizards">
    <category
       id = "org.eclipse.emf.codegen.ecore.ui.Wizard.category.ID"
       name="%_UI_Wizard_Category">
    </category>
    <wizard
        id="org.eclipse.emf.codegen.ecore.genmodel.presentation.EMFGeneratorProjectWizardID"
        name="%_UI_Wizard_Project_Name"
        class = "org.eclipse.emf.codegen.ecore.genmodel.presentation.EMFProjectWizard"
        category = "org.eclipse.emf.codegen.ecore.ui.Wizard.category.ID"
        project="true"
        finalPerspective="org.eclipse.ui.resourcePerspective"
        icon = "icons/full/ctool16/NewEMFProject.gif">
      <description>%_UI_Wizard_Project_Description</description>
      <selection class="org.eclipse.core.resources.IResource"/>
    </wizard>
    <wizard
        id = "org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelModelWizardID"
        name = "%_UI_Wizard_Name"
        class = "org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelModelWizard"
        category = "org.eclipse.emf.codegen.ecore.ui.Wizard.category.ID"
        icon = "icons/full/ctool16/NewGenModel.gif">
      <description>%_UI_Wizard_Description</description>
      <selection class = "org.eclipse.core.resources.IResource" />
    </wizard>
  </extension>

  <extension point = "org.eclipse.ui.editors">
    <editor
        id = "org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelEditorID"
        name = "%_UI_GenModel_Editor"
        icon = "icons/full/obj16/GenModelModelFile.gif"
        extensions = "genmodel"
        class = "org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelEditor" 
        contributorClass="org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelActionBarContributor" >
    </editor>
  </extension>


  <extension point = "org.eclipse.ui.popupMenus">
    <objectContribution id="org.eclipse.emf.codegen.ecore.ui.ReloadFromRose"
         objectClass="org.eclipse.core.resources.IFile"
         nameFilter="*.genmodel">

      <action id="org.eclipse.emf.codegen.ecore.ui.ReloadFromRoseAction"
          label="%_UI_GenModel_Reload"
          menubarPath="additions"
          class="org.eclipse.emf.codegen.ecore.genmodel.action.ReloadFromRoseAction"
          enablesFor="1">
      </action>
    </objectContribution>
  </extension>
</plugin>
