Skip to content

Commit 399983b

Browse files
committed
Newer Workspace Version popup dialog ui alignment changes. Updated as
per review comments.
1 parent 912fadf commit 399983b

File tree

1 file changed

+14
-1
lines changed
  • bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application

1 file changed

+14
-1
lines changed

bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2003, 2020 IBM Corporation and others.
2+
* Copyright (c) 2003, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -56,6 +56,8 @@
5656
import org.eclipse.osgi.util.NLS;
5757
import org.eclipse.swt.SWT;
5858
import org.eclipse.swt.layout.FillLayout;
59+
import org.eclipse.swt.layout.GridData;
60+
import org.eclipse.swt.widgets.Button;
5961
import org.eclipse.swt.widgets.Composite;
6062
import org.eclipse.swt.widgets.Control;
6163
import org.eclipse.swt.widgets.Display;
@@ -727,6 +729,17 @@ protected ReturnCode checkValidWorkspace(Shell shell, URL url) {
727729
MessageDialogWithToggle dialog = new MessageDialogWithToggle(shell, title, null, message, severity,
728730
buttonLabelToId, 0, IDEWorkbenchMessages.IDEApplication_version_doNotWarnAgain, false) {
729731
@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
730743
protected Shell getParentShell() {
731744
// Bug 429308: Make workspace selection dialog visible
732745
// in the task manager of the OS

0 commit comments

Comments
 (0)