|
|
|
|
|
|
|
Re: HowTo realize something like a multiline textfield in GMF? [message #235834 is a reply to message #235749] |
Thu, 09 July 2009 11:26  |
Eclipse User |
|
|
|
Hi,
after some additional changes I am stuck at the point where GMF takes
over control ... and tries to cast to
org.eclipse.swt.custom.StyledText cannot be cast to
org.eclipse.swt.widgets.Text at
org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManag er.setEditText(TextDirectEditManager.java:468)
[...]
Maybe it is a good idea to support directly StyledText instead of Text
for labels?
Greetings,
Ralf
Ralf Buschermoehle wrote:
> Hi Alex,
>
> Alex Shatalin wrote:
>
>> Concerning rich text formatting in label - there is no such a control
>> in GEF/GMF AFAIK.
>
> I tried using StyledText (instead of Text) in
>
> /**
> * A cell editor that manages a text entry field.
> * The cell editor's value is the text string itself.
> * <p>
> * This class may be instantiated; it is not intended to be subclassed.
> * </p>
> * @noextend This class is not intended to be subclassed by clients.
> */
> public class (now: Styled) TextCellEditor extends CellEditor {
>
> /**
> * The text control; initially <code>null</code>.
> */
> protected StyledText text; <--
>
> private ModifyListener modifyListener;
>
> .... with corresponding changes is TextCellEditorEx.java and
> WrapTextCellEditor.java. Unfortunately a can't edit the created
> StyledTextControl.
>
> Any Hints?
>
> Greetings,
>
> Ralf
|
|
|
Powered by
FUDForum. Page generated in 0.05179 seconds