| Summary: | [DND] Allow ViewerDropAdapter to set the default operation | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Benno Baumgartner <benno.baumgartner> | ||||||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | daniel_megert, tom.schindl | ||||||||
| Version: | 3.3 | Keywords: | helpwanted | ||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | stalebug | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Benno Baumgartner
Created attachment 74689 [details]
fix
None breaking API change in ViewerDropAdapter
The whole DnD story is going to get some scrutiny during 3.4...including upgrades to at least the ViewDropAdapter. I'm working with STW to ensure that I have the infrastructure to, for example, allow -discreet- additions to the drop handling to take place (i.e. letting me at least create a proper delegating adapter with perhaps some of the work done by SWT). I see. JDT UI just went through its code to get rid of copied classes. The attached patch would allow us to finish that work no matter what you guys plan to do with 3.4. Did you look at the patch? Is something wrong with it? You could still add the usual disclaimer that the API is provisional until 3.4 API freeze. Created attachment 74905 [details]
fix
Better method name and better javadoc.
Erich, I'm in the process of bringing JDTs DnD support up-to-date. I'm therefor very interested in the changes SWT/Platform are going to make in 3.4. Let me know if I can help/early adopt. For the moment the proposed patch is what I would need because I want to have as much code as possible in the platform, for obvious reasons. Would it be possible to review/release this patch? Thanks There is also a bug in ViewerDropAdapter: The line currentLocation = determineLocation(event); should be added to dragEnter, before doDropValidation otherwise getCurrentLocation can return 0 when called in the drop validation code, which is not a valid value. Created attachment 76108 [details] fix Newest patch containing the bug fix and the drag sources supported operations are now passed into determineOperation. See Bug 199023 for the reason. Thanks Benno, this is one of the first areas that I'll be attacking (since it involves API changes). This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |