mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-10 18:45:26 +02:00
don't assume service subsystem configuration
This commit is contained in:
parent
172f651769
commit
bc6a937f0b
1 changed files with 8 additions and 4 deletions
|
@ -629,6 +629,8 @@ 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++)
|
||||||
|
{
|
||||||
|
if (v.get(i) instanceof IServiceSubSystemConfiguration)
|
||||||
{
|
{
|
||||||
IServiceSubSystemConfiguration addedConfig = (IServiceSubSystemConfiguration)v.get(i);
|
IServiceSubSystemConfiguration addedConfig = (IServiceSubSystemConfiguration)v.get(i);
|
||||||
if (addedConfig.getServiceType() == serviceType)
|
if (addedConfig.getServiceType() == serviceType)
|
||||||
|
@ -637,6 +639,8 @@ public class SystemRegistry implements ISystemRegistry, ISystemModelChangeEvents
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
v.addElement(ssFactory);
|
v.addElement(ssFactory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue