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

[245198] [dstore] ServerLauncherProperties not restored

This commit is contained in:
David McKnight 2008-10-24 16:22:45 +00:00
parent 933dac113c
commit 59bd3f174e

View file

@ -23,6 +23,7 @@
* David Dykstal (IBM) - [232126] retrieve persisted filter type attribute
* David Dykstal (IBM) - [233876] filters lost after restart
* David Dykstal (IBM) - [236516] Bug in user code causes failure in RSE initialization
* David McKniht (IBM) - [245198] [dstore] ServerLauncherProperties not restored
********************************************************************************/
package org.eclipse.rse.internal.persistence.dom;
@ -196,15 +197,19 @@ public class RSEDOMImporter {
boolean useSSL = getBooleanValue(connectorServiceNode, IRSEDOMConstants.ATTRIBUTE_USE_SSL);
int port = getIntegerValue(connectorServiceNode, IRSEDOMConstants.ATTRIBUTE_PORT);
boolean setServerLauncherProperties = false;
// first restore subsystems (since right now we need subsystem to get at service
RSEDOMNode[] ssChildren = connectorServiceNode.getChildren(IRSEDOMConstants.TYPE_SUBSYSTEM);
for (int s = 0; s < ssChildren.length; s++) {
RSEDOMNode ssChild = ssChildren[s];
ISubSystem subSystem = restoreSubSystem(host, ssChild);
if (subSystem != null && service == null) {
if (subSystem != null) {
ISubSystemConfiguration subsystemConfiguration = subSystem.getSubSystemConfiguration();
if (service == null){
service = subsystemConfiguration.getConnectorService(host);
if (service != null) {
}
if (service != null && !setServerLauncherProperties) {
if (subsystemConfiguration.supportsServerLaunchProperties(host)) {
IServerLauncherProperties sl = subsystemConfiguration.createServerLauncher(service);
if (sl != null) {
@ -215,6 +220,7 @@ public class RSEDOMImporter {
if (slChildren != null && slChildren.length > 0) {
serverLauncherPropertiesNode = slChildren[0];
restoreServerLauncher(service, serverLauncherPropertiesNode, sl);
setServerLauncherProperties = true;
}
}
}