1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

[271243] [files] Switching service type brings up TWO file subsystems after restart

This commit is contained in:
David McKnight 2009-04-20 13:23:19 +00:00
parent 44f654d97b
commit 1c4658c86c

View file

@ -25,6 +25,7 @@
* David Dykstal (IBM) - [236516] Bug in user code causes failure in RSE initialization * David Dykstal (IBM) - [236516] Bug in user code causes failure in RSE initialization
* David McKnight (IBM) - [245198] [dstore] ServerLauncherProperties not restored * David McKnight (IBM) - [245198] [dstore] ServerLauncherProperties not restored
* David McKnight (IBM) - [267052] need to be able to create subsystems-after-the-fact * David McKnight (IBM) - [267052] need to be able to create subsystems-after-the-fact
* David McKnight (IBM) - [271243] [files] Switching service type brings up TWO file subsystems after restart
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.persistence.dom; package org.eclipse.rse.internal.persistence.dom;
@ -246,9 +247,19 @@ public class RSEDOMImporter {
// is there a corresponding subsystem for this configuration? // is there a corresponding subsystem for this configuration?
for (int i = 0; i < sses.length && !found; i++){ for (int i = 0; i < sses.length && !found; i++){
ISubSystem ss = sses[i]; ISubSystem ss = sses[i];
if (ss.getSubSystemConfiguration() == config){ ISubSystemConfiguration ssConfig = ss.getSubSystemConfiguration();
if (ssConfig == config){
found = true; found = true;
} }
else {
// check if the subsystem config service type is of the same type
Class ssServiceType = ssConfig.getServiceType();
Class serviceType = config.getServiceType();
if (ssServiceType != null && serviceType != null && ssServiceType.equals(serviceType)){
found = true;
}
}
} }
// if not, create the subsystem after the fact // if not, create the subsystem after the fact