Determine scheduling rule for file deletion in the background
commit12ac5aa8ff6cb22d3ed7e85320657c447571a8fd
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 22 Aug 2020 15:24:58 +0000 (22 17:24 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sat, 22 Aug 2020 15:24:58 +0000 (22 17:24 +0200)
tree295ed210ad64b0e3ff46887660779221350c679c
parent2ae6ad5a728c6b5d97773e9ce2ab4564aa6f791c
Determine scheduling rule for file deletion in the background

Move the computation of the scheduling rule off the UI thread. Do it
once we _are_ in the background thread; since the operation runs in
an IWorkspaceRunnable anyway there's no need to schedule the job
already with that rule.

Bug: 566256
Change-Id: I22fcd121b1a710713b98b80e2a8c41c179fe9077
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/operations/DeletePathsOperationUI.java