mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 13:35:22 +02:00
[209355] [Local] Retrieving list of FILE_TYPE_FOLDERS should return Archive's
This commit is contained in:
parent
42c7806c32
commit
c702e915b3
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [199548] Avoid touching files on setReadOnly() if unnecessary
|
* Martin Oberhuber (Wind River) - [199548] Avoid touching files on setReadOnly() if unnecessary
|
||||||
* Kevin Doyle (IBM) - [199871] LocalFileService needs to implement getMessage()
|
* Kevin Doyle (IBM) - [199871] LocalFileService needs to implement getMessage()
|
||||||
* David McKnight (IBM) - [207178] changing list APIs for file service and subsystems
|
* 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;
|
package org.eclipse.rse.internal.services.local.files;
|
||||||
|
@ -720,6 +721,11 @@ public class LocalFileService extends AbstractFileService implements IFileServic
|
||||||
type == IFileServiceConstants.FILE_TYPE_FILES)
|
type == IFileServiceConstants.FILE_TYPE_FILES)
|
||||||
{
|
{
|
||||||
results.add(new LocalHostFile(file));
|
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())
|
else if (!file.exists())
|
||||||
|
|
Loading…
Add table
Reference in a new issue