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

[182802] changing how this is done since there are different services and configurations for each - meanings we can't just cling on to the original factories

This commit is contained in:
David McKnight 2007-04-19 18:32:10 +00:00
parent 3a6d940b12
commit 1be96bcbef

View file

@ -2619,9 +2619,21 @@ public class SystemRegistry implements ISystemRegistryUI, ISystemModelChangeEven
// it looks good, so proceed...
String oldName = conn.getAliasName();
// DKM - changing how this is done since there are services with different configurations now
ISubSystem[] subsystems = conn.getSubSystems();
for (int i = 0; i < subsystems.length; i++)
{
ISubSystem ss = subsystems[i];
ss.getSubSystemConfiguration().renameSubSystemsByConnection(conn, newName);
}
/*
Vector affectedSubSystemFactories = getSubSystemFactories(conn);
for (int idx = 0; idx < affectedSubSystemFactories.size(); idx++)
((ISubSystemConfiguration) affectedSubSystemFactories.elementAt(idx)).renameSubSystemsByConnection(conn, newName);
*/
conn.getHostPool().renameHost(conn, newName); // rename in memory and disk
SystemPreferencesManager.setConnectionNamesOrder(); // update preferences order list
fireModelChangeEvent(SYSTEM_RESOURCE_RENAMED, SYSTEM_RESOURCETYPE_CONNECTION, conn, oldName);