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

[186128][api] Move progress monitor last for more methods of abstract base classes

This commit is contained in:
Martin Oberhuber 2007-05-11 11:21:47 +00:00
parent aac30baef1
commit d147deac13
4 changed files with 7 additions and 7 deletions

View file

@ -489,7 +489,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
* (non-Javadoc)
* @see org.eclipse.rse.services.files.AbstractFileService#internalFetch(org.eclipse.core.runtime.IProgressMonitor, java.lang.String, java.lang.String, int)
*/
protected IHostFile[] internalFetch(IProgressMonitor monitor, String parentPath, String fileFilter, int fileType) throws SystemMessageException
protected IHostFile[] internalFetch(String parentPath, String fileFilter, int fileType, IProgressMonitor monitor) throws SystemMessageException
{
if (monitor!=null){
if (monitor.isCanceled()) {

View file

@ -614,7 +614,7 @@ public class LocalFileService extends AbstractFileService implements IFileServic
return true;
}
protected IHostFile[] internalFetch(IProgressMonitor monitor, String remoteParent, String fileFilter, int type) {
protected IHostFile[] internalFetch(String remoteParent, String fileFilter, int type, IProgressMonitor monitor) {
LocalFileNameFilter fFilter = new LocalFileNameFilter(fileFilter, type);
File localParent = new File(remoteParent);
// if the system type is Windows, we get the canonical path so that we have the correct case in the path

View file

@ -282,7 +282,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
return false;
}
protected IHostFile[] internalFetch(IProgressMonitor monitor, String parentPath, String fileFilter, int fileType) throws SystemMessageException
protected IHostFile[] internalFetch(String parentPath, String fileFilter, int fileType, IProgressMonitor monitor) throws SystemMessageException
{
if (fileFilter == null) {
fileFilter = "*"; //$NON-NLS-1$

View file

@ -34,20 +34,20 @@ public abstract class AbstractFileService implements IFileService
public IHostFile[] getFiles(String remoteParent, String fileFilter, IProgressMonitor monitor) throws SystemMessageException
{
return internalFetch(monitor, remoteParent, fileFilter, FILE_TYPE_FILES);
return internalFetch(remoteParent, fileFilter, FILE_TYPE_FILES, monitor);
}
public IHostFile[] getFolders(String remoteParent, String fileFilter, IProgressMonitor monitor) throws SystemMessageException
{
return internalFetch(monitor, remoteParent, fileFilter, FILE_TYPE_FOLDERS);
return internalFetch(remoteParent, fileFilter, FILE_TYPE_FOLDERS, monitor);
}
public IHostFile[] getFilesAndFolders(String parentPath, String fileFilter, IProgressMonitor monitor) throws SystemMessageException
{
return internalFetch(monitor, parentPath, fileFilter, FILE_TYPE_FILES_AND_FOLDERS);
return internalFetch(parentPath, fileFilter, FILE_TYPE_FILES_AND_FOLDERS, monitor);
}
protected abstract IHostFile[] internalFetch(IProgressMonitor monitor, String parentPath, String fileFilter, int fileType) throws SystemMessageException;
protected abstract IHostFile[] internalFetch(String parentPath, String fileFilter, int fileType, IProgressMonitor monitor) throws SystemMessageException;
protected boolean isRightType(int fileType, IHostFile node)