-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialize cause of some InterruptedExceptions #1301
Initialize cause of some InterruptedExceptions #1301
Conversation
Test Results 899 files - 1 899 suites - 1 35m 20s ⏱️ - 29m 57s For more details on these failures and errors, see this check. Results for commit eae8d35. ± Comparison against base commit 2670545. ♻️ This comment has been updated with latest results. |
The check failures don't seem to be related to my changes since I haven't changed any API. |
it's tycho problem, see eclipse-tycho/tycho#3019 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that the existing exception handling in WorkspaceModifyOperation
is not correct, but the fix does seem to solve the problem completey (see my detailed comment).
I do not understand the reason for all the other changes, like I have argued for the according changes to the platform repository here.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyOperation.java
Outdated
Show resolved
Hide resolved
6ec5b2c
to
b6c33cd
Compare
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyOperation.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyOperation.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyOperation.java
Show resolved
Hide resolved
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyOperation.java
Outdated
Show resolved
Hide resolved
12615e9
to
5b150d4
Compare
bundles/org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/deferred/LazySortedCollection.java
Outdated
Show resolved
Hide resolved
...lipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/FileSystemExportOperation.java
Outdated
Show resolved
Hide resolved
...de/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.java
Outdated
Show resolved
Hide resolved
5b150d4
to
1b57e20
Compare
I reverted some changes, I hope it's looking good now @HeikoKlare ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good to me now.
1b57e20
to
0f77e30
Compare
Pack an OperationCanceledException inside the InterruptedException when this is thrown due to the user canceling an operation. This makes it easier to determine the cause of the InterruptedException from outside the methods (i.e. in the catch-clauses). Adapt the method ModalContext::checkCanceled accordingly. Change WorkspaceModifyOperation::run so it preserves the original exceptions if possible. Same idea as eclipse-platform#1259
0f77e30
to
eae8d35
Compare
Pack an
OperationCanceledException
inside theInterruptedException
when this is thrown due to the user canceling an operation. This makes it easier to determine the cause of theInterruptedException
from outside the methods (i.e. in the catch-clauses). Adapt the methodModalContext::checkCanceled
accordingly. LetWorkspaceModifyOperation::run
use the originalOperationCanceledException
if provided and only create a new one as a fallback.Same idea as #1259