Community
Participate
Working Groups
Build ID: I20090313-0100 Steps To Reproduce: 1. In the "Install New Software" dialog, 2. check an arbitrary component and click on "Next >". The status says "Calculating requirements and dependencies". 3. Click the "Cancel" button at different points of progress (as seen in the progressmeter) Up to a progress of ~50%, the current operation is being cancelled, just as expected. However, from that point on (50%+), the "Cancel button becomes unpredictable: In some cases the whole dialog is being closed. In other cases, clicking the "Cancel" button is ignored and the dialog proceeds to the next step. More information: I couldn't come up with an explanation in which cases either of the two unexpected behaviours occurs. However, in my standard Eclipse install, the former happens when checking "PDT SDK Feature", the latter when checking "PDT Runtime feature", which seems a bit mysterious, but might have a reason.
In bug 216278 there is a patch that merges the code for transports. In the merged implementation care has been taken to ensure that the correct monitor is passed around to the communication layer. Not sure this fixes all aspects of the issue reported there, but please try again after the patch in bug 216278 is released.
The difference in behavior could also be explained by having some place in the code not checking for the cancelled exception.
I just tried reproducing in I20090407-1430 and this problem seems to be fixed by the repository merge mentioned in comment #1. Calculating dependencies for either PDT SDK or Runtime feature cancels promptly and the dialog never closes. It is possible that cancelation very close to the end of calculation will not cancel, but this is normal cancel behaviour in Eclipse - if the operation is done or almost done, the cancelation is ignored. Please reopen if you can reproduce a problem in I20090407-1430 or later.