Bug 27446 - JUnit should honour dialog font [JUnit]
Summary: JUnit should honour dialog font [JUnit]
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 19346
  Show dependency tree
 
Reported: 2002-11-30 00:28 EST by Sebastian Davids CLA
Modified: 2003-04-10 10:19 EDT (History)
0 users

See Also:


Attachments
fixes (18.76 KB, patch)
2002-11-30 00:33 EST, Sebastian Davids CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids CLA 2002-11-30 00:28:43 EST
.
Comment 1 Sebastian Davids CLA 2002-11-30 00:33:14 EST
Created attachment 2595 [details]
fixes

fixes:

JUnitMainTab
JUnitPreferencePage
CheckedTableSelectionDialog
MethodStubsSelectionButtonGroup
NewTestCaseCreationWizardPage
NewTestCaseCreationWizardPage2
NewSuiteCaseCreationWizardPage
Comment 2 Dirk Baeumer CLA 2002-12-02 03:13:05 EST
Sebastian, 

thanks for the patch. Besides "hardcoding" the dialog everywhere a control is 
created we are currently looking into a way how this can be done by the 
framework. 
Comment 3 Tod Creasey CLA 2002-12-02 09:40:32 EST
public static applyDialogFont(Control control) has been added to Dialog. This 
can be called to apply the dialog font to the tree of a control whose font is 
the default font.

I could not hook this up by default because it causes some layout problems on 
many of the pages and dialogs we have if it is called after widget creation as 
sizing is frequently done in the creation code. We do not wish to generate any 
layout problems by the addition of this API.

I have also changed initializeBounds to use the dialog font for the 
calculations and not the font of the passed control. In the dialog provided by 
the workbench this will not do anything but for those dialogs provided by 
other components this will allow them to do the sizing before applying the 
dialog font.
Comment 4 Erich Gamma CLA 2003-03-24 20:43:45 EST
this got addressed for 2.1
Comment 5 Sebastian Davids CLA 2003-04-10 10:19:21 EDT
verified