mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
[168366] changing the SystemDNDTransferRunnable to a WorkspaceJob rather than a Job so that it can handle the resource locking
This commit is contained in:
parent
5604dedce9
commit
26b427d43a
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
|
import org.eclipse.core.resources.WorkspaceJob;
|
||||||
import org.eclipse.core.runtime.IAdaptable;
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
@ -54,7 +55,7 @@ import org.eclipse.ui.progress.UIJob;
|
||||||
* Runnable to perform actual transfer operation.
|
* Runnable to perform actual transfer operation.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SystemDNDTransferRunnable extends Job
|
public class SystemDNDTransferRunnable extends WorkspaceJob
|
||||||
{
|
{
|
||||||
|
|
||||||
public static final int SRC_TYPE_RSE_RESOURCE = 0;
|
public static final int SRC_TYPE_RSE_RESOURCE = 0;
|
||||||
|
@ -533,7 +534,7 @@ public class SystemDNDTransferRunnable extends Job
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IStatus run(IProgressMonitor monitor)
|
public IStatus runInWorkspace(IProgressMonitor monitor)
|
||||||
{
|
{
|
||||||
|
|
||||||
_ok = true;
|
_ok = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue