Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » collapsed compartment label
collapsed compartment label [message #479985] Thu, 13 August 2009 11:10 Go to next message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
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 11:26 Go to previous messageGo to next message
Nikola Milikic is currently offline Nikola MilikicFriend
Messages: 10
Registered: July 2009
Junior Member
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 12:50 Go to previous messageGo to next message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
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 13: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 14:01 Go to previous messageGo to next message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
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 09:30 Go to previous messageGo to next message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
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 15:47 Go to previous message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
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: Sat Sep 22 21:36:43 GMT 2018

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

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

Back to the top