diff options
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");
+ }
}
}
|