Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Wrapped external labels (again)
Wrapped external labels (again) [message #120612] Thu, 19 April 2007 06:17
Eclipse UserFriend
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
Previous Topic:2-page Visual/Source editor
Next Topic:how to set default name for diagram elements
Goto Forum:
  


Current Time: Sat Jul 12 15:17:56 EDT 2025

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

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

Back to the top