1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[196662] hasChildren() should return false when the file doesn't exist

This commit is contained in:
David McKnight 2007-07-24 17:28:49 +00:00
parent cb7dc5d04c
commit f015bc5c20

View file

@ -25,6 +25,7 @@
* Xuan Chen (IBM) - [180671] [refresh] It is not possible to refresh editor with double clicking on it
* David Dykstal (IBM) - [160776] format file size according to client system conventions and locale
* David McKnight (IBM) - [197089] Need to set the filter when there is no separator in filter string
* David McKnight (IBM) - [196662] hasChildren() should return false when the file doesn't exist
********************************************************************************/
package org.eclipse.rse.internal.files.ui.view;
@ -764,6 +765,10 @@ public class SystemViewRemoteFileAdapter
public boolean internalHasChildren(IAdaptable element, ISystemFilterReference filterReference)
{
IRemoteFile file = (IRemoteFile) element;
if (!file.exists())
return false;
boolean supportsArchiveManagement = file.getParentRemoteFileSubSystem().getParentRemoteFileSubSystemConfiguration().supportsArchiveManagement();
boolean hasChildren = false;