aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
diff options
context:
space:
mode:
authorRaphael <raphael@google.com>2011-10-13 10:36:44 -0700
committerRaphael <raphael@google.com>2011-10-13 11:06:21 -0700
commita84dcfef93b62171ede7e3743adb04e2ade5b290 (patch)
tree19033389b41f85563bdc21be64de35b8bd8a30bd /ddms
parentae3597ad203b835eeded92fc01466456cfeccf39 (diff)
downloadsdk-a84dcfef93b62171ede7e3743adb04e2ade5b290.zip
sdk-a84dcfef93b62171ede7e3743adb04e2ade5b290.tar.gz
sdk-a84dcfef93b62171ede7e3743adb04e2ade5b290.tar.bz2
DDMS: Fix menu to not say "SWT"
SDK Bug: 20615 Change-Id: Id59b96bb8b1beb92c3887b1581bd7969cae4262f
Diffstat (limited to 'ddms')
-rw-r--r--ddms/app/src/com/android/ddms/Main.java6
-rw-r--r--ddms/app/src/com/android/ddms/UIThread.java4
2 files changed, 7 insertions, 3 deletions
diff --git a/ddms/app/src/com/android/ddms/Main.java b/ddms/app/src/com/android/ddms/Main.java
index 14ef910..583feb5 100644
--- a/ddms/app/src/com/android/ddms/Main.java
+++ b/ddms/app/src/com/android/ddms/Main.java
@@ -74,10 +74,14 @@ public class Main {
Log.d("ddms", "Initializing");
+ // Create an initial shell display with the correct app name.
+ Display.setAppName(UIThread.APP_NAME);
+ Shell shell = new Shell(Display.getDefault());
+
// if this is the first time using ddms or adt, open up the stats service
// opt out dialog, and request user for permissions.
SdkStatsService stats = new SdkStatsService();
- stats.checkUserPermissionForPing(new Shell(Display.getDefault()));
+ stats.checkUserPermissionForPing(shell);
// the "ping" argument means to check in with the server and exit
// the application name and version number must also be supplied
diff --git a/ddms/app/src/com/android/ddms/UIThread.java b/ddms/app/src/com/android/ddms/UIThread.java
index 213f6bf..a5a3867 100644
--- a/ddms/app/src/com/android/ddms/UIThread.java
+++ b/ddms/app/src/com/android/ddms/UIThread.java
@@ -107,7 +107,7 @@ import java.util.ArrayList;
* when {@link IDevice} / {@link Client} selection changes.
*/
public class UIThread implements IUiSelectionListener, IClientChangeListener {
- private static final String APP_NAME = "DDMS";
+ public static final String APP_NAME = "DDMS";
/*
* UI tab panel definitions. The constants here must match up with the array
@@ -444,7 +444,7 @@ public class UIThread implements IUiSelectionListener, IClientChangeListener {
public void runUI(String ddmsParentLocation) {
Display.setAppName(APP_NAME);
mDisplay = Display.getDefault();
- final Shell shell = new Shell(mDisplay);
+ final Shell shell = new Shell(mDisplay, SWT.SHELL_TRIM);
// create the image loaders for DDMS and DDMUILIB
mDdmUiLibLoader = ImageLoader.getDdmUiLibLoader();