This is a follow up on:
http://www.netbeans.org/issues/show_bug.cgi?id=83495
Cancelling the PL dialog that pops up when a Web Service is DnDed on the BPEL
diagram should rollback to the state before the gesture.
This is not happening as copied files (and perhaps other artifacts) are left in
the BPEL project.

I recommend we waive this for this release. We have other more important issues
to focus on in my opinion. Use case for canceling the DnD should be fairly rare
and the obvious workaround is for user to simply delete the new folder that was
created by the DnD. This is not a difficult or obscure workaround. Automatically
removing the files will requre a higher understanding of the pre DnD state than
we currently have at our disposal.

Recommend documentation contain note to effect that
"The DnD of references ( wsdl file, or Web Service node) from one NetBeans
project onto a BPEL Module diagram causes several effects to take place. These
effects include the automated "retrieval" of the dragged source object's WSDL
file(s). Cancelation of the DnD operation does not roll back the retrieval of
these files(s). If these files are not needed by the project, simply delete
these files manually from the project explore tab, as you would delete any other
project resource."

Added to NetBeans Enterprise Pack 5.5 Release Notes as follows:
IDE does not roll back the retrieval of the WSDL files(s) after you cancel the
PartnerLink dialog. Description: If you cancel the PartnerLink dialog that
appears when you drag a WSDL file or a Web Service node from a NetBeans project
onto a diagram, the IDE does not roll back the retrieval of the WSDL files(s).
Workaround: If these files are not needed by the project, simply delete them
manually from the Projects window, as you would delete any other project resource.
(http://nbstaging.czech/community/releases/55/entpack_relnotes.html#84622)

I believe, this problem comes from the fact, that we have 2 heavy-weight actions on one user gesture:
1. retrieving wsdl files to our project and
2. adding PL to diagram.
1st step is hard to rollback because it it involves copying a lot of files and some of them may override old versions.
Rolling back such operations is impossible if we don't have support from filesystem level. Also there is another problem
with this step: user is poorly informed about what goes on behind the scene - were dropped files actually copied or just
linked and where we store them locally.
The logical solution for me is to separate these 2 steps: First user should drag wsdl or EJB WS node and drop it on a
folder inside current project. This will invoke retriever and user will see new wsdl and auxiliary files to appear in
the folder where they were dropped. User will get a chance to go and take a look what kind of definitions are stored in
retrieved files and what needs to be created to make these files usable in our bpel process.
Then user can drag this wsdl from project folder to diagram. This will result in PL customizer dialog to appear and new
PL created.
Old gesture(dropping wsdls to diagram directly) will be interpreted as "create PL by adding reference", if wsdl was
dragged across the project boundaries, we will use catalog and project dependencies to access it later.
p.s. Doing so we also will fix 124234.

Fix Rejected -
After draging the Web Service on to the swimlane, two things are current done:
a) the PartnerLink editor is displayed for "Ok" or "Cancel".
b) the WSDL is stored as a "Referenced Resource" in the new project.
If the user clicks "Cancel", the Referenced Resource is not removed, and the project is not rolled back to its original
state.
[QA suspects that the Referenced Resource addition to the project should be added only after "Ok" at the PartnerLink
editor.]

Behaviour is correct:
When user drag and drop a Web Service from EJB module on BPEL diagram,
referenced resource to the service is created and only after that the PL
dialog is shown.
Adding of the referenced resource is the result of drop action and can't
be rolled back. The referenced resource must be created before the PL
dialog to be shown in the whole list of services. The PL dialog can't
roll back the referenced resources.