1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 21:35:40 +02:00

[374681] Incorrect number of children on the properties page of a directory

This commit is contained in:
David McKnight 2012-09-05 15:46:11 +00:00
parent eaef0e09b7
commit 38cb52b5a7
3 changed files with 14 additions and 6 deletions

View file

@ -78,6 +78,7 @@
* David McKnight (IBM) - [363490] PHP files opening in system editor (Dreamweaver) * David McKnight (IBM) - [363490] PHP files opening in system editor (Dreamweaver)
* Rick Sawyer (IBM) - [376535] RSE does not respect editor overrides * Rick Sawyer (IBM) - [376535] RSE does not respect editor overrides
* David McKnight (IBM) - [389838] Fast folder transfer does not account for code page * David McKnight (IBM) - [389838] Fast folder transfer does not account for code page
* David Mcknight (IBM) - [374681] Incorrect number of children on the properties page of a directory
*******************************************************************************/ *******************************************************************************/
package org.eclipse.rse.internal.files.ui.view; package org.eclipse.rse.internal.files.ui.view;
@ -755,7 +756,7 @@ public class SystemViewRemoteFileAdapter
IRemoteFile originalFile = file; IRemoteFile originalFile = file;
if (ss instanceof RemoteFileSubSystem){ if (ss instanceof RemoteFileSubSystem){
IRemoteFile cachedFile = ((RemoteFileSubSystem)ss).getCachedRemoteFile(file.getAbsolutePath()); IRemoteFile cachedFile = ((RemoteFileSubSystem)ss).getCachedRemoteFile(file.getAbsolutePath());
if (cachedFile != null){ if (cachedFile != null && cachedFile != originalFile){
file = cachedFile; file = cachedFile;
if (originalFile.isStale()){ // the original file was marked stale, so the cached one should be too if (originalFile.isStale()){ // the original file was marked stale, so the cached one should be too
file.markStale(true); file.markStale(true);
@ -986,7 +987,7 @@ public class SystemViewRemoteFileAdapter
IRemoteFile originalFile = file; IRemoteFile originalFile = file;
if (ss instanceof RemoteFileSubSystem){ if (ss instanceof RemoteFileSubSystem){
IRemoteFile cachedFile = ((RemoteFileSubSystem)ss).getCachedRemoteFile(file.getAbsolutePath()); IRemoteFile cachedFile = ((RemoteFileSubSystem)ss).getCachedRemoteFile(file.getAbsolutePath());
if (cachedFile != null){ if (cachedFile != null && cachedFile != originalFile){
file = cachedFile; file = cachedFile;
if (originalFile.isStale()){ // the original file was marked stale, so the cached one should be too if (originalFile.isStale()){ // the original file was marked stale, so the cached one should be too
file.markStale(true); file.markStale(true);

View file

@ -31,6 +31,7 @@
* David McKnight (IBM) - [272882] [api] Handle exceptions in IService.initService() * David McKnight (IBM) - [272882] [api] Handle exceptions in IService.initService()
* David McKnight (IBM) - [368454] provide thread safety for cachedRemoteFiles hashmap * David McKnight (IBM) - [368454] provide thread safety for cachedRemoteFiles hashmap
* David McKnight (IBM) - [362440] File opened using remote system connection (SSH - Sftp) at some point save action was not saving it to the file system. * David McKnight (IBM) - [362440] File opened using remote system connection (SSH - Sftp) at some point save action was not saving it to the file system.
* David Mcknight (IBM) - [374681] Incorrect number of children on the properties page of a directory
*******************************************************************************/ *******************************************************************************/
package org.eclipse.rse.subsystems.files.core.subsystems; package org.eclipse.rse.subsystems.files.core.subsystems;
@ -1096,8 +1097,10 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
// if not, the key must be for a file // if not, the key must be for a file
if (key.lastIndexOf(IHostSearchResult.SEARCH_RESULT_DELIMITER) < 0) { if (key.lastIndexOf(IHostSearchResult.SEARCH_RESULT_DELIMITER) < 0) {
IRemoteFile remoteFile = getRemoteFileObject(key, monitor); IRemoteFile remoteFile = getCachedRemoteFile(key); // first check for cached file
if (remoteFile == null){ // not cached, do query
remoteFile = getRemoteFileObject(key, monitor);
}
if (remoteFile != null) { if (remoteFile != null) {
return remoteFile; return remoteFile;
} }

View file

@ -85,6 +85,7 @@
* David McKnight (IBM) - [380613] Problem in SystemView with disposed TreeItem when Link With Editor toolbar icon is used * David McKnight (IBM) - [380613] Problem in SystemView with disposed TreeItem when Link With Editor toolbar icon is used
* David McKnight (IBM) - [385774] select folder dialog doesn't update enablement properly after new folder created * David McKnight (IBM) - [385774] select folder dialog doesn't update enablement properly after new folder created
* David McKnight (IBM) - [388364] RDz property view flickers when a user disconnects from zOS system * David McKnight (IBM) - [388364] RDz property view flickers when a user disconnects from zOS system
* David Mcknight (IBM) - [374681] Incorrect number of children on the properties page of a directory
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.ui.view; package org.eclipse.rse.internal.ui.view;
@ -3405,9 +3406,12 @@ public class SystemView extends SafeTreeViewer
String newText = adapter.getText(element); String newText = adapter.getText(element);
if (oldText == null || !oldText.equals(newText)) if (oldText == null || !oldText.equals(newText))
{ {
//if (newText != null){ if (newText != null){
item.setText(newText); item.setText(newText);
//} }
else {
SystemBasePlugin.logInfo("SystemView.doUpdateItem() - text for " + element + " is null!"); //$NON-NLS-1$//$NON-NLS-2$
}
} }
} }