Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » collapsed compartment label
collapsed compartment label [message #479985] Thu, 13 August 2009 07:10 Go to next message
Eclipse UserFriend
does anyone know a way of displaying a label in a collapsed compartment?

e.g.

___________________
Node Label
___________________
> compartment label
___________________


Thanks in advance,
Gary
Re: collapsed compartment label [message #479990 is a reply to message #479985] Thu, 13 August 2009 07:26 Go to previous messageGo to next message
Eclipse UserFriend
I think you could look at mindmap example.

http://wiki.eclipse.org/GMF_Tutorial_Part_2

Regards,
Nikola
Re: collapsed compartment label [message #480007 is a reply to message #479990] Thu, 13 August 2009 08:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi, thanks for your reply.
I've already taken a look at these demos, and they don't do it the way I
need!

...These are simply nodes with a label and then the compartment below
them, the compartment itself doesn't have a label!

THE PROBLEM:
- I can't put the label outside the compartment because that looks a
mess, and its not clear that the label belongs to the compartment.
- I can't put the label inside the compartment because when it is
collapsed you can't see it.

I simply need to set a label that is displayed at the side of the arrow
which is used to collapse and expand the compartment so you know what the
compartment is for.

Any Ideas?
Thanks in advance,
Gary
Re: collapsed compartment label [message #480014 is a reply to message #480007] Thu, 13 August 2009 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

Hi Gary,

In your gmfgraph, when you defined your compartment :
just set the properties "name" with the nam eyou want and the "needs title" to true.

Aurelien Pupier

Gary a écrit :
> Hi, thanks for your reply.
> I've already taken a look at these demos, and they don't do it the way I
> need!
>
> ..These are simply nodes with a label and then the compartment below
> them, the compartment itself doesn't have a label!
>
> THE PROBLEM:
> - I can't put the label outside the compartment because that looks a
> mess, and its not clear that the label belongs to the compartment.
> - I can't put the label inside the compartment because when it is
> collapsed you can't see it.
>
> I simply need to set a label that is displayed at the side of the arrow
> which is used to collapse and expand the compartment so you know what
> the compartment is for.
>
> Any Ideas?
> Thanks in advance,
> Gary
>
Re: collapsed compartment label [message #480024 is a reply to message #480014] Thu, 13 August 2009 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi, thanks for your reply
That dosent seam to work, is there anything I need to add in my .gmfmap to
get it to work or should that be it?
Thanks,
Gary
Re: collapsed compartment label [message #480175 is a reply to message #480014] Fri, 14 August 2009 05:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi does anyone have any ideas why I can't get this to work?

I have tried setting the name attribute and the needs title attribute to
true on my compartment and this doesn't work!

Thanks in advance,
Gary
Re: collapsed compartment label [message #480271 is a reply to message #480175] Fri, 14 August 2009 11:47 Go to previous message
Eclipse UserFriend
Hi, fixed it!
There must have been a problem in code generation because I rebuilt my
nodes and re-generated and it was ok!

Thanks for all your help,
Gary
Previous Topic:Help ! who can help me , how to get the ShapeCompartmentEditPart coordinate
Next Topic:Overlapping connectors
Goto Forum:
  


Current Time: Wed Jul 23 13:46:54 EDT 2025

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

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

Back to the top