Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Display diagram title
Display diagram title [message #224655] Wed, 18 October 2006 01:15 Go to next message
Eclipse UserFriend
Originally posted by: novs.gmx.net

Hi

My gef editor supports two different views of the model by using
setContents(). Is there a way to display a label in the top left corner of
each diagram ? I tried getFigure().add() in the diagram editpart but it
didn't work.

Thanx

Rick
Re: Display diagram title [message #224663 is a reply to message #224655] Wed, 18 October 2006 01:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sundaolin.126.com

What is the layoutManager of the figure?
If its a freeformlayout,then you should not only call the
getFigure.add(),but also the
getFigure().setConstraint(figure,constraint);The parameter figure here
is the title you want,it may be a Label or other figure you like.

you can also use the titlebarBorder,but it seems that the title is on
the top of the figure,not the top left.


Rick Markov 写道:
> Hi
>
> My gef editor supports two different views of the model by using
> setContents(). Is there a way to display a label in the top left corner
> of each diagram ? I tried getFigure().add() in the diagram editpart but
> it didn't work.
>
> Thanx
>
> Rick
>
Re: Display diagram title [message #224743 is a reply to message #224663] Wed, 18 October 2006 20:04 Go to previous message
Eclipse UserFriend
Originally posted by: novs.gmx.net

Thanks, that did it :)
Previous Topic:How to put a TextField in a ToolBar?
Next Topic:GEF for text editing
Goto Forum:
  


Current Time: Fri Apr 19 06:12:31 GMT 2024

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

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

Back to the top