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

[209355] [Local] Retrieving list of FILE_TYPE_FOLDERS should return Archive's

This commit is contained in:
Kevin Doyle 2007-11-09 21:26:06 +00:00
parent 42c7806c32
commit c702e915b3

View file

@ -22,6 +22,7 @@
* Martin Oberhuber (Wind River) - [199548] Avoid touching files on setReadOnly() if unnecessary
* Kevin Doyle (IBM) - [199871] LocalFileService needs to implement getMessage()
* David McKnight (IBM) - [207178] changing list APIs for file service and subsystems
* Kevin Doyle (IBM) - [209355] Retrieving list of FILE_TYPE_FOLDERS should return Archive's
********************************************************************************/
package org.eclipse.rse.internal.services.local.files;
@ -720,6 +721,11 @@ public class LocalFileService extends AbstractFileService implements IFileServic
type == IFileServiceConstants.FILE_TYPE_FILES)
{
results.add(new LocalHostFile(file));
} else if (type == IFileServiceConstants.FILE_TYPE_FOLDERS &&
ArchiveHandlerManager.getInstance().isArchive(file)) {
// On Local Archive's should be considered Folders
// as they are containers that can be opened.
results.add(new LocalHostFile(file));
}
}
else if (!file.exists())