[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: HowTo realize something like a multiline textfield in GMF?

Thanks, that helped. :)

Do your know how to enable text formating(like alignment right) in gmf?

And additionally if it is possible to color/underline/etc. parts of the label text?

Greetings,

   Joerg

Alex Shatalin schrieb:
Hello Ralf,

Can you please file bugzilla request asking to add multiline labels support to gmf code generation?
For now to make a label multiline you have to:
1. Modify code creating new WrappingLabel and call labelFigure.setTextWrap(true);
2. Modify generated label EditPart.getManager() to call
setManager(new TextDirectEditManager(this, WrapTextCellEditor.class, ???EditPartFactory.getTextCellEditorLocator(this)));


instead of generated:

setManager(new TextDirectEditManager(this, TextDirectEditManager.getTextCellEditorClass(this), ???EditPartFactory.getTextCellEditorLocator(this)));

-----------------
Alex Shatalin