/** Callback called when the window shell is disposed. */
 private void onAndroidSdkUpdaterDispose() {
   if (mUpdaterData != null) {
     ImageFactory imgFactory = mUpdaterData.getImageFactory();
     if (imgFactory != null) {
       imgFactory.dispose();
     }
   }
 }
  /** Creates the icon of the window shell. */
  private void setWindowImage(Shell androidSdkUpdater) {
    String imageName = "android_icon_16.png"; // $NON-NLS-1$
    if (SdkConstants.currentPlatform() == SdkConstants.PLATFORM_DARWIN) {
      imageName = "android_icon_128.png"; // $NON-NLS-1$
    }

    if (mUpdaterData != null) {
      ImageFactory imgFactory = mUpdaterData.getImageFactory();
      if (imgFactory != null) {
        mAndroidSdkUpdater.setImage(imgFactory.getImageByName(imageName));
      }
    }
  }