mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-05 08:05:24 +02:00
Bug 143290: Filter sort order is different for different connection types
This commit is contained in:
parent
e322f1e027
commit
0f60ad946b
2 changed files with 16 additions and 44 deletions
|
@ -43,45 +43,24 @@ public class DStoreWindowsFileSubSystemConfiguration extends DStoreFileSubSystem
|
|||
}
|
||||
if (isUserPrivateProfile(mgr))
|
||||
{
|
||||
Vector filterStrings = new Vector();
|
||||
RemoteFileFilterString defaultFilterString = new RemoteFileFilterString(this);
|
||||
|
||||
filterStrings.add(defaultFilterString.toString());
|
||||
//System.out.println("creating filter...");
|
||||
String filterName = SystemFileResources.RESID_FILTER_DRIVES;
|
||||
|
||||
mgr.createSystemFilter(pool, filterName, filterStrings);
|
||||
|
||||
/*
|
||||
// Create 'My Home' filter for local (should apply to both _isWindows and linux clients)
|
||||
filterName = SystemFileResources.RESID_FILTER_MYHOME;
|
||||
RemoteFileFilterString myDocsFilterString = new RemoteFileFilterString(this);
|
||||
myDocsFilterString.setPath(System.getProperty("user.home") + getSeparator());
|
||||
Vector myDocsFilterStrings = new Vector();
|
||||
myDocsFilterStrings.add(myDocsFilterString.toString());
|
||||
mgr.createSystemFilter(pool, filterName, myDocsFilterStrings);
|
||||
*/
|
||||
|
||||
|
||||
// ----------------------
|
||||
// "My Home" filter...
|
||||
// ----------------------
|
||||
filterStrings = new Vector();
|
||||
Vector filterStrings = new Vector();
|
||||
RemoteFileFilterString myHomeFilterString = new RemoteFileFilterString(this);
|
||||
myHomeFilterString.setPath(getSeparator());
|
||||
filterStrings.add(".\\*");
|
||||
ISystemFilter filter = mgr.createSystemFilter(pool, SystemFileResources.RESID_FILTER_MYHOME,filterStrings);
|
||||
filter.setNonChangable(true);
|
||||
filter.setSingleFilterStringOnly(true);
|
||||
|
||||
filterStrings = new Vector();
|
||||
RemoteFileFilterString defaultFilterString = new RemoteFileFilterString(this);
|
||||
filterStrings.add(defaultFilterString.toString());
|
||||
String filterName = SystemFileResources.RESID_FILTER_DRIVES;
|
||||
|
||||
|
||||
//System.out.println("filter created");
|
||||
// -----------------------------------------------------
|
||||
// add a default named filter for integrated file system
|
||||
// -----------------------------------------------------
|
||||
//filterStrings = new Vector();
|
||||
//filterStrings.add(new AS400IFSFilterString().toString());
|
||||
//mgr.createSystemFilter(pool,rb.getString(IAS400Constants.RESID_IFS_LIST),filterStrings);
|
||||
mgr.createSystemFilter(pool, filterName, filterStrings);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
|
|
@ -108,6 +108,15 @@ public class LocalFileSubSystemConfiguration extends FileServiceSubSystemConfigu
|
|||
// ---------------------------------------------------------------------------------------------
|
||||
if (isUserPrivateProfile(mgr))
|
||||
{
|
||||
// Create 'My Home' filter for local (should apply to both _isWindows and linux clients)
|
||||
String myHomeFilterName = SystemFileResources.RESID_FILTER_MYHOME;
|
||||
RemoteFileFilterString myDocsFilterString = new RemoteFileFilterString(this);
|
||||
myDocsFilterString.setPath(System.getProperty("user.home") + getSeparator()); //$NON-NLS-1$
|
||||
Vector myDocsFilterStrings = new Vector();
|
||||
myDocsFilterStrings.add(myDocsFilterString.toString());
|
||||
mgr.createSystemFilter(pool, myHomeFilterName, myDocsFilterStrings);
|
||||
|
||||
|
||||
Vector filterStrings = new Vector();
|
||||
RemoteFileFilterString defaultFilterString = new RemoteFileFilterString(this);
|
||||
if (!_isWindows)
|
||||
|
@ -120,22 +129,6 @@ public class LocalFileSubSystemConfiguration extends FileServiceSubSystemConfigu
|
|||
else
|
||||
filterName = SystemFileResources.RESID_FILTER_ROOTFILES;
|
||||
mgr.createSystemFilter(pool, filterName, filterStrings);
|
||||
|
||||
// Create 'My Home' filter for local (should apply to both _isWindows and linux clients)
|
||||
filterName = SystemFileResources.RESID_FILTER_MYHOME;
|
||||
RemoteFileFilterString myDocsFilterString = new RemoteFileFilterString(this);
|
||||
myDocsFilterString.setPath(System.getProperty("user.home") + getSeparator()); //$NON-NLS-1$
|
||||
Vector myDocsFilterStrings = new Vector();
|
||||
myDocsFilterStrings.add(myDocsFilterString.toString());
|
||||
mgr.createSystemFilter(pool, filterName, myDocsFilterStrings);
|
||||
|
||||
//System.out.println("filter created");
|
||||
// -----------------------------------------------------
|
||||
// add a default named filter for integrated file system
|
||||
// -----------------------------------------------------
|
||||
//filterStrings = new Vector();
|
||||
//filterStrings.add(new AS400IFSFilterString().toString());
|
||||
//mgr.createSystemFilter(pool,rb.getString(IAS400Constants.RESID_IFS_LIST),filterStrings);
|
||||
}
|
||||
} catch (Exception exc)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue