import com.android.sdkuilib.internal.repository.UpdaterPage.Purpose;\r
import com.android.sdkuilib.internal.repository.icons.ImageFactory;\r
import com.android.sdkuilib.internal.repository.sdkman1.AvdManagerPage;\r
+import com.android.sdkuilib.repository.AvdManagerWindow.AvdInvocationContext;\r
import com.android.sdkuilib.repository.ISdkChangeListener;\r
import com.android.sdkuilib.repository.SdkUpdaterWindow;\r
-import com.android.sdkuilib.repository.AvdManagerWindow.AvdInvocationContext;\r
import com.android.sdkuilib.ui.GridDataBuilder;\r
import com.android.sdkuilib.ui.GridLayoutBuilder;\r
import com.android.sdkuilib.ui.SwtBaseDialog;\r
// or a dialog trim when invoked from somewhere else.\r
int style = SWT.SHELL_TRIM;\r
if (mContext != AvdInvocationContext.STANDALONE) {\r
- style = SWT.DIALOG_TRIM;\r
- }\r
- if (SdkConstants.currentPlatform() != SdkConstants.PLATFORM_LINUX ||\r
- mContext != AvdInvocationContext.STANDALONE) {\r
- // Ideally we want the window to be app-modal, but this prevents the\r
- // log window from working properly on Linux so don't use the app modal\r
- // flag if this is linux and the app is standalone.\r
- style += SWT.APPLICATION_MODAL;\r
+ style = SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL;\r
}\r
+\r
mShell = new Shell(mParentShell, style);\r
mShell.addDisposeListener(new DisposeListener() {\r
public void widgetDisposed(DisposeEvent e) {\r
import com.android.sdkuilib.internal.tasks.ProgressViewFactory;\r
import com.android.sdkuilib.internal.widgets.ImgDisabledButton;\r
import com.android.sdkuilib.internal.widgets.ToggleButton;\r
-import com.android.sdkuilib.repository.ISdkChangeListener;\r
import com.android.sdkuilib.repository.AvdManagerWindow.AvdInvocationContext;\r
+import com.android.sdkuilib.repository.ISdkChangeListener;\r
import com.android.sdkuilib.repository.SdkUpdaterWindow.SdkInvocationContext;\r
import com.android.sdkuilib.ui.GridDataBuilder;\r
import com.android.sdkuilib.ui.GridLayoutBuilder;\r
// or a dialog trim when invoked from somewhere else.\r
int style = SWT.SHELL_TRIM;\r
if (mContext != SdkInvocationContext.STANDALONE) {\r
- style = SWT.DIALOG_TRIM;\r
- }\r
- if (SdkConstants.currentPlatform() != SdkConstants.PLATFORM_LINUX ||\r
- mContext != SdkInvocationContext.STANDALONE) {\r
- // Ideally we want the window to be app-modal, but this prevents the\r
- // log window from working properly on Linux so don't use the app modal\r
- // flag if this is linux and the app is standalone.\r
- style += SWT.APPLICATION_MODAL;\r
+ style = SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL;\r
}\r
+\r
mShell = new Shell(mParentShell, style);\r
mShell.addDisposeListener(new DisposeListener() {\r
public void widgetDisposed(DisposeEvent e) {\r