From 4c60c45b26926d584ed9b1d9f2c83488dd7ee2fd Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Fri, 15 Dec 2006 00:06:59 +0000 Subject: Added support for service property sets in icebox server instances --- java/src/IceGridGUI/Utils.java | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'java/src/IceGridGUI/Utils.java') diff --git a/java/src/IceGridGUI/Utils.java b/java/src/IceGridGUI/Utils.java index 2abcbe3b519..2ea7cb76587 100755 --- a/java/src/IceGridGUI/Utils.java +++ b/java/src/IceGridGUI/Utils.java @@ -377,21 +377,29 @@ public class Utils public java.util.List properties; // list of PropertyDescriptor } - static public java.util.SortedMap propertySetToMap( - ExpandedPropertySet propertySet, - ExpandedPropertySet instancePropertySet, // can be null + static public java.util.SortedMap propertySetsToMap( + java.util.List propertySets, Resolver resolver) { java.util.SortedMap toMap = new java.util.TreeMap(); - - addSet(propertySet, resolver, toMap); - if(instancePropertySet != null) + java.util.Iterator p = propertySets.iterator(); + while(p.hasNext()) { - addSet(instancePropertySet, resolver, toMap); + ExpandedPropertySet propertySet = (ExpandedPropertySet)p.next(); + addSet(propertySet, resolver, toMap); } return toMap; } + static public java.util.SortedMap propertySetToMap( + ExpandedPropertySet propertySet, + Resolver resolver) + { + java.util.List list = new java.util.LinkedList(); + list.add(propertySet); + return propertySetsToMap(list, resolver); + } + static private void addSet(ExpandedPropertySet set, Resolver resolver, java.util.SortedMap toMap) { -- cgit v1.2.3