mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
fix for 142181 - added readAndDispatch() to allow UI to be responsive
This commit is contained in:
parent
cce0ccaf7b
commit
950d9d2f20
2 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,8 @@ Bundle-Vendor: %providerName
|
|||
Bundle-Localization: plugin
|
||||
Require-Bundle: org.eclipse.core.runtime,
|
||||
org.eclipse.rse.services,
|
||||
com.jcraft.jsch;bundle-version="[0.1.28,2.0.0)"
|
||||
com.jcraft.jsch;bundle-version="[0.1.28,2.0.0)",
|
||||
org.eclipse.swt
|
||||
Eclipse-LazyStart: true
|
||||
Export-Package: org.eclipse.rse.services.ssh,
|
||||
org.eclipse.rse.services.ssh.files,
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.eclipse.rse.services.files.IHostFile;
|
|||
import org.eclipse.rse.services.ssh.Activator;
|
||||
import org.eclipse.rse.services.ssh.ISshService;
|
||||
import org.eclipse.rse.services.ssh.ISshSessionProvider;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
|
||||
import com.jcraft.jsch.Channel;
|
||||
import com.jcraft.jsch.ChannelExec;
|
||||
|
@ -217,6 +218,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
|
|||
}
|
||||
public boolean count(long count){
|
||||
fMonitor.worked((int)count);
|
||||
while (Display.getCurrent().readAndDispatch());
|
||||
return !(fMonitor.isCanceled());
|
||||
}
|
||||
public void end(){
|
||||
|
|
Loading…
Add table
Reference in a new issue