mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-24 00:33:48 +02:00
[192122] fix for finding filters when expanding a Linux connection created with SSH services
This commit is contained in:
parent
6670d4e1e6
commit
fb8ecf4b82
1 changed files with 16 additions and 1 deletions
|
@ -15,6 +15,8 @@
|
|||
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
|
||||
* David Dykstal (IBM) - [189858] made sure that a reference remains broken if the profile
|
||||
* contained in the reference was not found.
|
||||
* David Dykstal (IBM) - [192122] extended search to look for filter pools in
|
||||
* profile during getReferencedFilterPool() rather than returning broken reference
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.core.filters;
|
||||
|
@ -176,6 +178,19 @@ public class SystemFilterPoolReference extends SystemPersistableReferencingObjec
|
|||
ISubSystemConfiguration config = subsystem.getSubSystemConfiguration();
|
||||
filterPoolManager = config.getFilterPoolManager(profile);
|
||||
filterPool = filterPoolManager.getSystemFilterPool(filterPoolName);
|
||||
// TODO (dwd) may not need filter pools managers on a per subsystem configuration basis, investigate
|
||||
// added for 192122 - search all pools in the profile, these are unique anyway
|
||||
if (filterPool == null) {
|
||||
ISystemFilterPool[] candidatePools = profile.getFilterPools();
|
||||
for (int i = 0; i < candidatePools.length; i++) {
|
||||
ISystemFilterPool candidatePool = candidatePools[i];
|
||||
String candidatePoolName = candidatePool.getName();
|
||||
if (candidatePoolName.equals(filterPoolName)) {
|
||||
filterPool = candidatePool;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (filterPool != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue