<?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/16 17:25:30 marcelop Exp $
 */
-->

<plugin
    name = "%pluginName"
    id = "org.eclipse.xsd.editor"
    version = "2.0.1"
    provider-name = "%providerName" 
    class = "org.eclipse.xsd.presentation.XSDEditorPlugin$Implementation">

  <requires>
    <import plugin="org.eclipse.core.runtime"/>
    <import plugin="org.eclipse.core.resources"/>
    <import plugin="org.eclipse.jface.text" export="true"/>
    <import plugin="org.eclipse.ui.ide" export="true"/>
    <import plugin="org.eclipse.ui.workbench.texteditor" export="true"/>
    <import plugin="org.eclipse.ui.editors" export="true"/>
    <import plugin="org.eclipse.emf.edit.ui" export="true"/>
    <import plugin="org.eclipse.emf.ecore.xmi"/>
    <import plugin="org.eclipse.xsd.edit" export="true"/>
  </requires>

  <runtime>
    <library name="runtime/xsd.editor.jar">
      <export name="*"/>
      <packages prefixes="org.eclipse.xsd.presentation"/>
    </library>
  </runtime>

  <extension point = "org.eclipse.ui.editors">
    <editor
        id = "org.eclipse.xsd.presentation.XSDEditorID"
        name = "%sampleEditor"
        icon = "icons/full/obj16/XSDModelFile.gif"
        extensions = "xsd"
        class = "org.eclipse.xsd.presentation.XSDEditor" 
        contributorClass="org.eclipse.xsd.presentation.XSDEditor$ActionBarContributor" >
    </editor>
  </extension>

  <extension point="org.eclipse.ui.editorActions">  
    <editorContribution 
        id="org.eclipse.xsd.action.xsdContributionID" 
        targetID="org.eclipse.xsd.presentation.XSDEditorID" > 
      <menu 
          id="org.eclipse.xsdMenuID" 
          label="%_UI_XSDEditor_menu"
          path="additions"> 
        <separator name="settings"/> 
        <separator name="actions"/> 
        <separator name="additions"/> 
        <separator name="additions-end"/> 
      </menu> 
    </editorContribution>
  </extension> 

  <extension
    point = "org.eclipse.ui.newWizards">
    <category
       id = "org.eclipse.emf.ecore.Wizard.category.ID"
       name="%_UI_Wizard_category">
    </category>
    <wizard
        id = "org.eclipse.xsd.presentation.XSDModelWizardID"
        name = "%_UI_XSDModelWizard_label"
        class = "org.eclipse.xsd.presentation.XSDModelWizard"
        category = "org.eclipse.emf.ecore.Wizard.category.ID"
        icon = "icons/full/ctool16/NewXSD.gif">
      <description>%_UI_XSDModelWizard_description</description>
      <selection class = "org.eclipse.core.resources.IResource" />
    </wizard>
  </extension>

<!--
  <extension point = "org.eclipse.ui.popupMenus">
    <objectContribution id="org.eclipse.xsd.editor.GenericXMLLoad"
         objectClass="org.eclipse.core.resources.IFile"
         nameFilter="*.xml">

      <action id="org.eclipse.xsd.editor.GenericXMLLoadAction"
          label="Test Load and Save as XML..."
          menubarPath="additions"
          class="org.eclipse.xsd.presentation.XSDEditor$GenericXMLLoadAction"
          enablesFor="1">
      </action>
    </objectContribution>
  </extension>

  <extension point = "org.eclipse.ui.popupMenus">
    <objectContribution id="org.eclipse.xsd.editor.GenericXMLLoad"
         objectClass="org.eclipse.core.resources.IContainer">

      <action id="org.eclipse.xsd.editor.GenericXMLLoadAction"
          label="Test Load and Save as XML..."
          menubarPath="additions"
          class="org.eclipse.xsd.presentation.XSDEditor$GenericXMLLoadAction">
      </action>
    </objectContribution>
  </extension>
-->
</plugin>
