| Summary: | Carbon: DnD fails when dropping object to a child control. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Hiroyuki Okamoto <hokamoto> | ||||||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | hokamoto, mukund, raji, robin.howlett, Silenio_Quarti | ||||||||
| Version: | 3.5 | ||||||||||
| Target Milestone: | 3.6.1 | ||||||||||
| Hardware: | Macintosh | ||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Hiroyuki Okamoto
Created attachment 167857 [details]
Snippet to reproduce this issue.
Steps to reproduce:
1. Run the snippet - X.java
2. Drag the left label
3. Drop to the right Text control.
4. DropTarget.FindDropTarget() returns null, and fails to drop the obj. (that's the bug.)
Thanks,
Hiro
Created attachment 167858 [details]
proposed patch
Please review this proposed patch.
Thanks,
Hiro
Silenio, can you give us your input on the proposed patch? Silenio, could you review the proposed patch at least ? Our product needs to fix this issue asap. so if the patch looks ok, our product is going to merge it in our swt asap. Thanks, Hiro Created attachment 168556 [details]
fix
Sorry about the delay. We are quite busy with the 3.6 end game.
This should be the fix. Same idea, but it uses OS calls to get parent instead of Control.getParent().
Thanks Silenio. Thank you Silenio! We will test the fix with our product and let you know the result. Thanks, Hiro We verified the fix works with our product. Thanks! Silenio, can you include this in 3.6.1? Fix has been release to R3_6_maintenance and HEAD. |