1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 07:35:24 +02:00

[142712] fix for local filter polls with non-default profile

This commit is contained in:
David McKnight 2007-02-20 15:57:27 +00:00
parent c3584207d9
commit 8c22f3c8d0

View file

@ -130,6 +130,21 @@ public class LocalFileSubSystemConfiguration extends FileServiceSubSystemConfigu
filterName = SystemFileResources.RESID_FILTER_ROOTFILES;
mgr.createSystemFilter(pool, filterName, filterStrings);
}
else
{
Vector filterStrings = new Vector();
RemoteFileFilterString defaultFilterString = new RemoteFileFilterString(this);
if (!_isWindows)
defaultFilterString.setPath(getSeparator());
filterStrings.add(defaultFilterString.toString());
//System.out.println("creating filter...");
String filterName = null;
if (_isWindows)
filterName = SystemFileResources.RESID_FILTER_DRIVES;
else
filterName = SystemFileResources.RESID_FILTER_ROOTFILES;
mgr.createSystemFilter(pool, filterName, filterStrings);
}
} catch (Exception exc)
{
SystemBasePlugin.logError("Error creating default filter pool",exc); //$NON-NLS-1$