| Summary: | Enhance DesignerSourceDropTargetListener to support resource transfers | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Java Server Faces | Reporter: | Preston Appel <preston.appel> | ||||
| Component: | UI | Assignee: | Carlin Rogers <carlin.rogers> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | preston.appel, raghunathan.srinivasan | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.3.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Preston Appel
Created attachment 200125 [details]
Patch to allow resources to be dragged to the WPE
Patch does the following/all changes are to DesignerSourceDropTargetListener:
1. Adds ResourceTransfer.getInstance() to the Transfer array that is returned from getTransfers method.
2. Adds an else if clause to the getCommand method. If ResourceTransfer.getInstance().isSupportedType(event.currentDataType)), then the code tries to adapt the file to an ITagDropSourceData and uses that in its command.
3. Adds a check for a resource transfer supported type in the dragOver method. Without this, the drop occurs at the position 0,0 in the WPE.
The patch looks good. Checked it into HEAD. Thanks for the contribution Preston. |