Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Place default elements inside comparment
Place default elements inside comparment [message #757008] Tue, 15 November 2011 19:03 Go to next message
Eclipse UserFriend
Hi all,

I've been developing a graphical editor using GMF. I have elements with affixed inputs/outputs. Some of those elements are compartments that can contain the former elements. The elements can be placed in any position of the comparment, so there isn't any layout defined.

Now, for one of those compartments I want to place two default elements at a specific position while continue placing new elements from the palette in any place of the compartment.

I was investigating editPart and policies of the compartment but is a little confused.
Both element have set their affixed parent side property in gmfgraph but it doesn't affect the comparment. Does anybody know any approach?

Thanks in advance,

Gest
Re: Place default elements inside comparment [message #768102 is a reply to message #757008] Mon, 19 December 2011 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Where are the masters?

Is that true that this issue is impossible to resolve?
Re: Place default elements inside comparment [message #768147 is a reply to message #768102] Mon, 19 December 2011 11:51 Go to previous message
Eclipse UserFriend
On 19/12/2011 16:21, Hoang wrote:
> Is that true that this issue is impossible to resolve?

No it is not true (== it is possible to do it).
The workflow is to create a CreateViewAndElementRequest with the right
attributes (mainly expected ElementType - beware: a same EMF type can
have several ElementTypes: one for each possible container feature), and
then to turn it to a command using .getCommand(...) on the EditPart of
the Compartment.

--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Previous Topic:How to handle domain update in GMF?
Next Topic:Advice Binding for specialization
Goto Forum:
  


Current Time: Fri Nov 07 11:52:04 EST 2025

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

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

Back to the top