Community
Participate
Working Groups
Hi, I just tried to use TYPE_MULTILINETEXT for direct editing. Unfortunately, it does exactly the same as TYPE_TEXT; i.e. is not multiline! Whenever you hit the return key it stops editing rather than starting a new line. Naturally, I would expect this to open a multiline editor.
That's the default way JFace and GEF/Draw2D handle that. You can use Shift+Return to reach a new line and introduce a line break (same behaviour as e.g. in Excel).
What's the point of TYPE_MULTILINETEXT then? Why not just have TYPE_TEXT? Regardless of what other packages have done, I don't see how this is a good way to support multi-line editing.
(In reply to comment #2) > What's the point of TYPE_MULTILINETEXT then? Why not just have TYPE_TEXT? The difference is that TYPE_TEXT does not support multi line input at all, while TYPE_MULTILINETEXT does. > Regardless of what other packages have done, I don't see how this is a good way > to support multi-line editing. If there is a way to overrule the underlying frameworks we can offer that option of course, but I don't see jow to do that.
Thanks Michael; I see now that TYPE_TEXT doesn't support shift-enter. My problem is that I don't think it will be obvious to my users how they are supposed to enter multi-line text. At least I understand what is happening now. Regards, Adrian.