plugin.xml 5.78 KB
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <!--<extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu?after=additions">
         <menu
               label="Femto-ST">
            <command
                  commandId="fr.femto.topcased.sysml2vhdlams.ui.sysml2problemcommand"
                  label="Check SysML model"
                  style="push">
            </command>
            <command
                  commandId="fr.femto.topcased.sysml2vhdlams.ui.sysml2vhdlamsxmicommand"
                  label="SysML to VHDL-AMS XMI model"
                  style="push">
            </command>
            <command
                  commandId="fr.femto.topcased.sysml2vhdlams.ui.sysml2vhdlamsfilecommand"
                  label="SysML to VHDL-AMS file"
                  style="push">
            </command>
            <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="activeWorkbenchWindow.activePerspective">
                     <equals
                           value="org.topcased.modeler.perspective">
                     </equals>
                  </with>
               </visibleWhen>
         </menu>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
         <toolbar
               id="fr.femto.sysml2vhdlams.core.toolbar">
            <command
                  commandId="fr.femto.topcased.sysml2vhdlams.ui.sysml2problemcommand"
                  icon="icons/check_model_p.png"
                  label="Check SysML model"
                  style="push">
                  <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="activeWorkbenchWindow.activePerspective">
                     <equals
                           value="org.topcased.modeler.perspective">
                     </equals>
                  </with>
               </visibleWhen>
            </command>
            <command
                  commandId="fr.femto.topcased.sysml2vhdlams.ui.sysml2vhdlamsxmicommand"
                  icon="icons/xmi_icon_2.png"
                  label="SysML to VHDL-AMS XMI model"
                  style="push">
                  <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="activeWorkbenchWindow.activePerspective">
                     <equals
                           value="org.topcased.modeler.perspective">
                     </equals>
                  </with>
               </visibleWhen>
            </command>
            <command
                  commandId="fr.femto.topcased.sysml2vhdlams.ui.sysml2vhdlamsfilecommand"
                  icon="icons/smash_icon_2.gif"
                  label="SysML to VHDL-AMS file"
                  style="push">
                  <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="activeWorkbenchWindow.activePerspective">
                     <equals
                           value="org.topcased.modeler.perspective">
                     </equals>
                  </with>
               </visibleWhen>
            </command>
         </toolbar>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="fr.femto.sysml2vhdlams.core.category"
            defaultHandler="fr.femto.topcased.sysml2vhdlams.commands.CheckSysMLModelCommand"
            id="fr.femto.topcased.sysml2vhdlams.ui.sysml2problemcommand"
            name="Check SysML model">
      </command>
      <command
            categoryId="fr.femto.sysml2vhdlams.core.category"
            defaultHandler="fr.femto.topcased.sysml2vhdlams.commands.SysMLToVhdlamsXmiCommand"
            id="fr.femto.topcased.sysml2vhdlams.ui.sysml2vhdlamsxmicommand"
            name="SysML to VHDL-AMS XMI model">
      </command>
      <command
            categoryId="fr.femto.sysml2vhdlams.core.category"
            defaultHandler="fr.femto.topcased.sysml2vhdlams.commands.SysMLToVhdlamsFileCommand"
            id="fr.femto.topcased.sysml2vhdlams.ui.sysml2vhdlamsfilecommand"
            name="SysML to VHDL-AMS file">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.views">
      <view
            category="fr.femto.sysml2vhdlams.ui.viewCategory"
            class="fr.femto.topcased.sysml2vhdlams.views.ProblemView"
            icon="icons/smash_icon.gif"
            id="fr.femto.topcased.sysml2vhdlams.ui.problemview"
            name="Transformation VHDL-AMS info"
            restorable="true">
      </view>
      <category
            id="fr.femto.sysml2vhdlams.ui.viewCategory"
            name="SYSML2VHDLAMS">
      </category>
   </extension>-->
   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            adaptable="false"
            id="fr.femtost.disc.eclipse.core.objectImportPackageContribution"
            objectClass="org.eclipse.uml2.uml.Package">
         <action
               class="fr.femtost.disc.eclipse.vhdlamslibrary.ui.actions.ImportVhdlAmsPrimitiveTypesAction"
               id="org.eclipse.ui.articles.action.contribution.object.actionVhdlAmsPrimitiveTypesPackage"
               label="Import VHDL-AMS Primitive Types"
               menubarPath="new">
         </action>
         <action
               class="fr.femtost.disc.eclipse.vhdlamslibrary.ui.actions.ImportIEEEPackageAction"
               id="org.eclipse.ui.articles.action.contribution.object.actionImportIEEEPackage"
               label="Import IEEE Library"
               menubarPath="new">
         </action>
      </objectContribution>
   </extension>

</plugin>