ADT #1715616: "New Android Test Project" wizard.

Also updates eclipse/changes.txt
This commit is contained in:
Raphael
2009-05-07 19:27:46 -07:00
parent 1f012b193f
commit 0b62151cda
21 changed files with 2282 additions and 451 deletions

View File

@@ -28,6 +28,7 @@ import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
@@ -397,4 +398,21 @@ public class SdkTargetSelector {
}
}
}
/** Enables or disables the controls. */
public void setEnabled(boolean enabled) {
if (mInnerGroup != null && mTable != null && !mTable.isDisposed()) {
enableControl(mInnerGroup, enabled);
}
}
/** Enables or disables controls; recursive for composite controls. */
private void enableControl(Control c, boolean enabled) {
c.setEnabled(enabled);
if (c instanceof Composite)
for (Control c2 : ((Composite) c).getChildren()) {
enableControl(c2, enabled);
}
}
}