| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <!-- |
| Copyright (c) 2017 CEA LIST. |
| |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| CEA LIST - Initial API and implementation |
| --> |
| |
| <plugin> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="true" |
| locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?after=org.eclipse.papyrus.uml.import.menu"> |
| <menu |
| id="org.eclipse.papyrus.infra.gmfdiag.export.menu" |
| label="&Export"> |
| <command |
| commandId="org.eclipse.papyrus.requirements.export.exportRequirements" |
| label="Export Requirements..." |
| style="push" |
| tooltip="export requirements in csv"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="selection"> |
| |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.requirements.sysml.testers.appliesSysMLRequirementsProfile" |
| value="true"> |
| </test> |
| </with> |
| </visibleWhen> |
| </command> |
| </menu> |
| </menuContribution> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| description="export requirements in csv" |
| id="org.eclipse.papyrus.requirements.export.exportRequirements" |
| name="exportRequirements"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.papyrus.requirements.export.ExportRequirementCommandHandler" |
| commandId="org.eclipse.papyrus.requirements.export.exportRequirements"> |
| <enabledWhen> |
| <with |
| variable="selection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.requirements.sysml.testers.appliesSysMLRequirementsProfile" |
| value="true"> |
| </test> |
| </with> |
| </enabledWhen> |
| </handler> |
| </extension> |
| |
| </plugin> |