Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » TopNode that is also a ChildNode(Nodes)
TopNode that is also a ChildNode [message #643709] Tue, 07 December 2010 22:59 Go to next message
Erik Englund is currently offline Erik EnglundFriend
Messages: 49
Registered: July 2009
Member
I have two top level Nodes in my model. NodeA and NodeB.

NodeB has a comparment that can contain NodeA elements.

When GMF auto generates this code it creates a NodeAEditPart and a NodeA2EditPart etc. for all the items.

I want the same behavior for NodeA whether is in the compartment or not.

Any ideas?
Re: TopNode that is also a ChildNode [message #643714 is a reply to message #643709] Tue, 07 December 2010 23:53 Go to previous messageGo to next message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello,

You may only guess what happens in UML2Tools where there are 2 different types of packages that may contain different types of classifiers -- all with attributes. We use to deal with class names like Attribute12EditPart Smile.

I think I have submitted a bugzilla for that, but can't find it now. Please submit your own and with some luck we may fix it in Indigo.

For now, the best you can do is to implement common logic in the custom templates and trigger it by something like
genNode.domainMetaClass.ecoreClass.name='NodeA'
.

Regards,
Michael
Re: TopNode that is also a ChildNode [message #663330 is a reply to message #643714] Mon, 04 April 2011 16:21 Go to previous message
Erik Englund is currently offline Erik EnglundFriend
Messages: 49
Registered: July 2009
Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332224
Previous Topic:GMF Resource vs Pathmaps
Next Topic:GMF based Editor nested in Dialog?
Goto Forum:
  


Current Time: Thu Apr 18 03:17:23 GMT 2024

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

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

Back to the top