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
* 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
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();