diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-05-10 21:44:15 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-05-10 21:44:15 +0000 |
commit | 7469f4c131c42023f0996b1bc0ba12a16097dfdf (patch) | |
tree | 3f4f7002c22d88c374392633a4a35c99b9a9e47e /java/src/IceGridGUI/Application/ServiceInstance.java | |
parent | Fixed bug 965 (diff) | |
download | ice-7469f4c131c42023f0996b1bc0ba12a16097dfdf.tar.bz2 ice-7469f4c131c42023f0996b1bc0ba12a16097dfdf.tar.xz ice-7469f4c131c42023f0996b1bc0ba12a16097dfdf.zip |
Fixed XML writing
Diffstat (limited to 'java/src/IceGridGUI/Application/ServiceInstance.java')
-rwxr-xr-x | java/src/IceGridGUI/Application/ServiceInstance.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/java/src/IceGridGUI/Application/ServiceInstance.java b/java/src/IceGridGUI/Application/ServiceInstance.java index 0dbcfc72c25..f74a6a2b628 100755 --- a/java/src/IceGridGUI/Application/ServiceInstance.java +++ b/java/src/IceGridGUI/Application/ServiceInstance.java @@ -23,6 +23,8 @@ class ServiceInstance extends TreeNode implements Service, Cloneable {
ServiceInstanceDescriptor copy = (ServiceInstanceDescriptor)
instanceDescriptor.clone();
+
+ copy.propertySet = PropertySet.copyDescriptor(copy.propertySet);
if(copy.descriptor != null)
{
@@ -319,7 +321,17 @@ class ServiceInstance extends TreeNode implements Service, Cloneable _descriptor.parameterValues, templateDescriptor.parameters);
attributes.addFirst(createAttribute("template", _descriptor.template));
- writer.writeElement("service-instance", attributes);
+ if(_descriptor.propertySet.references.length == 0 &&
+ _descriptor.propertySet.properties.size() == 0)
+ {
+ writer.writeElement("service-instance", attributes);
+ }
+ else
+ {
+ writer.writeStartTag("service-instance", attributes);
+ writePropertySet(writer, "", _descriptor.propertySet, null);
+ writer.writeEndTag("service-instance");
+ }
}
}
|