Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » pre-filled containment
pre-filled containment [message #183641] Mon, 21 April 2008 08:32 Go to next message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Hi,

I want to build an editor for different layouts.

Is it possible to create a containment, that is pre-filled with other
objects (so I don't have to drag them into this containment)?

br,
Guido
Re: pre-filled containment [message #183649 is a reply to message #183641] Mon, 21 April 2008 08:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Please replace each "containment" with "compartment"... sry
Re: pre-filled containment [message #183710 is a reply to message #183641] Mon, 21 April 2008 13:09 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Guido,

If you have to create domain model element with some sub-elements on creating
it from the palette then try using ElementInitializer or modifying generated
code appropriately.

-----------------
Alex Shatalin
Re: pre-filled containment [message #183928 is a reply to message #183710] Wed, 23 April 2008 00:15 Go to previous messageGo to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
If the "Feature Seq Initializer" is not enough (this seems to be the
only one supported), what is the proper way to add our custom Element
Initializer?

Thanks,
Lucian
Re: pre-filled containment [message #183998 is a reply to message #183928] Wed, 23 April 2008 09:35 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Lazar,

There are two possible child elements of "Feature Seq Initializer":
- "Feature Value Specification"
- "Reference New Element Specification"

Second one used to create new element (by adding another "Feature Seq Initializer"
below with appropriate Element Class specified).

-----------------
Alex Shatalin
Re: pre-filled containment [message #184109 is a reply to message #183998] Thu, 24 April 2008 08:06 Go to previous message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Alex Shatalin schrieb:
> Hello Lazar,
>
> There are two possible child elements of "Feature Seq Initializer":
> - "Feature Value Specification"
> - "Reference New Element Specification"
>
> Second one used to create new element (by adding another "Feature Seq
> Initializer" below with appropriate Element Class specified).

Works!!!
Ty
Previous Topic:Root nodes not contained in Canvas object
Next Topic:How can I create two domain element by one connection ??
Goto Forum:
  


Current Time: Fri Apr 19 20:48:08 GMT 2024

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

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

Back to the top