mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 10:05:24 +02:00
[174941] no need for updateSubSystems() method
This commit is contained in:
parent
1f9672dc38
commit
09f1905db6
2 changed files with 2 additions and 28 deletions
|
@ -751,7 +751,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrentColumnWidths(int[] widths)
|
public void setCurrentColumnWidths(int[] widths)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public int[] getLastColumnWidths()
|
public int[] getLastColumnWidths()
|
||||||
|
|
|
@ -176,31 +176,5 @@ public abstract class AbstractConnectorServiceManager implements IConnectorServi
|
||||||
*/
|
*/
|
||||||
public abstract Class getSubSystemCommonInterface(ISubSystem subsystem);
|
public abstract Class getSubSystemCommonInterface(ISubSystem subsystem);
|
||||||
|
|
||||||
/**
|
|
||||||
* <i>Internal use. Fully implemented, no need to override.</i><br>
|
|
||||||
* Updates user-editable attributes of an existing subsystem instance.
|
|
||||||
* The goal of this method is to intercept the request and forward it on to all our
|
|
||||||
* subsystems in this SystemConnection, that share a single IConnectorService,
|
|
||||||
* so we keep them all in synch in terms of these two properties used
|
|
||||||
* by all ISystems.
|
|
||||||
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#updateSubSystem(ISubSystem, boolean, String, boolean, int)
|
|
||||||
*/
|
|
||||||
public void updateSubSystems(Shell shell, ISubSystem subsystem, boolean updateUserId, String userId, boolean updatePort, int port)
|
|
||||||
{
|
|
||||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
|
||||||
IHost conn = subsystem.getHost();
|
|
||||||
ISubSystem[] subsystems = sr.getSubSystems(conn);
|
|
||||||
if (subsystems != null)
|
|
||||||
{
|
|
||||||
for (int idx=0; idx<subsystems.length; idx++)
|
|
||||||
{
|
|
||||||
ISubSystem ss = subsystems[idx];
|
|
||||||
if ( (ss != subsystem) && sharesSystem(ss) )
|
|
||||||
{
|
|
||||||
ISubSystemConfiguration ssFactory = ss.getSubSystemConfiguration();
|
|
||||||
ssFactory.updateSubSystem(ss, updateUserId, userId, updatePort, port);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue