Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 275117

Summary: Link widget does not support SWT.WRAP
Product: [RT] RAP Reporter: Elias Volanakis <elias>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan, mknauer
Version: 1.2   
Target Milestone: 1.3 M1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Sample project
none
Proposed patch
none
Proposed patch
none
Proposed patch
none
Proposed patch none

Description Elias Volanakis CLA 2009-05-06 04:03:58 EDT
Created attachment 134586 [details]
Sample project

The Link widget in RAP does wrap with SWT.WRAP (it rhymes ;-)

In RCP it does wrap.

The attached example can be used to reproduce.
Comment 1 Asen Draganov CLA 2009-05-29 08:56:34 EDT
Created attachment 137634 [details]
Proposed patch

New client implementation of Link, that supports native wrapping, as in SWT. There is no need of SWT.WRAP style flag, because the link wraps always.
Comment 2 Elias Volanakis CLA 2009-05-30 15:44:47 EDT
Asen,

thanks for the patch. The wrapping works :-). 

One issue with the patch: Double clicking on the 'linked' part of the link, will select the word underneath. This should not happen, since it does match the behavior in RCP.

BTW: Is this going into the next RC?

Kind regards,
Elias.
Comment 3 Asen Draganov CLA 2009-06-01 07:48:22 EDT
Created attachment 137829 [details]
Proposed patch

New patch is attached. The problem, reported by Elias is fixed.
My understanding is that this won't be included in the next RC, but please ask Rüdiger for more information.
Comment 4 Asen Draganov CLA 2009-06-01 07:49:08 EDT
Created attachment 137830 [details]
Proposed patch

New patch is attached. The problem, reported by Elias is fixed.
My understanding is that this won't be included in the next RC, but please ask Rüdiger for more information.
Comment 5 Rüdiger Herrmann CLA 2009-06-02 06:03:48 EDT
(In reply to comment #2)
> [ ... ]
> 
> BTW: Is this going into the next RC?

To fix this bug, the client-side implementation of the Link widget had to be reworked completely.
Therefore, it is too risky make these changes in a RC. The code will be available in 1.3M1.
Comment 6 Elias Volanakis CLA 2009-06-02 13:55:51 EDT
Thanks - updated patch works great! :-)
Comment 7 Elias Volanakis CLA 2009-06-04 12:48:05 EDT
Asen,

can you provide an updated patch against HEAD ?

Thanks,
Elias.
Comment 8 Asen Draganov CLA 2009-06-05 02:13:56 EDT
Created attachment 138371 [details]
Proposed patch

Updated patch against CVS HEAD is attached.
Comment 9 Elias Volanakis CLA 2009-06-26 15:54:43 EDT
Is to possible to have this go into the 1.3M1 Target Milestone?
Comment 10 Rüdiger Herrmann CLA 2009-06-28 05:32:57 EDT
Sure, that was the plan anyway.
Just the target milestone assignment was missing. Thanks for reminding.
Comment 11 Rüdiger Herrmann CLA 2009-06-30 18:19:59 EDT
Applied patch to CVS HEAD