Make ADT use new sdklib API

This fixes the build.
This commit is contained in:
Xavier Ducrohet
2009-07-01 05:48:03 -07:00
parent 59fc8c9d06
commit f5af7ce213
2 changed files with 4 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ import com.android.ide.eclipse.adt.internal.sdk.Sdk;
import com.android.ide.eclipse.adt.internal.wizards.actions.AvdManagerAction; import com.android.ide.eclipse.adt.internal.wizards.actions.AvdManagerAction;
import com.android.prefs.AndroidLocation.AndroidLocationException; import com.android.prefs.AndroidLocation.AndroidLocationException;
import com.android.sdklib.IAndroidTarget; import com.android.sdklib.IAndroidTarget;
import com.android.sdklib.NullSdkLog;
import com.android.sdklib.SdkManager; import com.android.sdklib.SdkManager;
import com.android.sdklib.internal.avd.AvdManager; import com.android.sdklib.internal.avd.AvdManager;
import com.android.sdklib.internal.avd.AvdManager.AvdInfo; import com.android.sdklib.internal.avd.AvdManager.AvdInfo;
@@ -301,7 +302,7 @@ public final class AndroidLaunchController implements IDebugBridgeChangeListener
// reload the AVDs to make sure we are up to date // reload the AVDs to make sure we are up to date
try { try {
avdManager.reloadAvds(); avdManager.reloadAvds(NullSdkLog.getLogger());
} catch (AndroidLocationException e1) { } catch (AndroidLocationException e1) {
// this happens if the AVD Manager failed to find the folder in which the AVDs are // this happens if the AVD Manager failed to find the folder in which the AVDs are
// stored. This is unlikely to happen, but if it does, we should force to go manual // stored. This is unlikely to happen, but if it does, we should force to go manual

View File

@@ -23,6 +23,7 @@ import com.android.ide.eclipse.adt.internal.sdk.Sdk;
import com.android.ide.eclipse.ddms.DdmsPlugin; import com.android.ide.eclipse.ddms.DdmsPlugin;
import com.android.prefs.AndroidLocation.AndroidLocationException; import com.android.prefs.AndroidLocation.AndroidLocationException;
import com.android.sdklib.IAndroidTarget; import com.android.sdklib.IAndroidTarget;
import com.android.sdklib.NullSdkLog;
import com.android.sdklib.internal.avd.AvdManager; import com.android.sdklib.internal.avd.AvdManager;
import com.android.sdklib.internal.avd.AvdManager.AvdInfo; import com.android.sdklib.internal.avd.AvdManager.AvdInfo;
import com.android.sdkuilib.internal.widgets.AvdSelector; import com.android.sdkuilib.internal.widgets.AvdSelector;
@@ -133,7 +134,7 @@ public class EmulatorConfigTab extends AbstractLaunchConfigurationTab {
// reload the AVDs to make sure we are up to date // reload the AVDs to make sure we are up to date
try { try {
Sdk.getCurrent().getAvdManager().reloadAvds(); Sdk.getCurrent().getAvdManager().reloadAvds(NullSdkLog.getLogger());
} catch (AndroidLocationException e1) { } catch (AndroidLocationException e1) {
// this happens if the AVD Manager failed to find the folder in which the AVDs are // this happens if the AVD Manager failed to find the folder in which the AVDs are
// stored. There isn't much we can do at this point. // stored. There isn't much we can do at this point.