Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text widget in Mac Cocoa not recognising line break(Strange behaviour of label editing in Mac Cocoa)
Text widget in Mac Cocoa not recognising line break [message #859573] Fri, 27 April 2012 17:57 Go to next message
CathyScott  is currently offline CathyScott Friend
Messages: 10
Registered: July 2011
Junior Member
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 15:10 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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.
Previous Topic:Need to get the genuine xml data (not the html interpreted one)
Next Topic:Sectioned Table Reflow Scroll problem
Goto Forum:
  


Current Time: Wed Sep 23 04:39:12 GMT 2020

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

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

Back to the top