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

Bug 367841

Summary: BPELTextTransferDropTargetListener blocks additional DropListeners
Product: z_Archived Reporter: Mickael Istria <mistria>
Component: BPELAssignee: Project Inbox <bpel.default-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bbrodt, vincent.zurczak
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch that makes BPELTextTransferDropTargetListener disabled when necessary bbrodt: iplog+

Description Mickael Istria CLA 2012-01-04 08:06:06 EST
BPELTextTransferDropTargetListeners.isEnabled always returns true, even with it is in error or if it does not support the dragSource.
Then, if one provides additional listeners to the viewer, they won't be used since the BPELTextTransferDropTargetListener always handles (badly) the DND.

BPELTextTransferDropTargetListener should be fixed in order to get the isEnabled method returning false when the BPELTextTransferDropTargetListener cannot perform the drop.
Comment 1 Mickael Istria CLA 2012-01-04 08:07:20 EST
We have this use case for PetalsStudio, and it prevent us from adding DropListeners (by adding a WorkbenchPartListener to add DropListeners when opening a bPELEditor).
Comment 2 Mickael Istria CLA 2012-01-04 08:11:21 EST
Created attachment 209000 [details]
Patch that makes BPELTextTransferDropTargetListener disabled when necessary

This patch fixes the "createRequest" to ask isEnabled to check for command enablement in case of error. Since the request is incomplete (missing factory), the created command is not executable and isEnabled returns false.

This fixes this blocking bug for our use case.
Comment 3 Vincent Zurczak CLA 2012-01-05 11:24:58 EST
The patch was applied on the master branch.