Bug 37253 - [Dialogs] Font to text control of InputDialog is not set
Summary: [Dialogs] Font to text control of InputDialog is not set
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-06 04:12 EDT by Airat A. Sadreev CLA
Modified: 2005-05-10 14:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Airat A. Sadreev CLA 2003-05-06 04:12:46 EDT
Look at org.eclipse.jface.dialogs.InputDialog.createDialogArea()
Comment 1 Debbie Wilson CLA 2003-05-06 10:08:23 EDT
Could you give us more information: what are you expecting to find, what 
problem are you encountering.
Comment 2 Airat A. Sadreev CLA 2003-05-06 15:14:43 EDT
protected Control createDialogArea(Composite parent) {
	// create composite
	Composite composite = (Composite)super.createDialogArea(parent);

	// create message
	if (message != null) {
                ...
		label.setFont(parent.getFont());
	}

	text= new Text(composite, SWT.SINGLE | SWT.BORDER);
	text.setLayoutData(new GridData(
		GridData.GRAB_HORIZONTAL |
		GridData.HORIZONTAL_ALIGN_FILL));
	text.addModifyListener(
		new ModifyListener() {
			public void modifyText(ModifyEvent e) {
				validateInput();
			}
		}
	);
        ...
	errorMessageLabel.setFont(parent.getFont());
	
	return composite;
}

As you can see, the font is set to label and errorMessageLabel controls, but not
set to the text control.
Comment 3 Tod Creasey CLA 2003-05-29 16:47:42 EDT
Fixed in build >20030529
Comment 4 Tod Creasey CLA 2005-05-10 14:56:15 EDT
Marking closed