<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
  name="BioUML workbench"
  id="biouml.workbench"
  version="0.8.6"  
  provider-name="%providerName"
  class="biouml.workbench.BioUMLPlugin"
  >
  
  <requires>
    <import plugin="org.eclipse.core.runtime"/>
    <import plugin="org.eclipse.update.core"/>
    <import plugin="org.eclipse.update.configurator"/>
    <import plugin="org.apache.log4j"/>
    <import plugin="com.beanexplorer"/>
    <import plugin="com.developmentontheedge.util"/>
    <import plugin="ru.biosoft.access"/>
    <import plugin="ru.biosoft.table"/>
    <import plugin="ru.biosoft.bsa"/>
    <import plugin="ru.biosoft.graph"/>
    <import plugin="ru.biosoft.workbench"/>
    <import plugin="ru.biosoft.math"/>
    <import plugin="ru.biosoft.server"/>
    <import plugin="ru.biosoft.access.server"/>
    <import plugin="biouml.plugins.server"/>
    <import plugin="biouml.plugins.obo"/>
    <import plugin="biouml.plugins.simulation"/>
    <import plugin="javax.help"/>
    <import plugin="org.openscience.cdk"/>
    <import plugin="org.mozilla.javascript"/>
    <import plugin="org.apache.axis"/>
  </requires>

  <runtime>
    <library name="biouml.jar">
      <export name="*"/>
    </library>
    <library name="workbench.jar">
      <export name="*"/>
    </library>
    <library name="help.jar">
      <export name="*"/>
    </library>
    <library name="./">
      <export name="*"/>
    </library>
  </runtime>

  <extension-point name="%moduleType"           id="moduleType"/>
  <extension-point name="%diagramTypeConverter" id="diagramTypeConverter"/>
  <extension-point name="%diagramImport"        id="diagramImport"/>
  <extension-point name="%diagramExport"        id="diagramExport"/>
  <extension-point name="%diagramViewPart"      id="diagramViewPart"/>
  <extension-point name="%diagramEditorPart"    id="diagramEditorPart"/>
  <extension-point name="%menuItem"             id="menuItem"/>
  <extension-point name="%wizardPage"           id="wizardPage"/>


  <!-- ================================================================ -->
  <!-- Module and diagram type issues                                   -->
  <!-- ================================================================ -->
  
  <extension id="StandardModuleType" point="biouml.workbench.moduleType"> 
      <moduleType 
        class="biouml.standard.StandardModuleType" 
        displayName="%standardModule"
        description="%standardModuleDescription"
      /> 
  </extension>

  <extension id="standardDiagramTypeConversions" point="biouml.workbench.diagramTypeConverter"> 

      <conversion 
        from="biouml.standard.diagram.SemanticNetworkDiagramType"
        to="biouml.standard.diagram.PathwayDiagramType"
        converter="biouml.model.DiagramTypeConverter$YesConverter"
      /> 

      <conversion 
        from="biouml.standard.diagram.MetabolicPathwayDiagramType"
        to="biouml.standard.diagram.GeneNetworkDiagramType"
        converter="biouml.model.DiagramTypeConverter$YesConverter"
      /> 
      <conversion 
        from="biouml.standard.diagram.MetabolicPathwayDiagramType"
        to="biouml.standard.diagram.PathwayDiagramType"
        converter="biouml.model.DiagramTypeConverter$YesConverter"
      /> 

      <conversion 
        from="biouml.standard.diagram.GeneNetworkDiagramType"
        to="biouml.standard.diagram.MetabolicPathwayDiagramType"
        converter="biouml.model.DiagramTypeConverter$ConditionalConverter"
      /> 

      <conversion 
        from="biouml.standard.diagram.GeneNetworkDiagramType"
        to="biouml.standard.diagram.PathwayDiagramType"
        converter="biouml.model.DiagramTypeConverter$YesConverter"
      /> 

      <conversion 
        from="biouml.standard.diagram.PathwayDiagramType"
        to="biouml.standard.diagram.SemanticNetworkDiagramType"
        converter="biouml.model.DiagramTypeConverter$ConditionalConverter"
      /> 

      <conversion 
        from="biouml.standard.diagram.PathwayDiagramType"
        to="biouml.standard.diagram.MetabolicPathwayDiagramType"
        converter="biouml.model.DiagramTypeConverter$ConditionalConverter"
      /> 

      <conversion 
        from="biouml.standard.diagram.PathwayDiagramType"
        to="biouml.standard.diagram.GeneNetworkDiagramType"
        converter="biouml.model.DiagramTypeConverter$ConditionalConverter"
      /> 

  </extension> 

  <!-- ================================================================ -->
  <!-- Viewers and editors                                              -->
  <!-- ================================================================ -->

  <extension id="Diagram description" point="biouml.workbench.diagramEditorPart"> 
      <diagramEditorPart 
       class="biouml.workbench.diagram.DiagramDescriptionEditor" 
        Name="Description"
        ShortDescription="Diagram description"
        Priority = "1.1"
      /> 
  </extension> 

  <!-- extension id="legend view" point="biouml.workbench.diagramViewPart"> 
      <diagramViewPart 
        class="biouml.workbench.diagram.LegendView"
        Name="Legend"
        ShortDescription="Diagram description"
        Priority = "2.1"
      /> 
  </extension --> 

  <extension id="Filter" point="biouml.workbench.diagramViewPart"> 
      <diagramEditorPart 
        class="biouml.workbench.diagram.FilterView" 
        Name="Filter"
        ShortDescription="Hide or highlight diagram elements according to the filter criteria."
        Priority = "2.2"
      /> 
  </extension> 

  <extension id="Clipboard" point="biouml.workbench.diagramViewPart"> 
      <diagramViewPart 
        class="biouml.workbench.diagram.ClipboardView" 
        Name="Clipboard"
        ShortDescription="Diagram clipboard is used to copy and paste diagram elements from one diagram to another."
        Priority = "2.5"
      /> 
  </extension> 

  <extension id="Model parameters" point="biouml.workbench.diagramEditorPart"> 
      <diagramEditorPart 
        class="biouml.workbench.diagram.ParametersTabularEditor" 
        Name="Parameters"
        ShortDescription="Table of parameters used in the model"
        Priority = "3.1"
      /> 
  </extension> 

  <extension id="Model variables" point="biouml.workbench.diagramEditorPart"> 
      <diagramEditorPart 
        class="biouml.workbench.diagram.VariablesTabularEditor" 
        Name="Variables"
        ShortDescription="Table of variables used in the model"
        Priority = "3.2"
      /> 
  </extension> 

  <extension id="Application Log" point="biouml.workbench.diagramViewPart">
      <diagramEditorPart 
        class="ru.biosoft.gui.LogPane" 
        Name="Application Log"
        ShortDescription="Application log console"
        Priority = "2.4"
      /> 
  </extension> 
  
  <extension id="database references view" point="biouml.workbench.diagramViewPart"> 
      <diagramViewPart 
        class="biouml.standard.diagram.DatabaseReferencesViewPart"
        Name="References"
        ShortDescription="Database references pane"
      /> 
  </extension> 
  
  <extension id="math editor view" point="biouml.workbench.diagramViewPart"> 
      <diagramViewPart 
        class="biouml.standard.diagram.MathEditorViewPart"
        Name="Math editor"
        ShortDescription="Math editor pane"
      /> 
  </extension> 
  
  <extension id="experiments view" point="biouml.workbench.diagramViewPart"> 
      <diagramViewPart 
        class="biouml.standard.experiment.ExperimentsViewPart"
        Name="Experiments"
        ShortDescription="Experiments pane"
      /> 
  </extension>
  
  <extension id="Skin" point="biouml.workbench.diagramViewPart"> 
      <diagramEditorPart 
        class="biouml.model.xml.skin.SkinViewPart" 
        Name="Skin"
        ShortDescription="Draw diagram elements according to the selected notation."
        Priority = "5.0"
      /> 
  </extension>

  <!-- ================================================================ -->
  <!-- Import/Export                                                    -->
  <!-- ================================================================ -->

  <extension id="ImageExport" point="biouml.workbench.diagramExport"> 
     <export 
        diagramType="*"
        format="Portable Network Graphics (*.png)"
        suffix="png"
        exporter="biouml.workbench.diagram.DiagramImageWriter"
        description="%DiagramImport-PNG"
     /> 
     <export 
        diagramType="*"
        format="JPEG file (*.jpg)"
        suffix="jpg"
        exporter="biouml.workbench.diagram.DiagramImageWriter"
        description="%DiagramImport-JPG"
     /> 
     <export 
        diagramType="*"
        format="Bitmap file(*.bmp)"
        suffix="bmp"
        exporter="biouml.workbench.diagram.DiagramImageWriter"
        description="%DiagramImport-BMP"
     /> 
     <export 
        diagramType="*"
        format="Windows bitmap file(*.wbmp)"
        suffix="wbmp"
        exporter="biouml.workbench.diagram.DiagramImageWriter"
        description="%DiagramImport-WBMP"
     /> 
     <export 
        diagramType="*"
        format="BioUML format(*.dml)"
        suffix="dml"
        exporter="biouml.model.util.DiagramDMLExporter"
        description="%DiagramImport-DML"
     />
     <export 
        diagramType="*"
        format="Pair graph file(*.txt)"
        suffix="txt"
        exporter="biouml.model.util.DiagramPairGraphExporter"
        description="%DiagramImport-TXT"
     />
     
  </extension> 
  

  <!-- ================================================================ -->
  <!-- Misc                                                             -->
  <!-- ================================================================ -->

  <extension id="launcher" point="org.eclipse.core.runtime.applications"> 
      <application> 
         <run class="biouml.workbench.BioUMLLauncher"> 
         </run> 
      </application> 
  </extension> 

  <extension id="repository actions" point="ru.biosoft.access.repositoryActionsProvider"> 
      <repositoryActionsProvider class="biouml.workbench.RepositoryActionsProvider"/> 
  </extension> 

  <extension id="workbench help" point="ru.biosoft.workbench.helpSet"> 
      <helpSet id="workbench help" file="workbench.hs"/> 
  </extension> 

  <extension id="aboutDialog" point="ru.biosoft.workbench.aboutDialog">
      <size width="400" height="200"/>
      <tab name="Info" img="biouml/workbench/resources/AboutLogo.png"/>
      <tab name="Web Pages" html="biouml/workbench/resources/about_web_pages.html"/>
      <tab name="Contacts" html="biouml/workbench/resources/about_contacts.html"/>
      <tab name="Notes" html="biouml/workbench/resources/about_notes.html"/>
  </extension>
  
  <extension id="Databases wizard page" point="biouml.workbench.wizardPage"> 
      <wizardPage 
      	name="Load databases" 
      	description="Load databases from server" 
      	position="2" 
      	page="biouml.workbench.module.DatabasesWizardPage"
      /> 
  </extension> 
  
</plugin>
