| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <plugin> |
| <extension point="org.eclipse.papyrus.infra.architecture.models"> |
| <model path="src/main/resources/architecture/architectureconcepts.architecture"/> |
| </extension> |
| |
| <extension point="org.eclipse.papyrus.infra.core.modelListener"> |
| <listener |
| name="ESFModelListener" |
| realization="org.polarsys.esf.core.diagram.esfarchitectureconcepts.listener.ESFModelListener"> |
| </listener> |
| </extension> |
| |
| <extension point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.polarsys.esf.core.diagram.esfarchitectureconcepts.handler.CreateESFArchitectureConceptsDiagramHandler" |
| commandId="org.polarsys.esf.core.diagram.esfarchitectureconcepts.editPart.creationCommand"> |
| <activeWhen> |
| <with variable="selection"> |
| <test |
| property="org.polarsys.esf.core.diagram.esfarchitectureconcepts.propertyTester.isSBlockOrSPart" |
| value="true"> |
| </test> |
| </with> |
| </activeWhen> |
| </handler> |
| |
| <handler |
| class="org.polarsys.esf.core.diagram.esfarchitectureconcepts.handler.CreateESFArchitectureConceptsDiagramHandler" |
| commandId="org.polarsys.esf.core.diagram.esfarchitectureconcepts.modelExplorer.creationCommand"> |
| <activeWhen> |
| <and> |
| <with variable="selection"> |
| <iterate> |
| <adapt |
| type="org.eclipse.emf.ecore.EObject"> |
| <or> |
| <instanceof |
| value="org.eclipse.uml2.uml.Property"> |
| </instanceof> |
| <instanceof |
| value="org.eclipse.uml2.uml.Class"> |
| </instanceof> |
| </or> |
| </adapt> |
| </iterate> |
| </with> |
| <count |
| value="1"> |
| </count> |
| </and> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <extension point="org.eclipse.ui.commands"> |
| <command |
| description="%menucontext.diagram.esfarchitectureconcepts.creation.description" |
| id="org.polarsys.esf.core.diagram.esfarchitectureconcepts.editPart.creationCommand" |
| name="%menucontext.diagram.esfarchitectureconcepts.creation.label"> |
| </command> |
| <command |
| description="%menucontext.diagram.esfarchitectureconcepts.creation.description" |
| id="org.polarsys.esf.core.diagram.esfarchitectureconcepts.modelExplorer.creationCommand" |
| name="%menucontext.diagram.esfarchitectureconcepts.creation.label"> |
| </command> |
| </extension> |
| <extension point="org.eclipse.ui.commandImages"> |
| <image |
| commandId="org.polarsys.esf.core.diagram.esfarchitectureconcepts.editPart.creationCommand" |
| icon="src/main/resources/icons/icon_diagram_ architectureconcepts.png"> |
| </image> |
| <image |
| commandId="org.polarsys.esf.core.diagram.esfarchitectureconcepts.modelExplorer.creationCommand" |
| icon="src/main/resources/icons/icon_diagram_ architectureconcepts.png"> |
| </image> |
| </extension> |
| |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?after=filtersMenu"> |
| <command |
| commandId="org.polarsys.esf.core.diagram.esfarchitectureconcepts.editPart.creationCommand" |
| icon="src/main/resources/icons/icon_diagram_ architectureconcepts.png" |
| label="%menucontext.diagram.esfarchitectureconcepts.creation.label" |
| style="push"> |
| <visibleWhen |
| checkEnabled="true"> |
| <and> |
| <with |
| variable="activeEditorId"> |
| <equals |
| value="org.eclipse.papyrus.infra.core.papyrusEditor"> |
| </equals> |
| </with> |
| <with |
| variable="selection"> |
| <test |
| property="org.polarsys.esf.core.diagram.esfarchitectureconcepts.propertyTester.isSBlockOrSPart" |
| value="true"> |
| </test> |
| </with> |
| </and> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?before=esf.general.bottom"> |
| <command |
| commandId="org.polarsys.esf.core.diagram.esfarchitectureconcepts.modelExplorer.creationCommand" |
| icon="src/main/resources/icons/icon_diagram_ architectureconcepts.png" |
| label="%menucontext.diagram.esfarchitectureconcepts.creation.label" |
| style="push"> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.polarsys.esf.core.diagram.esfarchitectureconcepts.tester.ESFArchitectureConceptsDiagramTester" |
| id="org.polarsys.esf.core.diagram.esfarchitectureconcepts.propertyTester" |
| namespace="org.polarsys.esf.core.diagram.esfarchitectureconcepts.propertyTester" |
| properties="isSBlockOrSPart" |
| type="org.eclipse.jface.viewers.IStructuredSelection"> |
| </propertyTester> |
| </extension> |
| |
| <extension point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> |
| <elementTypeSet |
| clientContextID="org.eclipse.papyrus.esf.context" |
| path="src/main/resources/elementtypes/esfarchitectureconcepts.elementtypesconfigurations"> |
| </elementTypeSet> |
| </extension> |
| |
| <extension point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> |
| <elementTypeSet |
| clientContextID="org.eclipse.papyrus.esf.context" |
| path="src/main/resources/elementtypes/esfarchitectureconcepts-extension.elementtypesconfigurations"> |
| </elementTypeSet> |
| </extension> |
| |
| <extension point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> |
| <elementTypeSet |
| clientContextID="org.eclipse.papyrus.esf.context" |
| path="src/main/resources/elementtypes/esfarchitectureconcepts_di.elementtypesconfigurations"> |
| </elementTypeSet> |
| </extension> |
| |
| <extension point="org.eclipse.papyrus.infra.types.core.elementTypeSetConfiguration"> |
| <elementTypeSet |
| clientContextID="org.eclipse.papyrus.esf.context" |
| path="src/main/resources/elementtypes/esfarchitectureconcepts_di-extension.elementtypesconfigurations"> |
| </elementTypeSet> |
| </extension> |
| |
| <extension point="org.eclipse.papyrus.infra.properties.contexts"> |
| <context contextModel="src/main/resources/properties_view/esfarchitectureconcepts.ctx"/> |
| </extension> |
| </plugin> |