Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 71596 Details for
Bug 192724
[ftp] New Filter with Show Files Only still shows folders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch
patch.txt (text/plain), 1.78 KB, created by
Javier Montalvo Orús
on 2007-06-18 07:11:07 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Javier Montalvo Orús
Created:
2007-06-18 07:11:07 EDT
Size:
1.78 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.services.files.ftp >Index: src/org/eclipse/rse/internal/services/files/ftp/FTPService.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.files.ftp/src/org/eclipse/rse/internal/services/files/ftp/FTPService.java,v >retrieving revision 1.22 >diff -u -r1.22 FTPService.java >--- src/org/eclipse/rse/internal/services/files/ftp/FTPService.java 25 May 2007 13:29:07 -0000 1.22 >+++ src/org/eclipse/rse/internal/services/files/ftp/FTPService.java 18 Jun 2007 11:08:09 -0000 >@@ -43,6 +43,7 @@ > * Javier Montalvo Orus (Symbian) - [187096] Drag&Drop + Copy&Paste shows error message on FTP connection > * Javier Montalvo Orus (Symbian) - [187531] Improve exception thrown when Login Failed on FTP > * Javier Montalvo Orus (Symbian) - [187862] Incorrect Error Message when creating new file in read-only directory >+ * Javier Montalvo Orus (Symbian) - [192724] New Filter with Show Files Only still shows folders > ********************************************************************************/ > > package org.eclipse.rse.internal.services.files.ftp; >@@ -498,7 +499,24 @@ > > if((filematcher.matches(f.getName()) || f.isDirectory()) && !(f.getName().equals(".") || f.getName().equals(".."))) //$NON-NLS-1$ //$NON-NLS-2$ > { >- results.add(f); >+ switch(fileType) >+ { >+ case FILE_TYPE_FOLDERS: >+ if(f.isDirectory()) >+ { >+ results.add(f); >+ } >+ break; >+ case FILE_TYPE_FILES: >+ if(f.isFile()) >+ { >+ results.add(f); >+ } >+ break; >+ case FILE_TYPE_FILES_AND_FOLDERS: >+ results.add(f); >+ break; >+ } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192724
:
71596
|
74162
|
74169