mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
[209593] pending "dummy" nodes cached so that we don't duplicate queries
This commit is contained in:
parent
3197a368df
commit
3b89b63006
2 changed files with 38 additions and 1 deletions
|
@ -119,6 +119,7 @@ import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
|||
import org.eclipse.rse.services.files.IFileOwnerService;
|
||||
import org.eclipse.rse.services.files.IFilePermissionsService;
|
||||
import org.eclipse.rse.services.files.IHostFilePermissions;
|
||||
import org.eclipse.rse.services.files.PendingHostFilePermissions;
|
||||
import org.eclipse.rse.services.search.HostSearchResultSet;
|
||||
import org.eclipse.rse.services.search.IHostSearchConstants;
|
||||
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
|
||||
|
@ -1344,6 +1345,10 @@ public class SystemViewRemoteFileAdapter
|
|||
}
|
||||
};
|
||||
deferredFetch.schedule();
|
||||
if (file instanceof RemoteFile){
|
||||
// using pending host file permssions as dummy until we have the real thing
|
||||
((RemoteFile)file).setPermissions(new PendingHostFilePermissions());
|
||||
}
|
||||
return FileResources.MESSAGE_PENDING;
|
||||
}
|
||||
}
|
||||
|
@ -1385,6 +1390,11 @@ public class SystemViewRemoteFileAdapter
|
|||
}
|
||||
};
|
||||
deferredFetch.schedule();
|
||||
|
||||
if (file instanceof RemoteFile){
|
||||
// using pending host file owner as dummy until we have the real thing
|
||||
((RemoteFile)file).setOwner("Pending"); //pending for now
|
||||
}
|
||||
return FileResources.MESSAGE_PENDING;
|
||||
}
|
||||
}
|
||||
|
@ -1423,6 +1433,10 @@ public class SystemViewRemoteFileAdapter
|
|||
}
|
||||
};
|
||||
deferredFetch.schedule();
|
||||
if (file instanceof RemoteFile){
|
||||
// using pending host file owner as dummy until we have the real thing
|
||||
((RemoteFile)file).setGroup("Pending"); //pending for now
|
||||
}
|
||||
return FileResources.MESSAGE_PENDING;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2008 IBM Corporation. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Initial Contributors:
|
||||
* The following IBM employees contributed to the Remote System Explorer
|
||||
* component that contains this file: David McKnight.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
********************************************************************************/
|
||||
package org.eclipse.rse.services.files;
|
||||
|
||||
public class PendingHostFilePermissions extends HostFilePermissions {
|
||||
|
||||
public PendingHostFilePermissions()
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue