Hi,
I've extended the element type registry with a few entries looking something like below:
<specializationType
id="myId"
name="myName"
kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType "
edithelperadvice="com.mycompany.MyTypeEditHelperAdvice">
<specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="myName"/>
</specializationType>
I use the INotationType kind not to affect the semantic model and specialize org.eclipse.gmf.runtime.emf.type.core.null to add a completely new element to the picture. It does not seem like the edithelperadvice is beeing consulted? Could this be the case? If so, is this becasue it is a notational element only and that the edithelperadvice is only consulted for changes to the semantic model?
What is the best way to add limitations on how I can connect my new symbols? Do I use edithelperadvices, editpolicies or something else?
Br,
Pettax
[Updated on: Fri, 30 April 2010 13:01] by Moderator