Wrapped external labels (again) [message #120612] |
Thu, 19 April 2007 06:17 |
Eclipse User |
|
|
|
Hi,
I'm trying to allow external labels to be wrapped.
For internal labels, this is straightforward, i.e. adding setWrapText(true)
when you create the label, however for an external label, this doesn;t seem
to work.
I've seen that Alex wrote:
"So, AFAIU you have to modify generated code and this is mostly a question
to the runtime team. I think you should just call setTextWrap(true) for
WrapLabel
figure visualizing text after it's creation. See:
TextDirectEditManager.getTextCellEditorClass()."
but I can't quite work out where the code needs to go:
In my example I have:
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
..getTextCellEditorClass(this),
WrappedLabel.diagram.edit.parts.WrappedLabelEditPartFactory
..getTextCellEditorLocator(this)));
}
return manager;
}
which seems the right place, but any hints on where to add the
setWrappedText
call?
Andy
|
|
|
Powered by
FUDForum. Page generated in 0.03744 seconds