Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 181184 - Dialog fonts should be used in Test Project preference pages.
Summary: Dialog fonts should be used in Test Project preference pages.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 169730
  Show dependency tree
 
Reported: 2007-04-05 08:06 EDT by Paul Slauenwhite CLA
Modified: 2016-05-05 10:30 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 Paul Slauenwhite CLA 2007-04-05 08:06:46 EDT
Dialog fonts should be used in Test Project preference pages.

[Copied from 169730]

Build ID: M20060921-0945

Steps To Reproduce:
1. go to Window > Preferences in eclipse
2. type "font" in the filter text field
3. select "Colors and Fonts" in the tree
4. type "dialog" in the filter text field on the right side
5. select "Dialog Font"
6. click Change and choose a different dialog font size, such as 16
7. click OK to save the preferences
8. go back to the preferences and select preference groups such as "Ant" and
"Help", and notice the pages all use the new dialog font size
9. Now go to any of the preference pages under "Analysis", "Profiling", or
"Test".  Notice that most or all of the fonts are not using the Dialog font


More information:
Dialog font is the expected font for Eclipse preference pages.  Notice that
preference pages originating from TPTP in the standard TPTP workspace are the
only ones that don't follow this convention.

The solution is easy.  At the end of the createControl() method, call this:

Dialog.applyDialogFont(topControl);

where "topControl" is the top most control on the preference page.  This method
will recursively ensure that every child of that control also uses the Dialog
font.
Comment 1 Paul Slauenwhite CLA 2007-04-05 08:07:40 EDT
Patch provided by Eugene (https://bugs.eclipse.org/bugs/show_bug.cgi?id=169730#c4).
Comment 2 Paul Slauenwhite CLA 2007-04-05 08:25:30 EDT
Patch reviewed, tested and checked-in to CVS (HEAD).

Thanks again Eugene.
Comment 3 Paul Slauenwhite CLA 2007-06-02 14:52:15 EDT
Reporter: Please verify and close in preparation for shutting down the TPTP 4.4 release.  Thanks.
Comment 4 Paul Slauenwhite CLA 2007-06-27 15:51:41 EDT
Verified in TPTP-4.4.0-200706140100C.