Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » contributing to Connection Handles in GMF(contributing to Connection Handles in GMF)
contributing to Connection Handles in GMF [message #664956] Tue, 12 April 2011 11:16 Go to next message
Eclipse UserFriend
In my GMF diagram, I want to have my own menus for the connection handles rather than the default one's. I am finding it difficult to find the default connection handles menu contribution.Can anyone help me with this.

Does anybody know how to contribute to connection handles in GMF. or a tutorial to refer.


Thanks,
SPRao
Re: contributing to Connection Handles in GMF [message #666272 is a reply to message #664956] Tue, 19 April 2011 13:01 Go to previous message
Eclipse UserFriend
Hi,


Write a class MyCustomConnectionHandleEditPolicy extends
ConnectionHandleEditPolicy

and contribute it in the method

protected void createDefaultEditPolicies() {
.........
installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE,
new MyCustomConnectionHandleEditPolic());
}


Then you take a loo at ConnectionHandleEditPolicy and it's super types and see how it works and how you cand change things.



cheers,
emil
Previous Topic:[SOLVED]Connection Anchor
Next Topic:ViewFactory Deprecation
Goto Forum:
  


Current Time: Sun Jul 06 11:24:43 EDT 2025

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

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

Back to the top