mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 23:33:57 +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))
|
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...
|
// "My Home" filter...
|
||||||
// ----------------------
|
// ----------------------
|
||||||
filterStrings = new Vector();
|
Vector filterStrings = new Vector();
|
||||||
RemoteFileFilterString myHomeFilterString = new RemoteFileFilterString(this);
|
RemoteFileFilterString myHomeFilterString = new RemoteFileFilterString(this);
|
||||||
myHomeFilterString.setPath(getSeparator());
|
myHomeFilterString.setPath(getSeparator());
|
||||||
filterStrings.add(".\\*");
|
filterStrings.add(".\\*");
|
||||||
ISystemFilter filter = mgr.createSystemFilter(pool, SystemFileResources.RESID_FILTER_MYHOME,filterStrings);
|
ISystemFilter filter = mgr.createSystemFilter(pool, SystemFileResources.RESID_FILTER_MYHOME,filterStrings);
|
||||||
filter.setNonChangable(true);
|
filter.setNonChangable(true);
|
||||||
filter.setSingleFilterStringOnly(true);
|
filter.setSingleFilterStringOnly(true);
|
||||||
|
|
||||||
|
filterStrings = new Vector();
|
||||||
|
RemoteFileFilterString defaultFilterString = new RemoteFileFilterString(this);
|
||||||
|
filterStrings.add(defaultFilterString.toString());
|
||||||
|
String filterName = SystemFileResources.RESID_FILTER_DRIVES;
|
||||||
|
|
||||||
|
mgr.createSystemFilter(pool, filterName, filterStrings);
|
||||||
//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)
|
catch (Exception exc)
|
||||||
|
|
|
@ -108,6 +108,15 @@ public class LocalFileSubSystemConfiguration extends FileServiceSubSystemConfigu
|
||||||
// ---------------------------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------------------------
|
||||||
if (isUserPrivateProfile(mgr))
|
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();
|
Vector filterStrings = new Vector();
|
||||||
RemoteFileFilterString defaultFilterString = new RemoteFileFilterString(this);
|
RemoteFileFilterString defaultFilterString = new RemoteFileFilterString(this);
|
||||||
if (!_isWindows)
|
if (!_isWindows)
|
||||||
|
@ -120,22 +129,6 @@ public class LocalFileSubSystemConfiguration extends FileServiceSubSystemConfigu
|
||||||
else
|
else
|
||||||
filterName = SystemFileResources.RESID_FILTER_ROOTFILES;
|
filterName = SystemFileResources.RESID_FILTER_ROOTFILES;
|
||||||
mgr.createSystemFilter(pool, filterName, filterStrings);
|
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)
|
} catch (Exception exc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue