summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/ServiceInstance.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-05-10 21:44:15 +0000
committerBernard Normier <bernard@zeroc.com>2006-05-10 21:44:15 +0000
commit7469f4c131c42023f0996b1bc0ba12a16097dfdf (patch)
tree3f4f7002c22d88c374392633a4a35c99b9a9e47e /java/src/IceGridGUI/Application/ServiceInstance.java
parentFixed bug 965 (diff)
downloadice-7469f4c131c42023f0996b1bc0ba12a16097dfdf.tar.bz2
ice-7469f4c131c42023f0996b1bc0ba12a16097dfdf.tar.xz
ice-7469f4c131c42023f0996b1bc0ba12a16097dfdf.zip
Fixed XML writing
Diffstat (limited to 'java/src/IceGridGUI/Application/ServiceInstance.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/ServiceInstance.java14
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");
+ }
}
}