aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-20 18:16:59 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-20 18:16:59 -0400
commit4ad62d5dba6e2ff751fb02c117cd971e9933a8ff (patch)
tree47478e7e96efd67264455c41c66aa523fe0b194f /sdkmanager
parent5071ffa78f75a2b24f6f202b6bf024a8921b36d5 (diff)
parent1224e7387f3da93a567f440779ef220843ee42bb (diff)
downloadsdk-4ad62d5dba6e2ff751fb02c117cd971e9933a8ff.zip
sdk-4ad62d5dba6e2ff751fb02c117cd971e9933a8ff.tar.gz
sdk-4ad62d5dba6e2ff751fb02c117cd971e9933a8ff.tar.bz2
Merge change I5b1f8bca into eclair-sdk
* changes: AVD Manager: Properly disable AVD > Start > ? under Windows
Diffstat (limited to 'sdkmanager')
-rw-r--r--sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdStartDialog.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdStartDialog.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdStartDialog.java
index 75ec1c9..f444c52 100644
--- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdStartDialog.java
+++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdStartDialog.java
@@ -34,6 +34,7 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
@@ -202,13 +203,13 @@ final class AvdStartDialog extends GridDialog {
}
});
- scaleGroup.setEnabled(defaultState);
+ enableGroup(scaleGroup, defaultState);
mScaleButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
boolean enabled = mScaleButton.getSelection();
- scaleGroup.setEnabled(enabled);
+ enableGroup(scaleGroup, enabled);
if (enabled) {
onScaleChange();
} else {
@@ -239,6 +240,14 @@ final class AvdStartDialog extends GridDialog {
}
}
+ /** On Windows we need to manually enable/disable the children of a group */
+ private void enableGroup(final Group group, boolean enabled) {
+ group.setEnabled(enabled);
+ for (Control c : group.getChildren()) {
+ c.setEnabled(enabled);
+ }
+ }
+
@Override
protected void configureShell(Shell newShell) {
super.configureShell(newShell);