X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fsimulator%2Fjava%2Feclipse-plugin%2FServiceProviderPlugin%2Fsrc%2Foic%2Fsimulator%2Fserviceprovider%2Fview%2FAttributeEditingSupport.java;h=faf2542fd6d99740ec60604838b1d94ace1cc93c;hb=1c7e1fdb397d388e36851f070673342d51557fdc;hp=3d9a78b527dfff159e43d5c4109720e3106b5a01;hpb=87bdb306475e434f59a7832a3f242127ca2ba806;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/simulator/java/eclipse-plugin/ServiceProviderPlugin/src/oic/simulator/serviceprovider/view/AttributeEditingSupport.java b/service/simulator/java/eclipse-plugin/ServiceProviderPlugin/src/oic/simulator/serviceprovider/view/AttributeEditingSupport.java index 3d9a78b..faf2542 100644 --- a/service/simulator/java/eclipse-plugin/ServiceProviderPlugin/src/oic/simulator/serviceprovider/view/AttributeEditingSupport.java +++ b/service/simulator/java/eclipse-plugin/ServiceProviderPlugin/src/oic/simulator/serviceprovider/view/AttributeEditingSupport.java @@ -66,9 +66,8 @@ public class AttributeEditingSupport { } String values[] = null; - List valueSet = attributeInSelection.getAllValues(); - System.out.println("Values obtained in getCellEditor: " + valueSet); - values = convertListToString(valueSet); + List valueSet = attributeInSelection.getAttValues(); + values = convertListToStringArray(valueSet); ComboBoxCellEditor comboEditor = new ComboBoxCellEditor( viewer.getTable(), values, SWT.READ_ONLY); @@ -113,7 +112,7 @@ public class AttributeEditingSupport { int indexOfItem = 0; LocalResourceAttribute att = (LocalResourceAttribute) element; String valueString = String.valueOf(att.getAttributeValue()); - List valueSet = att.getAllValues(); + List valueSet = att.getAttValues(); if (null != valueSet) { indexOfItem = valueSet.indexOf(valueString); } @@ -133,7 +132,7 @@ public class AttributeEditingSupport { viewer.update(element, null); } - public String[] convertListToString(List valueList) { + public String[] convertListToStringArray(List valueList) { String[] strArr; if (null != valueList && valueList.size() > 0) { strArr = valueList.toArray(new String[1]); @@ -173,15 +172,12 @@ public class AttributeEditingSupport { @Override protected Object getValue(Object element) { - System.out.println("In getValue() automation"); LocalResourceAttribute att = (LocalResourceAttribute) element; return att.isAutomationInProgress(); } @Override protected void setValue(Object element, Object value) { - System.out.println("In setValue() automation"); - ResourceManager resourceManager = Activator.getDefault() .getResourceManager(); // As automation depends on the current resource in selection, its @@ -194,10 +190,8 @@ public class AttributeEditingSupport { LocalResourceAttribute att = (LocalResourceAttribute) element; boolean checked = (Boolean) value; - System.out.println("Value:" + checked); if (checked) { // Start the automation - // Fetch the settings data List automationSettings; automationSettings = AutomationSettingHelper