Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » adding properties to a connection(edge)
adding properties to a connection(edge) [message #211944] Mon, 24 November 2008 17:09 Go to next message
jeevan is currently offline jeevanFriend
Messages: 20
Registered: July 2009
Junior Member
I need to add a property to a connection(edge) which connects nodes in my
diagram. I am not in a position to regenerate the code at this point of
time. Any suggestions or pointers to how I can manually add this in the
generated code would be appreciated.

Thanks
Re: adding properties to a connection(edge) [message #211986 is a reply to message #211944] Tue, 25 November 2008 01:46 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
As far as I know, the properties editor for a GMF edge is actually
handled by the generated EMF Edit code, so you shouldn't need to
generate the GMF diagram code itself.

You could always save the current code, regenerate the diagram editor to
provide properties, and then use diff to identify the changes ;)

Jevon

maben wrote:
> I need to add a property to a connection(edge) which connects nodes in
> my diagram. I am not in a position to regenerate the code at this point
> of time. Any suggestions or pointers to how I can manually add this in
> the generated code would be appreciated.
>
> Thanks
Re: adding properties to a connection(edge) [message #212144 is a reply to message #211986] Tue, 25 November 2008 21:16 Go to previous message
jeevan is currently offline jeevanFriend
Messages: 20
Registered: July 2009
Junior Member
Thanks for the reply.
I am still not very good in GMF and am having problems with the code
generation. From what I see, the connection element is handled by an
eclipse class (Relation). I do not see where I can add my own custom
properties for this class.
I need a feature similar to the multiplicity property (0..* ) that exist
in the UML diagrams.
Previous Topic:Empty properties view in editor when using a ecore model with subpackages
Next Topic:how to sort & filter edit parts displayed in the outline tree view
Goto Forum:
  


Current Time: Thu Apr 25 04:25:54 GMT 2024

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

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

Back to the top