mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 11:25:35 +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:
parent
3a6d940b12
commit
1be96bcbef
1 changed files with 12 additions and 0 deletions
|
@ -2619,9 +2619,21 @@ public class SystemRegistry implements ISystemRegistryUI, ISystemModelChangeEven
|
||||||
|
|
||||||
// it looks good, so proceed...
|
// it looks good, so proceed...
|
||||||
String oldName = conn.getAliasName();
|
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);
|
Vector affectedSubSystemFactories = getSubSystemFactories(conn);
|
||||||
for (int idx = 0; idx < affectedSubSystemFactories.size(); idx++)
|
for (int idx = 0; idx < affectedSubSystemFactories.size(); idx++)
|
||||||
((ISubSystemConfiguration) affectedSubSystemFactories.elementAt(idx)).renameSubSystemsByConnection(conn, newName);
|
((ISubSystemConfiguration) affectedSubSystemFactories.elementAt(idx)).renameSubSystemsByConnection(conn, newName);
|
||||||
|
*/
|
||||||
conn.getHostPool().renameHost(conn, newName); // rename in memory and disk
|
conn.getHostPool().renameHost(conn, newName); // rename in memory and disk
|
||||||
SystemPreferencesManager.setConnectionNamesOrder(); // update preferences order list
|
SystemPreferencesManager.setConnectionNamesOrder(); // update preferences order list
|
||||||
fireModelChangeEvent(SYSTEM_RESOURCE_RENAMED, SYSTEM_RESOURCETYPE_CONNECTION, conn, oldName);
|
fireModelChangeEvent(SYSTEM_RESOURCE_RENAMED, SYSTEM_RESOURCETYPE_CONNECTION, conn, oldName);
|
||||||
|
|
Loading…
Add table
Reference in a new issue