| Summary: | [CommonNavigator] Exception when dropping non-resource object on editor | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Christian Georgi <christian.georgi> | ||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, emoffatt, manuel.bork, remy.suen | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Christian Georgi
Created attachment 179119 [details]
Exception while dropping
Note that when the source is the 'Package Explorer' view, the drop is denied. Hi Remy, no, that's not true for referenced class files (e.g. class files included in the JRE System Library or in other jars contained in the Referenced Libraries container). When DnD these files from the Package Explorer a Class File Editor is opened. When DnD from the Project Explorer the exception is thrown. It seems that unpacking the event's data is not possible. (In reply to comment #3) > no, that's not true for referenced class files (e.g. class files included in > the JRE System Library or in other jars contained in the Referenced Libraries > container). Manuel, my comment 2 was referring to the drag of the 'JRE System Library' tree node, which Christian mentions in the provided steps of comment 0, not the class files. (In reply to comment #4) > Manuel, my comment 2 was referring to the drag of the 'JRE System Library' tree > node, which Christian mentions in the provided steps of comment 0, not the > class files. Ah, I see. Yes, dropping the JRE System Library is not allowed when using the Package Explorer :). When dragging the "JRE System Library" or a class from in it from the Project explorer, in Kepler org.eclipse.ui.internal.ide.EditorAreaDropAdapter.asyncDrop(DropTargetEvent, IWorkbenchPage) the event.currentDataType is set to 0 even though the event.dataTypes includes at least 3 (and one of them is the ResourcesTransfer). So it does nothing in Kepler, no longer assert/fail PW (In reply to Paul Webster from comment #6) > When dragging the "JRE System Library" or a class from in it from the > Project explorer, in Kepler > org.eclipse.ui.internal.ide.EditorAreaDropAdapter.asyncDrop(DropTargetEvent, > IWorkbenchPage) the event.currentDataType is set to 0 even though the > event.dataTypes includes at least 3 (and one of them is the > ResourcesTransfer). > > So it does nothing in Kepler, no longer assert/fail > > PW Yes, it does nothing, even in older versions, but it logs an exception (also in Kepler or 4.4 M3). 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. |