| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.2"?> |
| <plugin> |
| <extension-point id="org.eclipse.emf.ecp.common.modelelementopener" name="Open Handler for Modelelements" schema="schema/org.eclipse.emf.ecp.common.modelelementopener.exsd"/> |
| <extension-point id="org.eclipse.emf.ecp.common.dropadapter" name="Model element drop adapter" schema="schema/org.eclipse.emf.ecp.common.dropadapter.exsd"/> |
| <extension-point id="org.eclipse.emf.ecp.common.menuContributionEnablement" name="menuContributionEnablement" schema="schema/org.eclipse.emf.ecp.common.menuContributionEnablement.exsd"/> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <category |
| id="org.eclipse.emf.ecp.common" |
| name="org.eclipse.emf.ecp.common"> |
| </category> |
| <command |
| categoryId="org.eclipse.emf.ecp.common" |
| defaultHandler="org.eclipse.emf.ecp.common.handler.SearchModelElementHandler" |
| id="org.eclipse.emf.ecp.common.handlers.open_me_ID" |
| name="Search for Modelelement"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:org.eclipse.emf.ecp.navigator.viewer?after=org.eclipse.emf.ecp.navigator.createModelElementCommands"> |
| <separator |
| name="org.eclipse.emf.ecp.common.commands.modifyCommands"> |
| </separator> |
| </menuContribution> |
| <menuContribution |
| locationURI="popup:org.eclipse.emf.ecp.navigator.viewer?after=additions"> |
| <separator |
| name="beforeDeleteSeparator" |
| visible="false"> |
| </separator> |
| <command |
| commandId="org.eclipse.emf.ecp.common.deleteModelelement" |
| icon="icons/delete.gif" |
| label="Delete" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <instanceof value="org.eclipse.emf.ecore.EObject" /> |
| <not> |
| <instanceof value="org.eclipse.emf.emfstore.client.model.ProjectSpace" /> |
| </not> |
| <not> |
| <instanceof value="org.eclipse.emf.emfstore.common.model.Project"/> |
| </not> |
| </and> |
| </iterate> |
| <test |
| args="org.eclipse.emf.ecp.common.deleteModelelement" |
| property="org.eclipse.emf.ecp.common.menuContributionsEnablement" |
| value="true"> |
| </test> |
| </and> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <menuContribution |
| locationURI="toolbar:org.eclipse.ui.main.toolbar"> |
| <toolbar |
| id="org.eclipse.emf.ecp.common.ECPToolbar"> |
| <command |
| commandId="org.eclipse.emf.ecp.common.handlers.open_me_ID" |
| icon="icons/magnifier.png" |
| style="push" |
| tooltip="Search model element"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <instanceof |
| value="org.eclipse.emf.ecore.EObject"> |
| </instanceof> |
| <not> |
| <instanceof |
| value="org.eclipse.emf.emfstore.common.model.Project"> |
| </instanceof> |
| </not> |
| <not> |
| <instanceof |
| value="org.eclipse.emf.emfstore.client.model.ProjectSpace"> |
| </instanceof> |
| </not> |
| </and> |
| </iterate> |
| <count |
| value="1"> |
| </count> |
| <test |
| args="org.eclipse.emf.ecp.common.handlers.open_me_ID" |
| property="org.eclipse.emf.ecp.common.menuContributionsEnablement" |
| value="true"> |
| </test> |
| </and> |
| </visibleWhen> |
| </command> |
| </toolbar> |
| </menuContribution> |
| |
| |
| |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.definitions"> |
| <definition |
| id="org.eclipse.emf.ecp.common.commands.modelElement"> |
| <and> |
| <instanceof |
| value="org.eclipse.emf.ecore.EObject"> |
| </instanceof> |
| <not> |
| <instanceof |
| value="org.eclipse.emf.emfstore.client.model.ProjectSpace"> |
| </instanceof> |
| </not> |
| <not> |
| <instanceof |
| value="org.eclipse.emf.emfstore.common.model.Project"> |
| </instanceof> |
| </not> |
| </and> |
| </definition> |
| </extension> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| class="org.eclipse.emf.ecp.common.preferences.ECPPreferencesPage" |
| id="org.eclipse.emf.ecp" |
| name="ECP"> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.emf.ecp.common.dropadapter"> |
| <MEDropAdapter |
| class="org.eclipse.emf.ecp.common.dnd.DefaultMEDropAdapter"> |
| </MEDropAdapter> |
| </extension> |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <key |
| commandId="org.eclipse.emf.ecp.common.deleteModelelement" |
| contextId="org.eclipse.ui.contexts.window" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="Ctrl+Delete"> |
| </key> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.emf.ecp.common.commands.ECPMenuContributionsEnablementTester" |
| id="org.eclipse.emf.ecp.common.menuContributionsEnablementTester" |
| namespace="org.eclipse.emf.ecp.common" |
| properties="menuContributionsEnablement" |
| type="java.lang.Object"> |
| </propertyTester> |
| </extension> |
| </plugin> |
| |