blob: a802534f6fbe2fca601b603d6341cf93821358b1 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id$
-->
<plugin>
<extension-point id="applicationHelpers"
name="Custom Java functions for applying a pattern"
schema="schema/applicationHelpers.exsd"/>
<extension point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.papyrus.editor.category"
defaultHandler="org.eclipse.papyrus.designer.patterns.transformations.handlers.ApplyDesignPatternHandler"
id="org.eclipse.papyrus.designer.profiles.designpattern.menuActions.ApplyPatternCmd"
name="Apply a design pattern"/>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.papyrus.designer.popup?after=designer">
<command
commandId="org.eclipse.papyrus.designer.profiles.designpattern.menuActions.ApplyPatternCmd"
icon="platform:/plugin/org.eclipse.papyrus.designer.patterns.profile.ui/icons/designpattern_16x16.gif">
<visibleWhen checkEnabled="false">
<iterate>
<adapt type="org.eclipse.emf.ecore.EObject">
<or>
<instanceof value="org.eclipse.uml2.uml.Class"/>
<instanceof value="org.eclipse.uml2.uml.Package"/>
</or>
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
</extension>
</plugin>