mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-18 13:45:45 +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 IImportStructureProvider _provider;
|
||||
private MinimizedFileSystemElement _element;
|
||||
private boolean _isActive = false;
|
||||
private boolean _isCanceled = false;
|
||||
private volatile boolean _isActive = false;
|
||||
|
||||
public QueryAllJob(Object fileSystemObject, IImportStructureProvider provider, MinimizedFileSystemElement element){
|
||||
super("Querying All"); //$NON-NLS-1$
|
||||
|
@ -143,14 +142,12 @@ class RemoteImportWizardPage1 extends WizardResourceImportPage implements Listen
|
|||
_isActive = true;
|
||||
query(_fileSystemObject, _element, monitor);
|
||||
_isActive = false;
|
||||
|
||||
Display.getDefault().asyncExec(new Runnable(){
|
||||
public void run(){
|
||||
updateWidgetEnablements();
|
||||
selectionGroup.setAllSelections(true);
|
||||
}
|
||||
});
|
||||
|
||||
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){
|
||||
|
||||
if (monitor.isCanceled() || _isCanceled){
|
||||
if (monitor.isCanceled()){
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue