summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-05-30 18:04:17 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-05-30 18:15:26 +0530
commit96716944c2cc864a8e88ec8d47c74b5aaed0aad5 (patch)
tree46fbd327788e2e649e430c2f6f4117c53433e076 /src
parent992e0d31390d0e14e6846d9abbc2e6ad1058bafb (diff)
Design changes - introducing cluster-server mapping on gateway
Diffstat (limited to 'src')
-rw-r--r--src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/ClusterSelectionDialog.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/ClusterSelectionDialog.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/ClusterSelectionDialog.java
index 49fbe9de..e18344c7 100644
--- a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/ClusterSelectionDialog.java
+++ b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/ClusterSelectionDialog.java
@@ -162,9 +162,11 @@ public class ClusterSelectionDialog extends Dialog {
if(clusters.size() > 0) {
selectButton.setSelection(true);
stackLayout.topControl = clusterSelectionComposite;
+ clusterNameCombo.setFocus();
} else {
createButton.setSelection(true);
stackLayout.topControl = clusterCreationComposite;
+ newClusterNameText.setFocus();
}
subComposite.layout();
}
@@ -252,7 +254,7 @@ public class ClusterSelectionDialog extends Dialog {
private void validate() {
okButton.setEnabled(false);
- if(selectButton.getSelection()) {
+ if(selectButton != null && selectButton.getSelection()) {
okButton.setEnabled(true);
return;
}