Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 127658 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jface/dialogs/StatusDialog.java (-2 / +19 lines)
Lines 220-235 Link Here
220
		}
220
		}
221
221
222
		layout.marginHeight = 0;
222
		layout.marginHeight = 0;
223
		layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
223
        layout.marginLeft = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
224
        layout.marginWidth = 0;
224
		composite.setLayout(layout);
225
		composite.setLayout(layout);
225
		composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
226
		composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
226
227
228
        if (!fStatusLineAboveButtons && isHelpAvailable()) {
229
        	createHelpControl(composite);
230
        }
227
		fStatusLine = new MessageLine(composite);
231
		fStatusLine = new MessageLine(composite);
228
		fStatusLine.setAlignment(SWT.LEFT);
232
		fStatusLine.setAlignment(SWT.LEFT);
229
		fStatusLine.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
233
        GridData statusData = new GridData(GridData.FILL_HORIZONTAL);
230
		fStatusLine.setErrorStatus(null);
234
		fStatusLine.setErrorStatus(null);
235
        if (fStatusLineAboveButtons && isHelpAvailable()) {
236
        	statusData.horizontalSpan = 2;
237
        	createHelpControl(composite);
238
        }
239
		fStatusLine.setLayoutData(statusData);
231
		applyDialogFont(composite);
240
		applyDialogFont(composite);
241
		
242
		/*
243
		 * Create the rest of the button bar, but tell it not to
244
		 * create a help button (we've already created it).
245
		 */
246
		boolean helpAvailable = isHelpAvailable();
247
		setHelpAvailable(false);
232
		super.createButtonBar(composite);
248
		super.createButtonBar(composite);
249
		setHelpAvailable(helpAvailable);
233
		return composite;
250
		return composite;
234
	}
251
	}
235
252

Return to bug 127658