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

don't assume service subsystem configuration

This commit is contained in:
David McKnight 2006-08-11 18:54:37 +00:00
parent 172f651769
commit bc6a937f0b

View file

@ -630,11 +630,15 @@ public class SystemRegistry implements ISystemRegistry, ISystemModelChangeEvents
// remove the other one // remove the other one
for (int i = 0; i < v.size(); i++) for (int i = 0; i < v.size(); i++)
{ {
IServiceSubSystemConfiguration addedConfig = (IServiceSubSystemConfiguration)v.get(i); if (v.get(i) instanceof IServiceSubSystemConfiguration)
if (addedConfig.getServiceType() == serviceType) {
{ IServiceSubSystemConfiguration addedConfig = (IServiceSubSystemConfiguration)v.get(i);
v.remove(addedConfig); if (addedConfig.getServiceType() == serviceType)
{
v.remove(addedConfig);
}
} }
} }
v.addElement(ssFactory); v.addElement(ssFactory);