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 11:16 Go to next message
SPRao  is currently offline SPRao
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 13:01 Go to previous message
emil salageanu is currently offline emil salageanu
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: Wed Aug 20 01:09:17 EDT 2014

Powered by FUDForum. Page generated in 0.28342 seconds