Hi,
I want to create an EditHelperAdvice for Associations. When the name of the Association is changed in the properties view, I want to change the behaviour of the getAfterSetCommand method. This works so far with the following plugin.xml configuration:
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
<metamodel nsURI="http://www.eclipse.org/uml2/4.0.0/UML">
<adviceBinding
class="de.upb.swt.rsdl.editor.ext.advice.AssociationEditHelperAdvice"
id="de.upb.swt.rsdl.editor.ext.advice.AssociationEditHelperAdviceTypes"
inheritance="all"
typeId="org.eclipse.papyrus.uml.AssociationBase">
</adviceBinding>
...
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings">
<binding context="org.eclipse.papyrus.infra.services.edit.TypeContext">
<advice ref="de.upb.swt.rsdl.editor.ext.advice.AssociationEditHelperAdviceTypes" />
...
Unfortunately, whenever I use AssociationBase as typeId, the "Delete Selected Element" menu item from the context menu for Associations is not available any longer (it is grayed out).
When I use org.eclipse.papyrus.uml.Association as typeId instead, getAfterSetCommand is not invoked.
How can I access the getAfterSetCommand for Associations?
Regards,
Simon