summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.gui
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-04-19 17:31:23 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-04-19 17:31:23 +0530
commit1bc94b1768a96bdf9118d64e21f413e4614347fd (patch)
tree41d25bf3e4620ec07534cd687882f80d10ae4306 /src/com.gluster.storage.management.gui
parentc9b891e9010d3bda51975d507050959338df4d69 (diff)
Bug 2807 - Unncessarily busy in setting the options
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/details/OptionValueEditingSupport.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/OptionValueEditingSupport.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/OptionValueEditingSupport.java
index 5749c703..af1ef949 100644
--- a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/OptionValueEditingSupport.java
+++ b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/details/OptionValueEditingSupport.java
@@ -45,9 +45,6 @@ public class OptionValueEditingSupport extends EditingSupport {
final String optionValue = (String)value;
final String oldValue = entry.getValue();
- guiHelper.setStatusMessage("Setting option [" + optionKey + " = " + optionValue + "]...");
- getViewer().getControl().update();
-
// It is not allowed to change value to empty string
if(optionValue.isEmpty()) {
MessageDialog.openError(Display.getDefault().getActiveShell(), "Set Volume Option",
@@ -62,6 +59,9 @@ public class OptionValueEditingSupport extends EditingSupport {
}
// value has changed. set volume option at back-end and update model accordingly
+ guiHelper.setStatusMessage("Setting option [" + optionKey + " = " + optionValue + "]...");
+ getViewer().getControl().update();
+
BusyIndicator.showWhile(Display.getDefault(), new Runnable() {
@Override