Skip to main content



      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 15:43 Go to next message
Eclipse UserFriend
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 07:35 Go to previous messageGo to next message
Eclipse UserFriend
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 09:45 Go to previous message
Eclipse UserFriend
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 Nov 06 02:35:09 EST 2025

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

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

Back to the top