Skip to main content



      Home
Home » Eclipse Projects » GEF » MultiLineLabel
MultiLineLabel [message #166554] Tue, 01 February 2005 18:35 Go to next message
Eclipse UserFriend
Hi,

in my figure I want to use something like a label but showing multiple
lines. I found org.eclipse.draw2d.widgets.MultiLineLabel, but I'm not quite
sure how I would use it in my figure since it requires a composite as
parameter...

It'd be nice if there was something that could be used like
org.eclipse.draw2d.Label on which I could use direct editing - kinda like a
multi line label, showing "..." if there's insufficient space and a
scrollbar-box on direct editing.

Is there anything I could use for that?

Thanks in advance!

Fabian
Re: MultiLineLabel [message #166581 is a reply to message #166554] Tue, 01 February 2005 21:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bo.n0spam.majewski.com

> It'd be nice if there was something that could be used like
> org.eclipse.draw2d.Label on which I could use direct editing - kinda like a
> multi line label, showing "..." if there's insufficient space and a
> scrollbar-box on direct editing.

Take a look at the org.eclipse.gef.examples.logicdesigner.edit package
(Logic Diagram Editor example) and in particular LogicLabelEditPart,
LogicLabelEditPolicy, LogicLabelEditManager. The provide inline editing
for StickyNoteFigure, which allows text wrapping. It does not show the
"...", but it has multi-line direct editing.
Re: MultiLineLabel [message #166613 is a reply to message #166581] Wed, 02 February 2005 04:28 Go to previous message
Eclipse UserFriend
Bo Majewski wrote:

>> It'd be nice if there was something that could be used like
>> org.eclipse.draw2d.Label on which I could use direct editing - kinda like
>> a multi line label, showing "..." if there's insufficient space and a
>> scrollbar-box on direct editing.
>
> Take a look at the org.eclipse.gef.examples.logicdesigner.edit package
> (Logic Diagram Editor example) and in particular LogicLabelEditPart,
> LogicLabelEditPolicy, LogicLabelEditManager. The provide inline editing
> for StickyNoteFigure, which allows text wrapping. It does not show the
> "...", but it has multi-line direct editing.

Thanks a lot! That was what I was looking for,... and by the way, here it
shows the "..." ;)

Fabian
Previous Topic:How to import beans from a jar to a palette automatically?
Next Topic:draw2d and text anti-aliasing
Goto Forum:
  


Current Time: Sat Jun 21 14:17:39 EDT 2025

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

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

Back to the top