| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <plugin> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| description="%menucontext.importmodel.uml.description" |
| id="org.polarsys.esf.core.importmodel.uml" |
| name="%menucontext.importmodel.uml.label"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.polarsys.esf.core.importmodel.common.handlers.UMLImportModelHandler" |
| commandId="org.polarsys.esf.core.importmodel.uml"> |
| <activeWhen> |
| <and> |
| <with |
| variable="selection"> |
| <iterate> |
| <adapt |
| type="org.eclipse.emf.ecore.EObject"> |
| <instanceof |
| value="org.eclipse.uml2.uml.Package"> |
| </instanceof> |
| </adapt> |
| </iterate> |
| </with> |
| <count |
| value="1"> |
| </count> |
| </and> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?before=esf.general.bottom"> |
| <menu |
| icon="platform:/plugin/org.polarsys.esf.core.resources.graphical/src/main/resources/icons/logos/icon_esf_16x16.png" |
| id="org.polarsys.esf.core.importmodel.menu" |
| label="%menucontext.importmodel.label"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="selection"> |
| <test |
| property="org.eclipse.papyrus.infra.emf.readonly.tester.canMakeWritable" |
| value="true"> |
| </test> |
| </with> |
| </visibleWhen> |
| <command |
| commandId="org.polarsys.esf.core.importmodel.uml" |
| icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Model.gif" |
| label="%menucontext.importmodel.uml.label" |
| style="push"> |
| </command> |
| </menu> |
| </menuContribution> |
| </extension> |
| |
| </plugin> |