Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add child element to compartment on creation
Add child element to compartment on creation [message #234924] Tue, 30 June 2009 19:43 Go to next message
Josip Maras is currently offline Josip MarasFriend
Messages: 41
Registered: July 2009
Member
Hi,

Does anybody know how can i get the following functionality:

I have a parent control that can contain children (it stores them in a
container). Can i add one child immediately on creation of the parent
control?

Somebody once suggested the use of the Feature Seq Initializer in the
gmfmap, but i don't know how to do that.

Thank you
Re: Add child element to compartment on creation [message #234970 is a reply to message #234924] Wed, 01 July 2009 11:35 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Josip,

It looks reasonable to use FeatureSequenceInitializers. Try to create following
structure in .gmfmap file:

- FeatureSeqInitializer
- Reference new element spec (specify containment feature for a child you
have to create here)
- Feature Seq Initializer (specify child element metalcass here)

-----------------
Alex Shatalin
Re: Add child element to compartment on creation [message #234999 is a reply to message #234970] Wed, 01 July 2009 13:45 Go to previous message
Josip Maras is currently offline Josip MarasFriend
Messages: 41
Registered: July 2009
Member
Hi, thank you

I've tried that all ready but i failed because i didn't go deep enough (i
also had to setup initialized child), but now everything is ok.

Thanks
Previous Topic:Loading GMF namespaces for workflows in GMF-GEF editor output
Next Topic:Actions for UI-commands
Goto Forum:
  


Current Time: Thu Feb 25 17:13:02 GMT 2021

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

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

Back to the top