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:
parent
cb7dc5d04c
commit
f015bc5c20
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue