File tree 2 files changed +8
-8
lines changed
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2000, 2015 IBM Corporation and others.
2
+ * Copyright (c) 2000, 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
@@ -105,7 +105,7 @@ protected Control createMessageArea(Composite composite) {
105
105
.align (SWT .FILL , SWT .BEGINNING )
106
106
.grab (true , false )
107
107
.hint (
108
- convertHorizontalDLUsToPixels ( IDialogConstants . MINIMUM_MESSAGE_AREA_WIDTH ) ,
108
+ SWT . DEFAULT ,
109
109
SWT .DEFAULT ).applyTo (messageLabel );
110
110
}
111
111
return composite ;
@@ -156,7 +156,7 @@ public void getName(AccessibleEvent event) {
156
156
* @since 3.0
157
157
*/
158
158
protected int getMessageLabelStyle () {
159
- return SWT .WRAP ;
159
+ return SWT .CENTER ;
160
160
}
161
161
162
162
/*
@@ -169,7 +169,7 @@ protected Control createButtonBar(Composite parent) {
169
169
// by createButton
170
170
.equalWidth (true ).applyTo (composite );
171
171
172
- GridDataFactory .fillDefaults ().align (SWT .END , SWT .CENTER ).span (2 , 1 )
172
+ GridDataFactory .fillDefaults ().align (SWT .CENTER , SWT .CENTER ).span (2 , 1 )
173
173
.applyTo (composite );
174
174
composite .setFont (parent .getFont ());
175
175
// Add the buttons to the button bar.
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2000, 2016 IBM Corporation and others.
2
+ * Copyright (c) 2000, 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
@@ -327,8 +327,8 @@ protected Control createDialogArea(Composite parent) {
327
327
layout .marginHeight = 0 ;
328
328
layout .marginWidth = 0 ;
329
329
composite .setLayout (layout );
330
- GridData data = new GridData (GridData .FILL_BOTH );
331
- data .horizontalSpan = 2 ;
330
+ GridData data = new GridData (GridData .CENTER );
331
+ data .horizontalSpan = 1 ;
332
332
composite .setLayoutData (data );
333
333
// allow subclasses to add custom controls
334
334
customArea = createCustomArea (composite );
@@ -364,7 +364,7 @@ protected Button getButton(int index) {
364
364
* @return the minimum message area width (in pixels)
365
365
*/
366
366
protected int getMinimumMessageWidth () {
367
- return convertHorizontalDLUsToPixels ( IDialogConstants . MINIMUM_MESSAGE_AREA_WIDTH ) ;
367
+ return SWT . DEFAULT ;
368
368
}
369
369
370
370
/**
You can’t perform that action at this time.
0 commit comments