Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Using XYLayout
Using XYLayout [message #686031] Tue, 21 June 2011 12:53 Go to next message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
Hi !

I've got a Atom class, which can own some State. I followed some tutorials and i'm now able to add new Sates inside the Atom with my generated diagram.

I tried to use a XYLayout to be able to move States insides my Atom, but it doesn't work : i can't move or resize States, althought it seems the flow layout is not used anymore.

Are there more informations needed in my .gmfgraph to make the xylayout work ?
Like XYLayout Data, or preferred size ?

I've made some try but i ran out of idea ...

Thanks !
Re: Using XYLayout [message #693263 is a reply to message #686031] Wed, 06 July 2011 06:42 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

if you place model elements inside a compartment and want to not have a stack layout you need to do some changes to the generator model. Find the compartment there and set its StackLayout option to false. Now you can move the model elements inside the compartment. Take care that you always have to do this steps after deleting the generator model. Hence, I recommend you to do this setup via an transformation. For example you can use the in GMF build in capability to automatically execute a QVTo transformation when creating the generator model or the solution provided by the gmftooling project.

Ralph
Re: Using XYLayout [message #693427 is a reply to message #693263] Wed, 06 July 2011 13:06 Go to previous message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
So i was not searching in the right place ...

Thanks a lot, setting the ListLayout option to false do the job.

What is a QVTo transformation ?
Previous Topic:Get All the Information in the Diagram
Next Topic:Generate Custom XML from Graphical Diagram
Goto Forum:
  


Current Time: Thu Feb 25 16:35:42 GMT 2021

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

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

Back to the top