am f5af7ce2: Make ADT use new sdklib API
Merge commit 'f5af7ce21399f9a56167cadaa8196c0b15cfadce' * commit 'f5af7ce21399f9a56167cadaa8196c0b15cfadce': Make ADT use new sdklib API
This commit is contained in:
committed by
The Android Open Source Project
commit
832b2c05fd
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user