Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:16 Go to next message
SPRao  is currently offline SPRao Friend
Messages: 5
Registered: March 2011
Junior Member
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 17:01 Go to previous message
emil salageanu is currently offline emil salageanuFriend
Messages: 94
Registered: June 2010
Location: Nice, France
Member
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: Fri Apr 19 15:19:19 GMT 2024

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

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

Back to the top