Community
Participate
Working Groups
1) Go to the breakpoints pane in the debug perspective 2) Click the J! button to add an exception 3) In the progress dialog, click cancel. The progress dialog closes immediately 4) Eventually the exception list comes up, it ignored the cancelation request. It should either honour the cancellation request or diable the cancel button (when calling ProgressMonitorDialog.run pass false for the canceleable parameter).
I am not sure if this can be made more responsive, but the cancelling should be handled in the JobManager for the SearchEngine. Moving to JCORE.
The JobManager uses the progress monitor passed into the result collector (the job holds onto it). Maybe it should check more often, like when doing match locating. However, the resultCollector.done() is called even if the operation was canceled, is this the problem ? The collector should check at this point, if it was canceled.
Back to JDT-Debug for further investigation.
Fixed the AddExceptionDialog to honor the cancel of the progress monitor dialog. Please verify.
Verified. The dialog still flashes (appears & disappears quickly), but that is the best we can do without doing some overriding of the "open" method in the dialog/window hierarchy. Since this is not a common case, suggest leaving the implementatin as is.