diff options
| author | Shireesh Anjal <shireesh@gluster.com> | 2011-06-15 14:39:55 +0530 |
|---|---|---|
| committer | Shireesh Anjal <shireesh@gluster.com> | 2011-06-15 14:43:17 +0530 |
| commit | 94908539ab521529e9c6d07de9c0984253cc959f (patch) | |
| tree | 838abb89db5c36ecd7affe27c19714b5ae796125 /src/com.gluster.storage.management.gui | |
| parent | a160883ce44b7469d2bd54a86d3fc661319b0158 (diff) | |
volume options REST API output now prints <option> tag instead of <entry>
Diffstat (limited to 'src/com.gluster.storage.management.gui')
| -rw-r--r-- | src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/pages/OptionKeyEditingSupport.java | 4 | ||||
| -rw-r--r-- | src/com.gluster.storage.management.gui/src/test.xml | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/pages/OptionKeyEditingSupport.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/pages/OptionKeyEditingSupport.java index 87bd1154..1f64d82e 100644 --- a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/pages/OptionKeyEditingSupport.java +++ b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/pages/OptionKeyEditingSupport.java @@ -6,7 +6,6 @@ package com.gluster.storage.management.gui.views.pages; import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import java.util.Map; import java.util.Map.Entry; import org.eclipse.jface.viewers.CellEditor; @@ -19,6 +18,7 @@ import org.eclipse.swt.widgets.Composite; import com.gluster.storage.management.client.GlusterDataModelManager; import com.gluster.storage.management.core.model.Volume; import com.gluster.storage.management.core.model.VolumeOptionInfo; +import com.gluster.storage.management.core.model.VolumeOptions; /** * Editing support for the "value" column in volume options table viewer. @@ -41,7 +41,7 @@ public class OptionKeyEditingSupport extends EditingSupport { */ private String[] getAllowedKeys() { ArrayList<String> keys = new ArrayList<String>(); - Map<String, String> volumeOptions = volume.getOptions(); + VolumeOptions volumeOptions = volume.getOptions(); for(VolumeOptionInfo optionInfo : defaults) { String optionName = optionInfo.getName(); if(!volumeOptions.containsKey(optionName) || volumeOptions.get(optionName).isEmpty()) { diff --git a/src/com.gluster.storage.management.gui/src/test.xml b/src/com.gluster.storage.management.gui/src/test.xml new file mode 100644 index 00000000..12bbf745 --- /dev/null +++ b/src/com.gluster.storage.management.gui/src/test.xml @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?> |
