MultiLineLabel [message #166554] |
Tue, 01 February 2005 18:35  |
Eclipse User |
|
|
|
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 #166613 is a reply to message #166581] |
Wed, 02 February 2005 04:28  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds