blob: 3b18928134dbe53222f51d574e37660c212bf643 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.papyrus.editor.category"
defaultHandler="org.eclipse.papyrus.designer.transformation.ui.handlers.CreateDepPlanHandler"
id="org.eclipse.papyrus.designer.transformation.ui.menuActions.CreateDepPlanCmd"
name="Create deployment plan"/>
<command
categoryId="org.eclipse.papyrus.editor.category"
defaultHandler="org.eclipse.papyrus.designer.transformation.ui.handlers.CreatePlatformHandler"
id="org.eclipse.papyrus.designer.transformation.ui.menuActions.CreatePlatformCmd"
name="Create platform definition"/>
<command
categoryId="org.eclipse.papyrus.editor.category"
defaultHandler="org.eclipse.papyrus.designer.transformation.ui.handlers.ExecuteTransformationChainHandler"
id="org.eclipse.papyrus.designer.transformation.ui.menuActions.ExecuteTransformationChainCmd"
name="Transform and generate code"/>
<command
categoryId="org.eclipse.papyrus.editor.category"
defaultHandler="org.eclipse.papyrus.designer.transformation.ui.handlers.SyncHandler"
id="org.eclipse.papyrus.designer.transformation.ui.menuActions.SyncCmd"
name="Synchronize derived elements"/>
<command
categoryId="org.eclipse.papyrus.editor.category"
defaultHandler="org.eclipse.papyrus.designer.transformation.ui.handlers.ConfigureInstanceHandler"
id="org.eclipse.papyrus.designer.transformation.ui.menuActions.ConfigureInstanceCmd"
name="Configure instance"/>
<command
categoryId="org.eclipse.papyrus.editor.category"
defaultHandler="org.eclipse.papyrus.designer.transformation.ui.handlers.AllocateHandler"
id="org.eclipse.papyrus.designer.transformation.ui.menuActions.AllocateCmd"
name="Allocate to node"/>
</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.transformation.ui.menuActions.CreateDepPlanCmd"
icon="icons/depPlan.gif">
<visibleWhen checkEnabled="false">
<iterate>
<adapt type="org.eclipse.emf.ecore.EObject">
<instanceof value="org.eclipse.uml2.uml.Class"/>
</adapt>
</iterate>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.designer.transformation.ui.menuActions.CreatePlatformCmd"
icon="icons/depPlan.gif">
<visibleWhen checkEnabled="false">
<iterate>
<adapt type="org.eclipse.emf.ecore.EObject">
<instanceof value="org.eclipse.uml2.uml.Class"/>
</adapt>
</iterate>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.designer.transformation.ui.menuActions.SyncCmd"
icon="icons/sync.gif">
<visibleWhen checkEnabled="false">
<iterate>
<adapt type="org.eclipse.emf.ecore.EObject">
<or>
<instanceof value="org.eclipse.uml2.uml.Property"/>
<instanceof value="org.eclipse.uml2.uml.Interface"/>
<instanceof value="org.eclipse.uml2.uml.Package"/>
</or>
</adapt>
</iterate>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.designer.transformation.ui.menuActions.ConfigureInstanceCmd"
icon="icons/selContainer.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.Connector"/>
<and>
<instanceof value="org.eclipse.uml2.uml.Property"/>
<not>
<instanceof value="org.eclipse.uml2.uml.Port"/>
</not>
</and>
<instanceof value="org.eclipse.uml2.uml.InstanceSpecification"/>
</or>
</adapt>
</iterate>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.designer.transformation.ui.menuActions.AllocateCmd"
icon="icons/allocation.gif">
<visibleWhen checkEnabled="false">
<iterate>
<adapt type="org.eclipse.emf.ecore.EObject">
<test property="org.eclipse.papyrus.uml.stereotype" value="Deployment::DeploymentPlan"/>
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.papyrus.designer.popup?after=codegen">
<command
commandId="org.eclipse.papyrus.designer.transformation.ui.menuActions.ExecuteTransformationChainCmd"
icon="icons/deploy.gif">
<visibleWhen checkEnabled="false">
<iterate>
<adapt type="org.eclipse.emf.ecore.EObject">
<or>
<test property="org.eclipse.papyrus.uml.stereotype" value="Transformation::ExecuteTrafoChain"/>
<test property="org.eclipse.papyrus.uml.stereotype" value="Deployment::DeploymentPlan"/>
</or>
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.preferencePages">
<page
category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory"
class="org.eclipse.papyrus.designer.transformation.ui.preferences.PapyrusDesignerPreferencePage"
id="org.eclipse.papyrus.designer.transformation.ui.preferences.PapyrusDesignerPreferencePage_ID"
name="Papyrus designer preferences"/>
</extension>
<extension point="org.eclipse.core.runtime.preferences">
<initializer
class="org.eclipse.papyrus.designer.transformation.ui.preferences.PapyrusDesignerPreferenceInitializer">
</initializer>
</extension>
</plugin>