|
1 | 1 | /*******************************************************************************
|
2 |
| - * Copyright (c) 2003, 2020 IBM Corporation and others. |
| 2 | + * Copyright (c) 2003, 2025 IBM Corporation and others. |
3 | 3 | *
|
4 | 4 | * This program and the accompanying materials
|
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0
|
|
56 | 56 | import org.eclipse.osgi.util.NLS;
|
57 | 57 | import org.eclipse.swt.SWT;
|
58 | 58 | import org.eclipse.swt.layout.FillLayout;
|
| 59 | +import org.eclipse.swt.layout.GridData; |
| 60 | +import org.eclipse.swt.widgets.Button; |
59 | 61 | import org.eclipse.swt.widgets.Composite;
|
60 | 62 | import org.eclipse.swt.widgets.Control;
|
61 | 63 | import org.eclipse.swt.widgets.Display;
|
@@ -727,6 +729,17 @@ protected ReturnCode checkValidWorkspace(Shell shell, URL url) {
|
727 | 729 | MessageDialogWithToggle dialog = new MessageDialogWithToggle(shell, title, null, message, severity,
|
728 | 730 | buttonLabelToId, 0, IDEWorkbenchMessages.IDEApplication_version_doNotWarnAgain, false) {
|
729 | 731 | @Override
|
| 732 | + protected Control createDialogArea(Composite parent) { |
| 733 | + Composite composite = (Composite) super.createDialogArea(parent); |
| 734 | + Button toggle = getToggleButton(); |
| 735 | + if (toggle != null && !toggle.isDisposed()) { |
| 736 | + GridData toggleData = new GridData(SWT.BEGINNING, SWT.TOP, false, false); |
| 737 | + toggleData.horizontalIndent = 50; |
| 738 | + toggle.setLayoutData(toggleData); |
| 739 | + } |
| 740 | + return composite; |
| 741 | + } |
| 742 | + @Override |
730 | 743 | protected Shell getParentShell() {
|
731 | 744 | // Bug 429308: Make workspace selection dialog visible
|
732 | 745 | // in the task manager of the OS
|
|
0 commit comments