mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-23 16:23:52 +02:00
[219792][importexport][ftp] RSE hangs on FTP import
This commit is contained in:
parent
1c27be0cb4
commit
af25ae2828
1 changed files with 3 additions and 10 deletions
|
@ -128,8 +128,7 @@ class RemoteImportWizardPage1 extends WizardResourceImportPage implements Listen
|
||||||
private Object _fileSystemObject;
|
private Object _fileSystemObject;
|
||||||
private IImportStructureProvider _provider;
|
private IImportStructureProvider _provider;
|
||||||
private MinimizedFileSystemElement _element;
|
private MinimizedFileSystemElement _element;
|
||||||
private boolean _isActive = false;
|
private volatile boolean _isActive = false;
|
||||||
private boolean _isCanceled = false;
|
|
||||||
|
|
||||||
public QueryAllJob(Object fileSystemObject, IImportStructureProvider provider, MinimizedFileSystemElement element){
|
public QueryAllJob(Object fileSystemObject, IImportStructureProvider provider, MinimizedFileSystemElement element){
|
||||||
super("Querying All"); //$NON-NLS-1$
|
super("Querying All"); //$NON-NLS-1$
|
||||||
|
@ -143,14 +142,12 @@ class RemoteImportWizardPage1 extends WizardResourceImportPage implements Listen
|
||||||
_isActive = true;
|
_isActive = true;
|
||||||
query(_fileSystemObject, _element, monitor);
|
query(_fileSystemObject, _element, monitor);
|
||||||
_isActive = false;
|
_isActive = false;
|
||||||
|
|
||||||
Display.getDefault().asyncExec(new Runnable(){
|
Display.getDefault().asyncExec(new Runnable(){
|
||||||
public void run(){
|
public void run(){
|
||||||
updateWidgetEnablements();
|
updateWidgetEnablements();
|
||||||
selectionGroup.setAllSelections(true);
|
selectionGroup.setAllSelections(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,13 +157,9 @@ class RemoteImportWizardPage1 extends WizardResourceImportPage implements Listen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void canceling() {
|
|
||||||
_isCanceled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void query(Object parent, MinimizedFileSystemElement element, IProgressMonitor monitor){
|
private void query(Object parent, MinimizedFileSystemElement element, IProgressMonitor monitor){
|
||||||
|
|
||||||
if (monitor.isCanceled() || _isCanceled){
|
if (monitor.isCanceled()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue