Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » AssociationEditHelperAdvice and getAfterSetCommand
AssociationEditHelperAdvice and getAfterSetCommand [message #929506] Mon, 01 October 2012 14:19
Simon Schwichtenberg is currently offline Simon SchwichtenbergFriend
Messages: 126
Registered: September 2011
Senior Member
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
Previous Topic:Stereotype icons with vectorgraphics
Next Topic:Cannot Move Class Diagram
Goto Forum:
  


Current Time: Mon Dec 22 17:02:51 GMT 2014

Powered by FUDForum. Page generated in 0.02529 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software