auto import from //branches/cupcake/...@132276
This commit is contained in:
@@ -54,7 +54,7 @@ public final class EmulatorConsole {
|
||||
private final static String HOST = "127.0.0.1"; //$NON-NLS-1$
|
||||
|
||||
private final static String COMMAND_PING = "help\r\n"; //$NON-NLS-1$
|
||||
private final static String COMMAND_AVD_NAME = "vm name\r\n"; //$NON-NLS-1$ // TODO change with emulator
|
||||
private final static String COMMAND_AVD_NAME = "avd name\r\n"; //$NON-NLS-1$
|
||||
private final static String COMMAND_KILL = "kill\r\n"; //$NON-NLS-1$
|
||||
private final static String COMMAND_GSM_STATUS = "gsm status\r\n"; //$NON-NLS-1$
|
||||
private final static String COMMAND_GSM_CALL = "gsm call %1$s\r\n"; //$NON-NLS-1$
|
||||
|
||||
@@ -205,6 +205,10 @@ public final class DevicePanel extends Panel implements IDebugBridgeChangeListen
|
||||
String debuggable = device.getProperty(Device.PROP_DEBUGGABLE);
|
||||
if (device.isEmulator()) {
|
||||
String avdName = device.getAvdName();
|
||||
if (avdName == null) {
|
||||
avdName = "?"; // the device is probably not online yet, so
|
||||
// we don't know its AVD name just yet.
|
||||
}
|
||||
if (debuggable != null && debuggable.equals("1")) { //$NON-NLS-1$
|
||||
return String.format("%1$s [%2$s, debug]", avdName,
|
||||
version);
|
||||
|
||||
Reference in New Issue
Block a user