Text widget in Mac Cocoa not recognising line break [message #859573] |
Fri, 27 April 2012 13:57  |
Eclipse User |
|
|
|
I'm not sure if this is a GMF or SWT issue. I suspect that it is an SWT bug as the only code that is different between the working and non-working implementations is SWT code specifically a Text widget.
I have an RCP app based on GMF and Indigo. In the graphical editor I have a multiline label.
Multiline editing of the label works perfectly in Windows and Mac Carbon but not in Mac Cocoa.
The same problem can be seen in the GMF Logic example and the Note and Text tools.
The editing of the text is based on a WrapTextCellEditor that wraps a Text widget with style set to Multi + Wrap.
On Windows and Mac Carbon, Ctrl+Enter adds a manual line break. On Mac Cocoa, only a single line is ever displayed.
|
|
|
Re: Text widget in Mac Cocoa not recognising line break [message #867950 is a reply to message #859573] |
Tue, 01 May 2012 11:10  |
Eclipse User |
|
|
|
Hi,
If you're seeing a platform inconsistency then it's likely an swt issue.
Assuming the problem still happens with a recent build of swt (eg.-
http://download.eclipse.org/eclipse/downloads/drops/S-3.8M6-201203141800/index.php
), please log a bug report at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=SWT
, and provide a means of reproducing the root swt problem that does not
require retrieving additional dependencies like GMF, etc. The easiest
way to do this is to provide a snippet based on
http://www.eclipse.org/swt/faq.php#whatisasnippet that demonstrates the
problem.
Thanks!
Grant
On 4/27/2012 1:57 PM, CathyScott wrote:
> I'm not sure if this is a GMF or SWT issue. I suspect that it is an SWT
> bug as the only code that is different between the working and
> non-working implementations is SWT code specifically a Text widget.
>
> I have an RCP app based on GMF and Indigo. In the graphical editor I
> have a multiline label.
> Multiline editing of the label works perfectly in Windows and Mac Carbon
> but not in Mac Cocoa.
>
> The same problem can be seen in the GMF Logic example and the Note and
> Text tools.
>
> The editing of the text is based on a WrapTextCellEditor that wraps a
> Text widget with style set to Multi + Wrap.
>
> On Windows and Mac Carbon, Ctrl+Enter adds a manual line break. On Mac
> Cocoa, only a single line is ever displayed.
|
|
|
Powered by
FUDForum. Page generated in 0.07021 seconds