OSDN Git Service

First time install: multiple platforms, fix shell disposed.
authorRaphael <raphael@google.com>
Sat, 24 Sep 2011 04:27:14 +0000 (21:27 -0700)
committerRaphael <raphael@google.com>
Sat, 24 Sep 2011 04:32:03 +0000 (21:32 -0700)
commit949dc34d6202ec5e318c30992bc11b61e0c64808
tree2d329241aa23e00a7699bd7ca0687cf696011a6e
parent8985ff3e30a4eb3fe8610e2f9271dd600b883e69
First time install: multiple platforms, fix shell disposed.

Fixes for the first time install support:

- Support installing more than one platform.
  The custom install task was tailored before to one
  install a single package and return one status with
  on archive install path. This has been made more
  generic.

- Fix a couple occurences of the dreaded "SWT Shell disposed"
  error that happen when updating the progress bar and closing
  the window at the same time. The issue is that I was checking
  isDisposed before starting a syncExec but the window can be
  closed between the moment the syncExec is schedule and when it
  happens so code must check again for isDisposed inside the
  syncExec.

Change-Id: I413cfacd63406febc7953effad5ece2ef2854360
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/welcome/WelcomeWizard.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/AdtUpdateDialog.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/PackageLoader.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/tasks/ProgressView.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/ui/SwtBaseDialog.java