Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » FreeformLayout on node
FreeformLayout on node [message #481899] Mon, 24 August 2009 16:46 Go to next message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

I am trying to create a node that represents kind of a sub Canvas.

So: The main diagram itself contains (sub)diagrams that contain the same
elements. Later I want this diagrams to be able to collapse or expand to
have a better structure in the whole diagram.

Unfortunatelly I don't know how to apply the same layout on a node that is
applied on the canvas. I tried every layout and at the end I tried setting
the custom layout to be the FreeFormLayoutEx which I think is used by the
diagram itself. However my nodes disappear when I try adding them to the
other node.

Can someone help me?

A different approach would be (though I don't know if that is possible):

all nodes have successors. All nodes have collapse ability and if you
collapse one, it will automatically collapse all successors of that
particular node. So:
A -> B -> C
A is collapsed and B and C disappear.
However I could not find an expample for this.

Help is greatly appreciated.

Artur
Re: FreeformLayout on node [message #481956 is a reply to message #481899] Mon, 24 August 2009 20:40 Go to previous message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 3
Registered: July 2009
Junior Member
First step solved:

If you set the List Layout to false in the .gmfgen you will be able to
move around stuff in there like on the canvas. Although I don't really
like that solution.

I would be very curious about the second way. I think I saw it in another
program but unfortunatelly in no tutorial:

Each node knows its sucessor and can collapse them when clicked on the
arrow.
Maybe someone knows how to do that.

Best regards
Previous Topic:Displaying an image between children of a node
Next Topic:Triggering Xpand and QVTO not from ANT script but from GMF runtime
Goto Forum:
  


Current Time: Sat Apr 27 00:22:47 GMT 2024

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

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

Back to the top