Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » EditHelperAdvice not triggered
EditHelperAdvice not triggered [message #530681] Fri, 30 April 2010 14:08 Go to next message
Pettax  is currently offline Pettax Friend
Messages: 7
Registered: April 2010
Junior Member
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 17:01]

Report message to a moderator

Re: EditHelperAdvice not triggered [message #536415 is a reply to message #530681] Fri, 28 May 2010 06:30 Go to previous message
Pettax  is currently offline Pettax Friend
Messages: 7
Registered: April 2010
Junior Member
Let me answer myself for the record.

I now use a combination of a GraphicalNodeEditPolicy (installed on the edit parts I want to affect) and a ModelingAssistantProvider.
Previous Topic:How to detect (& notify) that the size of a node has changed
Next Topic:Propsheet customization
Goto Forum:
  


Current Time: Sat May 18 17:50:02 GMT 2024

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

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

Back to the top