Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Ordered Compartment with drag-and-drop functionality
Ordered Compartment with drag-and-drop functionality [message #149418] Thu, 06 September 2007 09:25 Go to next message
Eclipse UserFriend
Originally posted by: gregory.vanseghrboeck.intec.ugent.be

Hello,

I'm a bit stuck. I want a compartment where my child nodes are shown in
the same order they occur in my model. Alright, this can be achieved by
setting "List Layout" to true. But some of the child nodes should have
to be resizable and I need some drag-and-drop functionality to rearrange
the child nodes (preferably with a neat animation that makes place for
my moved child). This drag-and-drop action should of course be reflected
to the model.

What is the best (read least effort ;)) to achieve this.

Kind Regards,
Gregory
Re: Ordered Compartment with drag-and-drop functionality [message #149426 is a reply to message #149418] Thu, 06 September 2007 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi Gregory,

I would start by using a FlowLayout. Did you try this before?
(Set "List Layout" to false and add a FlowLayout to the compartment in
gmfgraph.)

Cheers,
Nicolai


--

I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo
Re: Ordered Compartment with drag-and-drop functionality [message #149454 is a reply to message #149426] Fri, 07 September 2007 05:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gregory.vanseghrboeck.intec.ugent.be

Hey Nicolai,

I've set the "Layout Type" of my Compartment's "Figure Viewmap" to
FLOW_LAYOUT, but this doesn't change anything in the code.
Setting "List Layout" to false allows me to physically move the child
nodes, but this doesn't change the order in the model.

Regards,
Gregory

Nicolai Kamenzky wrote:
> Hi Gregory,
>
> I would start by using a FlowLayout. Did you try this before?
> (Set "List Layout" to false and add a FlowLayout to the compartment in
> gmfgraph.)
>
> Cheers,
> Nicolai
>
>
Re: Ordered Compartment with drag-and-drop functionality [message #149458 is a reply to message #149454] Fri, 07 September 2007 06:49 Go to previous message
Eclipse UserFriend
I just tried it myself and realized that it only works for figure
nodesthemselves (not for compartments).

I'm sorry I can't help you more than that since I don't know much
aboutGMF.

Hopefully someone else answers your question!

Nicolai


--

I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo
Previous Topic:Feasibility question
Next Topic:create class instances without placing them to the diagram
Goto Forum:
  


Current Time: Fri May 09 22:28:41 EDT 2025

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

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

Back to the top