diff options
Diffstat (limited to 'plugins/toolsmiths/org.eclipse.papyrus.dev.assistants.codegen/plugin.xml')
-rw-r--r-- | plugins/toolsmiths/org.eclipse.papyrus.dev.assistants.codegen/plugin.xml | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.dev.assistants.codegen/plugin.xml b/plugins/toolsmiths/org.eclipse.papyrus.dev.assistants.codegen/plugin.xml new file mode 100644 index 00000000000..e8ac7bac70b --- /dev/null +++ b/plugins/toolsmiths/org.eclipse.papyrus.dev.assistants.codegen/plugin.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> + +<!-- + Copyright (c) 2015 Christian W. Damus and others. + + 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: + Christian W. Damus - Initial API and implementation +--> + +<plugin> + <extension + point="org.eclipse.ui.menus"> + <menuContribution + allPopups="false" + locationURI="popup:org.eclipse.ui.popup.any"> + <command + commandId="org.eclipse.papyrus.dev.assistants.codegen.generateAssistantsFromElementTypes" + id="org.eclipse.papyrus.dev.assistants.codegen.menus.generateAssistantsFromElementTypes" + label="%genFromElementTypes.label" + style="push"> + <visibleWhen + checkEnabled="false"> + <with + variable="selection"> + <iterate + ifEmpty="false" + operator="and"> + <adapt + type="org.eclipse.core.resources.IFile"> + <test + property="org.eclipse.core.resources.extension" + value="elementtypesconfigurations"> + </test> + </adapt> + </iterate> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.dev.assistants.codegen.generateAssistantsFromGMFGen" + id="org.eclipse.papyrus.dev.assistants.codegen.menus.generateAssistantsFromGMFGen" + label="%genFromGMFGen.label" + style="push"> + <visibleWhen + checkEnabled="false"> + <with + variable="selection"> + <iterate + ifEmpty="false" + operator="and"> + <adapt + type="org.eclipse.core.resources.IFile"> + <test + property="org.eclipse.core.resources.extension" + value="gmfgen"> + </test> + </adapt> + </iterate> + </with> + </visibleWhen> + </command> + </menuContribution> + <menuContribution + allPopups="false" + locationURI="popup:org.eclipse.ui.popup.any"> + <command + commandId="org.eclipse.papyrus.dev.assistants.codegen.addPopupbarEditPolicy" + id="org.eclipse.papyrus.dev.assistants.codegen.menus.addPopupbarEditPolicy" + label="%addPopupbarEditPolicy.label" + style="push"> + <visibleWhen + checkEnabled="false"> + <with + variable="selection"> + <iterate + ifEmpty="false" + operator="and"> + <instanceof + value="org.eclipse.gmf.codegen.gmfgen.GenCompartment"/> + </iterate> + </with> + </visibleWhen> + </command> + </menuContribution> + </extension> + + <extension + point="org.eclipse.ui.commands"> + <command + defaultHandler="org.eclipse.papyrus.dev.assistants.codegen.internal.handlers.GenerateModelingAssistantsFromElementTypesHandler" + description="%genFromElementTypes.description" + id="org.eclipse.papyrus.dev.assistants.codegen.generateAssistantsFromElementTypes" + name="%genFromElementTypes.name"> + </command> + <command + defaultHandler="org.eclipse.papyrus.dev.assistants.codegen.internal.handlers.GenerateModelingAssistantsFromGMFGenHandler" + description="%genFromGMFGen.description" + id="org.eclipse.papyrus.dev.assistants.codegen.generateAssistantsFromGMFGen" + name="%genFromGMFGen.name"> + </command> + <command + defaultHandler="org.eclipse.papyrus.dev.assistants.codegen.internal.handlers.AddPopupBarEditPolicyHandler" + description="%addPopupbarEditPolicy.description" + id="org.eclipse.papyrus.dev.assistants.codegen.addPopupbarEditPolicy" + name="%addPopupbarEditPolicy.name"> + </command> + </extension> + +</plugin> |