Skip to content

Why isn't it possible to send a cancel request to a JobGroup by calling IProgressMonitor::setCanceled from one of its Jobs? #654

Answered by fedejeanne
fedejeanne asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply: I provided a PR to fix the first issue (#666) i.e. cancelation of the jobs when canceling the whole progress group.

Regarding the second issue (cancelation of "sibling jobs") IMO the desired behavior wasn't really specified in the JavaDocs and I think I know why: in the UI, jobs in a group are bundled together in the same ProgressInfoItem ...

... and the cancelation occurs via the method org.eclipse.ui.internal.progress.ProgressInfoItem.cancelOrRemove(), which calls org.eclipse.ui.internal.progress.GroupInfo.cancel().
https://github.com/eclipse-platform/eclipse.platform.ui/blob/73307cb811a2dbdc8023522e1fda6fcee6dba4d0/bundles/org.eclipse.ui.workbench/Eclipse%20U…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

fedejeanne
Sep 4, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

fedejeanne
Sep 11, 2023
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by fedejeanne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants