Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 2580 Details for
Bug 19346
[Dialogs] Dialog font should be activated and used by other components.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
fixes for workbench
workbench.txt (text/plain), 74.77 KB, created by
Sebastian Davids
on 2002-11-29 02:22:21 EST
(
hide
)
Description:
fixes for workbench
Filename:
MIME Type:
Creator:
Sebastian Davids
Created:
2002-11-29 02:22:21 EST
Size:
74.77 KB
patch
obsolete
>Index: Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java,v >retrieving revision 1.1 >diff -u -r1.1 AbstractElementListSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java 29 Nov 2002 07:21:36 -0000 >@@ -318,7 +318,7 @@ > data.horizontalAlignment= GridData.FILL; > data.verticalAlignment= GridData.FILL; > list.setLayoutData(data); >- >+ list.setFont(parent.getFont()); > list.setFilter((fFilter == null ? "" : fFilter)); //$NON-NLS-1$ > > list.addSelectionListener(new SelectionListener() { >@@ -362,6 +362,7 @@ > data.horizontalAlignment= GridData.FILL; > data.verticalAlignment= GridData.BEGINNING; > text.setLayoutData(data); >+ text.setFont(parent.getFont()); > > text.setText((fFilter == null ? "" : fFilter)); //$NON-NLS-1$ > >Index: Eclipse UI/org/eclipse/ui/dialogs/CheckedTreeSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CheckedTreeSelectionDialog.java,v >retrieving revision 1.1 >diff -u -r1.1 CheckedTreeSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/CheckedTreeSelectionDialog.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/CheckedTreeSelectionDialog.java 29 Nov 2002 07:21:37 -0000 >@@ -243,6 +243,7 @@ > > Tree treeWidget = treeViewer.getTree(); > treeWidget.setLayoutData(data); >+ treeWidget.setFont(parent.getFont()); > > if (fIsEmpty) { > messageLabel.setEnabled(false); >@@ -305,6 +306,7 @@ > GridLayout layout= new GridLayout(); > layout.numColumns= 2; > buttonComposite.setLayout(layout); >+ buttonComposite.setFont(composite.getFont()); > GridData data= new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL); > data.grabExcessHorizontalSpace= true; > composite.setData(data); >Index: Eclipse UI/org/eclipse/ui/dialogs/ContainerSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ContainerSelectionDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 ContainerSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/ContainerSelectionDialog.java 14 Nov 2002 13:27:35 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/dialogs/ContainerSelectionDialog.java 29 Nov 2002 07:21:38 -0000 >@@ -118,7 +118,8 @@ > > statusMessage = new Label(parent, SWT.NONE); > statusMessage.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >- >+ statusMessage.setFont(parent.getFont()); >+ > return dialogArea; > } > /** >Index: Eclipse UI/org/eclipse/ui/dialogs/ElementTreeSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ElementTreeSelectionDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 ElementTreeSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/ElementTreeSelectionDialog.java 13 Nov 2002 15:03:59 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/dialogs/ElementTreeSelectionDialog.java 29 Nov 2002 07:21:37 -0000 >@@ -229,6 +229,7 @@ > > Tree treeWidget= treeViewer.getTree(); > treeWidget.setLayoutData(data); >+ treeWidget.setFont(parent.getFont()); > > if (fIsEmpty) { > messageLabel.setEnabled(false); >Index: Eclipse UI/org/eclipse/ui/dialogs/FileSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FileSelectionDialog.java,v >retrieving revision 1.1 >diff -u -r1.1 FileSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/FileSelectionDialog.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/FileSelectionDialog.java 29 Nov 2002 07:21:37 -0000 >@@ -11,6 +11,7 @@ > import org.eclipse.jface.viewers.*; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -69,6 +70,7 @@ > * @param composite org.eclipse.swt.widgets.Composite > */ > private void addSelectionButtons(Composite composite) { >+ Font font = composite.getFont(); > > Composite buttonComposite = new Composite(composite,SWT.RIGHT); > GridLayout layout = new GridLayout(); >@@ -78,6 +80,7 @@ > composite.setData(data); > > Button selectButton = new Button(buttonComposite,SWT.PUSH); >+ selectButton.setFont(font); > selectButton.setText(SELECT_ALL_TITLE); > SelectionListener listener = new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { >@@ -87,6 +90,7 @@ > selectButton.addSelectionListener(listener); > > Button deselectButton = new Button(buttonComposite,SWT.PUSH); >+ deselectButton.setFont(font); > deselectButton.setText(DESELECT_ALL_TITLE); > listener = new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { >Index: Eclipse UI/org/eclipse/ui/dialogs/FilteredList.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredList.java,v >retrieving revision 1.2 >diff -u -r1.2 FilteredList.java >--- Eclipse UI/org/eclipse/ui/dialogs/FilteredList.java 24 Oct 2002 16:37:29 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/dialogs/FilteredList.java 29 Nov 2002 07:21:36 -0000 >@@ -167,6 +167,7 @@ > > fList= new Table(this, style); > fList.setLayoutData(new GridData(GridData.FILL_BOTH)); >+ fList.setFont(parent.getFont()); > fList.addDisposeListener(new DisposeListener() { > public void widgetDisposed(DisposeEvent e) { > fRenderer.dispose(); >Index: Eclipse UI/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java,v >retrieving revision 1.1 >diff -u -r1.1 MarkerResolutionSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java 29 Nov 2002 07:21:38 -0000 >@@ -88,6 +88,7 @@ > data.heightHint = convertHeightInCharsToPixels(LIST_HEIGHT); > data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH); > listViewer.getList().setLayoutData(data); >+ listViewer.getList().setFont(parent.getFont()); > // Set the label provider > listViewer.setLabelProvider(new LabelProvider() { > public String getText(Object element) { >Index: Eclipse UI/org/eclipse/ui/dialogs/NewFolderDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/NewFolderDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 NewFolderDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/NewFolderDialog.java 22 Nov 2002 22:53:21 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/dialogs/NewFolderDialog.java 29 Nov 2002 07:21:38 -0000 >@@ -16,6 +16,7 @@ > import org.eclipse.jface.resource.JFaceColors; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -187,12 +188,15 @@ > * @param parent the parent composite > */ > private void createLinkLocationGroup(Composite parent) { >+ Font font = parent.getFont(); >+ > Composite folderGroup = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 3; > folderGroup.setLayout(layout); > folderGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >- >+ folderGroup.setFont(font); >+ > final Button createLinkButton = > new Button(folderGroup, SWT.CHECK | SWT.RIGHT); > createLinkButton.setText(WorkbenchMessages.getString("NewFolderDialog.createLinkButton")); //$NON-NLS-1$ >@@ -200,6 +204,7 @@ > GridData data = new GridData(); > data.horizontalSpan = 3; > createLinkButton.setLayoutData(data); >+ createLinkButton.setFont(font); > createLinkButton.setEnabled(container instanceof IProject); > > createUserSpecifiedLinkLocationGroup(folderGroup, createLink); >@@ -224,6 +229,7 @@ > * @param parent the parent composite > */ > private void createFolderNameGroup(Composite parent) { >+ Font font = parent.getFont(); > // project specification group > Composite folderGroup = new Composite(parent,SWT.NONE); > GridLayout layout = new GridLayout(); >@@ -233,6 +239,7 @@ > > // new project label > Label folderLabel = new Label(folderGroup,SWT.NONE); >+ folderLabel.setFont(font); > folderLabel.setText(WorkbenchMessages.getString("NewFolderDialog.nameLabel")); //$NON-NLS-1$ > > // new project name entry field >@@ -240,6 +247,7 @@ > GridData data = new GridData(GridData.FILL_HORIZONTAL); > data.widthHint = SIZING_TEXT_FIELD_WIDTH; > folderNameField.setLayoutData(data); >+ folderNameField.setFont(font); > } > /** > * Creates a new folder with the given name and optionally linking to >@@ -304,6 +312,7 @@ > * @param enabled sets the initial enabled state of the widgets > */ > private void createUserSpecifiedLinkLocationGroup(Composite folderGroup, boolean enabled) { >+ Font font = folderGroup.getFont(); > Label fill = new Label(folderGroup, SWT.NONE); > GridData data = new GridData(); > Button button = new Button(folderGroup, SWT.CHECK); >@@ -316,11 +325,13 @@ > data = new GridData(); > data.widthHint = SIZING_TEXT_FIELD_WIDTH; > linkTargetField.setLayoutData(data); >+ linkTargetField.setFont(font); > linkTargetField.setEnabled(enabled); > > // browse button > browseButton = new Button(folderGroup, SWT.PUSH); > setButtonLayoutData(browseButton); >+ browseButton.setFont(font); > browseButton.setText(WorkbenchMessages.getString("NewFolderDialog.browseButton")); //$NON-NLS-1$ > browseButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >@@ -337,6 +348,7 @@ > // variables button > variablesButton = new Button(folderGroup, SWT.PUSH); > setButtonLayoutData(variablesButton); >+ variablesButton.setFont(font); > variablesButton.setText(WorkbenchMessages.getString("NewFolderDialog.variablesButton")); //$NON-NLS-1$ > variablesButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >Index: Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java,v >retrieving revision 1.3 >diff -u -r1.3 ProjectLocationMoveDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java 24 Oct 2002 16:37:49 -0000 1.3 >+++ Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java 29 Nov 2002 07:21:36 -0000 >@@ -9,6 +9,7 @@ > import org.eclipse.core.resources.IProject; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.widgets.*; >@@ -155,6 +156,7 @@ > //Add in a label for status messages if required > statusMessageLabel = new Label(composite, SWT.WRAP); > statusMessageLabel.setLayoutData(new GridData(GridData.FILL_BOTH)); >+ statusMessageLabel.setFont(parent.getFont()); > //Make it two lines. > statusMessageLabel.setText(" \n "); > >@@ -179,16 +181,18 @@ > * @param parent the parent composite > */ > private final void createProjectLocationGroup(Composite parent) { >- >+ Font font = parent.getFont(); > // project specification group > Composite projectGroup = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 3; > projectGroup.setLayout(layout); > projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >- >+ projectGroup.setFont(font); >+ > final Button useDefaultsButton = > new Button(projectGroup, SWT.CHECK | SWT.RIGHT); >+ useDefaultsButton.setFont(font); > useDefaultsButton.setText(WorkbenchMessages.getString("ProjectLocationSelectionDialog.useDefaultLabel")); //$NON-NLS-1$ > useDefaultsButton.setSelection(this.useDefaults); > GridData buttonData = new GridData(); >@@ -222,9 +226,10 @@ > * @param enabled - sets the initial enabled state of the widgets > */ > private Composite createUserSpecifiedProjectLocationGroup(Composite projectGroup, boolean enabled) { >- >+ Font font = projectGroup.getFont(); > // location label > locationLabel = new Label(projectGroup, SWT.NONE); >+ locationLabel.setFont(font); > locationLabel.setText(LOCATION_LABEL); > locationLabel.setEnabled(enabled); > >@@ -233,10 +238,12 @@ > GridData data = new GridData(GridData.FILL_HORIZONTAL); > data.widthHint = SIZING_TEXT_FIELD_WIDTH; > locationPathField.setLayoutData(data); >+ locationPathField.setFont(font); > locationPathField.setEnabled(enabled); > > // browse button > this.browseButton = new Button(projectGroup, SWT.PUSH); >+ this.browseButton.setFont(font); > this.browseButton.setText(BROWSE_LABEL); > this.browseButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >Index: Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java,v >retrieving revision 1.1 >diff -u -r1.1 ProjectLocationSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java 29 Nov 2002 07:21:39 -0000 >@@ -12,6 +12,7 @@ > import org.eclipse.jface.resource.JFaceColors; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -200,13 +201,15 @@ > * @param parent the parent composite > */ > private final void createProjectLocationGroup(Composite parent) { >- >+ Font font = parent.getFont(); >+ > // project specification group > Composite projectGroup = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 3; > projectGroup.setLayout(layout); > projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >+ projectGroup.setFont(font); > > final Button useDefaultsButton = > new Button(projectGroup, SWT.CHECK | SWT.RIGHT); >@@ -215,6 +218,7 @@ > GridData buttonData = new GridData(); > buttonData.horizontalSpan = 3; > useDefaultsButton.setLayoutData(buttonData); >+ useDefaultsButton.setFont(font); > > createUserSpecifiedProjectLocationGroup(projectGroup, !this.useDefaults); > >@@ -237,6 +241,7 @@ > * @param parent the parent composite > */ > private void createProjectNameGroup(Composite parent) { >+ Font font = parent.getFont(); > // project specification group > Composite projectGroup = new Composite(parent,SWT.NONE); > GridLayout layout = new GridLayout(); >@@ -246,6 +251,7 @@ > > // new project label > Label projectLabel = new Label(projectGroup,SWT.NONE); >+ projectLabel.setFont(font); > projectLabel.setText(PROJECT_NAME_LABEL); > > // new project name entry field >@@ -253,6 +259,7 @@ > GridData data = new GridData(GridData.FILL_HORIZONTAL); > data.widthHint = SIZING_TEXT_FIELD_WIDTH; > projectNameField.setLayoutData(data); >+ projectNameField.setFont(font); > > // Set the initial value first before listener > // to avoid handling an event during the creation. >@@ -272,9 +279,12 @@ > private Composite createUserSpecifiedProjectLocationGroup( > Composite projectGroup, > boolean enabled) { >- >+ >+ Font font = projectGroup.getFont(); >+ > // location label > locationLabel = new Label(projectGroup, SWT.NONE); >+ locationLabel.setFont(font); > locationLabel.setText(LOCATION_LABEL); > locationLabel.setEnabled(enabled); > >@@ -283,10 +293,12 @@ > GridData data = new GridData(GridData.FILL_HORIZONTAL); > data.widthHint = SIZING_TEXT_FIELD_WIDTH; > locationPathField.setLayoutData(data); >+ locationPathField.setFont(font); > locationPathField.setEnabled(enabled); > > // browse button > this.browseButton = new Button(projectGroup, SWT.PUSH); >+ this.browseButton.setFont(font); > this.browseButton.setText(BROWSE_LABEL); > this.browseButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >Index: Eclipse UI/org/eclipse/ui/dialogs/SelectionStatusDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/SelectionStatusDialog.java,v >retrieving revision 1.1 >diff -u -r1.1 SelectionStatusDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/SelectionStatusDialog.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/SelectionStatusDialog.java 29 Nov 2002 07:21:38 -0000 >@@ -7,6 +7,7 @@ > import java.util.Arrays; > > import org.eclipse.swt.SWT; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.graphics.Image; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; >@@ -140,6 +141,7 @@ > * @see Dialog#createButtonBar(Composite) > */ > protected Control createButtonBar(Composite parent) { >+ Font font = parent.getFont(); > Composite composite= new Composite(parent, SWT.NULL); > GridLayout layout= new GridLayout(); > if (fStatusLineAboveButtons) { >@@ -150,11 +152,13 @@ > layout.marginHeight= 0; layout.marginWidth= 0; > composite.setLayout(layout); > composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >- >+ composite.setFont(font); >+ > fStatusLine= new MessageLine(composite); > fStatusLine.setAlignment(SWT.LEFT); > fStatusLine.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > fStatusLine.setErrorStatus(null); //$NON-NLS-1$ >+ fStatusLine.setFont(font); > > GridData gd= new GridData(GridData.FILL_HORIZONTAL); > gd.horizontalIndent= convertWidthInCharsToPixels(1); >Index: Eclipse UI/org/eclipse/ui/dialogs/TwoPaneElementSelector.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/TwoPaneElementSelector.java,v >retrieving revision 1.1 >diff -u -r1.1 TwoPaneElementSelector.java >--- Eclipse UI/org/eclipse/ui/dialogs/TwoPaneElementSelector.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/TwoPaneElementSelector.java 29 Nov 2002 07:21:37 -0000 >@@ -120,6 +120,7 @@ > > Label label= new Label(parent, SWT.NONE); > label.setText(name); >+ label.setFont(parent.getFont()); > > return label; > } >@@ -159,6 +160,7 @@ > data.horizontalAlignment= GridData.FILL; > data.verticalAlignment= GridData.FILL; > list.setLayoutData(data); >+ list.setFont(parent.getFont()); > > fLowerList= list; > >Index: Eclipse UI/org/eclipse/ui/dialogs/TypeFilteringDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/TypeFilteringDialog.java,v >retrieving revision 1.3 >diff -u -r1.3 TypeFilteringDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/TypeFilteringDialog.java 26 Sep 2002 16:46:17 -0000 1.3 >+++ Eclipse UI/org/eclipse/ui/dialogs/TypeFilteringDialog.java 29 Nov 2002 07:21:39 -0000 >@@ -10,6 +10,7 @@ > import org.eclipse.jface.viewers.CheckboxTableViewer; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.Button; >@@ -78,11 +79,11 @@ > * @param composite org.eclipse.swt.widgets.Composite > */ > private void addSelectionButtons(Composite composite) { >- > Composite buttonComposite = new Composite(composite, SWT.RIGHT); > GridLayout layout = new GridLayout(); > layout.numColumns = 2; > buttonComposite.setLayout(layout); >+ buttonComposite.setFont(composite.getFont()); > GridData data = > new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL); > data.grabExcessHorizontalSpace = true; >@@ -194,6 +195,7 @@ > data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; > data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; > listViewer.getTable().setLayoutData(data); >+ listViewer.getTable().setFont(parent.getFont()); > > listViewer.setLabelProvider(FileEditorMappingLabelProvider.INSTANCE); > listViewer.setContentProvider(FileEditorMappingContentProvider.INSTANCE); >@@ -215,7 +217,7 @@ > * @param parent the parent this is being created in. > */ > private void createUserEntryGroup(Composite parent) { >- >+ Font font = parent.getFont(); > // destination specification group > Composite userDefinedGroup = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); >@@ -223,11 +225,14 @@ > userDefinedGroup.setLayout(layout); > userDefinedGroup.setLayoutData( > new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL)); >- >- new Label(userDefinedGroup, SWT.NONE).setText(filterTitle); //$NON-NLS-1$ >+ >+ Label fTitle = new Label(userDefinedGroup, SWT.NONE); >+ fTitle.setFont(font); >+ fTitle.setText(filterTitle); //$NON-NLS-1$ > > // user defined entry field > userDefinedText = new Text(userDefinedGroup, SWT.SINGLE | SWT.BORDER); >+ userDefinedText.setFont(font); > GridData data = > new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); > userDefinedText.setLayoutData(data); >Index: Eclipse UI/org/eclipse/ui/dialogs/WizardNewLinkPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/WizardNewLinkPage.java,v >retrieving revision 1.1 >diff -u -r1.1 WizardNewLinkPage.java >--- Eclipse UI/org/eclipse/ui/dialogs/WizardNewLinkPage.java 26 Nov 2002 21:28:24 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/dialogs/WizardNewLinkPage.java 29 Nov 2002 07:21:38 -0000 >@@ -14,6 +14,7 @@ > import org.eclipse.jface.wizard.WizardPage; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -57,6 +58,7 @@ > * Method declared on IDialogPage. > */ > public void createControl(Composite parent) { >+ Font font = parent.getFont(); > initializeDialogUnits(parent); > // top level group > Composite topLevel = new Composite(parent,SWT.NONE); >@@ -65,7 +67,7 @@ > topLevel.setLayout(layout); > topLevel.setLayoutData(new GridData( > GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); >- topLevel.setFont(parent.getFont()); >+ topLevel.setFont(font); > WorkbenchHelp.setHelp(topLevel, IHelpContextIds.NEW_LINK_WIZARD_PAGE); > > final Button createLinkButton = new Button(topLevel, SWT.CHECK); >@@ -77,6 +79,7 @@ > GridData data = new GridData(); > data.horizontalSpan = 3; > createLinkButton.setLayoutData(data); >+ createLinkButton.setFont(font); > SelectionListener listener = new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { > createLink = createLinkButton.getSelection(); >@@ -102,6 +105,7 @@ > * @param enabled sets the initial enabled state of the widgets > */ > private void createLinkLocationGroup(Composite locationGroup, boolean enabled) { >+ Font font = locationGroup.getFont(); > Label fill = new Label(locationGroup, SWT.NONE); > GridData data = new GridData(); > Button button = new Button(locationGroup, SWT.CHECK); >@@ -113,6 +117,7 @@ > linkTargetField = new Text(locationGroup, SWT.BORDER); > data = new GridData(GridData.FILL_HORIZONTAL); > linkTargetField.setLayoutData(data); >+ linkTargetField.setFont(font); > linkTargetField.setEnabled(enabled); > linkTargetField.addModifyListener(new ModifyListener() { > public void modifyText(ModifyEvent e) { >@@ -126,6 +131,7 @@ > // browse button > browseButton = new Button(locationGroup, SWT.PUSH); > setButtonLayoutData(browseButton); >+ browseButton.setFont(font); > browseButton.setText(WorkbenchMessages.getString("WizardNewLinkPage.browseButton")); //$NON-NLS-1$ > browseButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >@@ -142,6 +148,7 @@ > // variables button > variablesButton = new Button(locationGroup, SWT.PUSH); > setButtonLayoutData(variablesButton); >+ variablesButton.setFont(font); > variablesButton.setText(WorkbenchMessages.getString("WizardNewLinkPage.variablesButton")); //$NON-NLS-1$ > variablesButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >Index: Eclipse UI/org/eclipse/ui/internal/WelcomePageSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WelcomePageSelectionDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 WelcomePageSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/internal/WelcomePageSelectionDialog.java 24 Oct 2002 17:30:32 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/WelcomePageSelectionDialog.java 29 Nov 2002 07:21:39 -0000 >@@ -80,6 +80,7 @@ > data.heightHint = convertHeightInCharsToPixels(LIST_HEIGHT); > data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH); > listViewer.getList().setLayoutData(data); >+ listViewer.getList().setFont(parent.getFont()); > // Set the label provider > listViewer.setLabelProvider(new LabelProvider() { > public String getText(Object element) { >Index: Eclipse UI/org/eclipse/ui/internal/actions/keybindings/DialogCustomize.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/actions/keybindings/DialogCustomize.java,v >retrieving revision 1.4 >diff -u -r1.4 DialogCustomize.java >--- Eclipse UI/org/eclipse/ui/internal/actions/keybindings/DialogCustomize.java 21 Nov 2002 20:49:48 -0000 1.4 >+++ Eclipse UI/org/eclipse/ui/internal/actions/keybindings/DialogCustomize.java 29 Nov 2002 07:21:46 -0000 >@@ -692,6 +692,7 @@ > GridData gridDataTable = new GridData(GridData.FILL_BOTH); > gridDataTable.heightHint = 100; > table.setLayoutData(gridDataTable); >+ table.setFont(font); > > TableColumn tableColumn = new TableColumn(table, SWT.NULL, 0); > tableColumn.setResizable(false); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 AboutFeaturesDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java 24 Oct 2002 17:36:24 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java 29 Nov 2002 07:21:42 -0000 >@@ -17,6 +17,7 @@ > import org.eclipse.swt.custom.StyledText; > import org.eclipse.swt.events.*; > import org.eclipse.swt.graphics.Cursor; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.graphics.Image; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; >@@ -210,6 +211,8 @@ > * Create the info area containing the image and text > */ > protected void createInfoArea(Composite parent) { >+ Font font = parent.getFont(); >+ > infoArea = new Composite(parent, SWT.NULL); > GridLayout layout= new GridLayout(); > layout.numColumns = 2; >@@ -225,6 +228,7 @@ > data.heightHint = 32; > data.widthHint = 32; > imageLabel.setLayoutData(data); >+ imageLabel.setFont(font); > > // text on the right > text = new StyledText(infoArea, SWT.MULTI | SWT.READ_ONLY); >@@ -235,6 +239,7 @@ > data.verticalAlignment = GridData.BEGINNING; > data.grabExcessHorizontalSpace = true; > text.setLayoutData(data); >+ text.setFont(font); > text.setCursor(null); > text.setBackground(infoArea.getBackground()); > addListeners(text); >@@ -256,7 +261,8 @@ > SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER); > table.setHeaderVisible(true); > table.setLinesVisible(true); >- >+ table.setFont(parent.getFont()); >+ > SelectionListener listener = new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { > AboutInfo info = (AboutInfo)e.item.getData(); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/AboutPluginsDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutPluginsDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 AboutPluginsDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/AboutPluginsDialog.java 24 Oct 2002 17:36:34 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/AboutPluginsDialog.java 29 Nov 2002 07:21:41 -0000 >@@ -156,6 +156,7 @@ > if (message != null) { > Label label = new Label(outer, SWT.NONE); > label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >+ label.setFont(parent.getFont()); > label.setText(message); > } > >@@ -185,7 +186,8 @@ > SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER); > vendorInfo.setHeaderVisible(true); > vendorInfo.setLinesVisible(true); >- >+ vendorInfo.setFont(parent.getFont()); >+ > SelectionListener listener = new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { > setMoreButtonEnablement(e.item != null); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetSelectionDialog.java,v >retrieving revision 1.3 >diff -u -r1.3 ActionSetSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetSelectionDialog.java 22 Nov 2002 19:53:12 -0000 1.3 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetSelectionDialog.java 29 Nov 2002 07:21:40 -0000 >@@ -133,7 +133,7 @@ > // ...second the label > Label selectionLabel = new Label(actionSetGroup,SWT.NONE); > selectionLabel.setText(WorkbenchMessages.getString("ActionSetSelection.available")); //$NON-NLS-1$ >- selectionLabel.setFont(parent.getFont()); >+ selectionLabel.setFont(font); > > // ...third the checkbox list > actionSetViewer = new CheckboxTreeViewer(actionSetGroup, SWT.BORDER); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/CheckboxSingleListGroup.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CheckboxSingleListGroup.java,v >retrieving revision 1.1 >diff -u -r1.1 CheckboxSingleListGroup.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/CheckboxSingleListGroup.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/CheckboxSingleListGroup.java 29 Nov 2002 07:21:42 -0000 >@@ -120,6 +120,7 @@ > * @param height int > */ > protected void createContents(Composite parent,int width,int height) { >+ Font font = parent.getFont(); > // group pane > Composite composite = new Composite(parent,SWT.NONE); > GridLayout layout = new GridLayout(); >@@ -131,6 +132,7 @@ > spec.verticalAlignment = GridData.FILL; > composite.setLayout(layout); > composite.setLayoutData(spec); >+ composite.setFont(font); > > // list 1 view pane. Add a border to the pane. > Composite pane = createViewPane(composite, width/2, height/2); >@@ -141,6 +143,7 @@ > list1Viewer.setLabelProvider(list1LabelProvider); > list1Viewer.addCheckStateListener(this); > list1Viewer.addSelectionChangedListener(this); >+ list1Viewer.getTable().setFont(font); > > // this has to be done after the viewers have been laid out > list1Viewer.setInput(root); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/EditorSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/EditorSelectionDialog.java,v >retrieving revision 1.4 >diff -u -r1.4 EditorSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/EditorSelectionDialog.java 24 Oct 2002 17:36:50 -0000 1.4 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/EditorSelectionDialog.java 29 Nov 2002 07:21:43 -0000 >@@ -103,6 +103,7 @@ > * @return the dialog area control > */ > protected Control createDialogArea(Composite parent) { >+ Font font = parent.getFont(); > // create main group > Composite contents = (Composite)super.createDialogArea(parent); > ((GridLayout)contents.getLayout()).numColumns = 2; >@@ -113,7 +114,7 @@ > GridData data = new GridData(); > data.horizontalSpan = 2; > textLabel.setLayoutData(data); >- textLabel.setFont(parent.getFont()); >+ textLabel.setFont(font); > > internalButton = new Button(contents, SWT.RADIO | SWT.LEFT); > internalButton.setText(WorkbenchMessages.getString("EditorSelection.internal")); //$NON-NLS-1$ >@@ -121,7 +122,7 @@ > data = new GridData(); > data.horizontalSpan = 1; > internalButton.setLayoutData(data); >- internalButton.setFont(parent.getFont()); >+ internalButton.setFont(font); > > externalButton = new Button(contents, SWT.RADIO | SWT.LEFT); > externalButton.setText(WorkbenchMessages.getString("EditorSelection.external")); //$NON-NLS-1$ >@@ -129,7 +130,7 @@ > data = new GridData(); > data.horizontalSpan = 1; > externalButton.setLayoutData(data); >- externalButton.setFont(parent.getFont()); >+ externalButton.setFont(font); > > editorTable = new Table(contents, SWT.SINGLE | SWT.BORDER); > editorTable.addListener(SWT.Selection, this); >@@ -143,6 +144,7 @@ > data.grabExcessVerticalSpace= true; > data.horizontalSpan = 2; > editorTable.setLayoutData(data); >+ editorTable.setFont(font); > data.heightHint = editorTable.getItemHeight()*12; > > browseExternalEditorsButton = new Button(contents, SWT.PUSH); >@@ -153,7 +155,7 @@ > int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); > data.widthHint = Math.max(widthHint, browseExternalEditorsButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x); > browseExternalEditorsButton.setLayoutData(data); >- browseExternalEditorsButton.setFont(parent.getFont()); >+ browseExternalEditorsButton.setFont(font); > > restoreWidgetValues(); // Place buttons to the appropriate state > >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/FilterDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FilterDialog.java,v >retrieving revision 1.1 >diff -u -r1.1 FilterDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/FilterDialog.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/FilterDialog.java 29 Nov 2002 07:21:42 -0000 >@@ -16,6 +16,7 @@ > import org.eclipse.jface.window.Window; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.*; > import org.eclipse.swt.widgets.*; > import org.eclipse.ui.*; >@@ -99,6 +100,7 @@ > * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(Composite) > */ > protected Control createDialogArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = (Composite) super.createDialogArea(parent); > Composite group = new Composite(composite, SWT.NONE); > GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); >@@ -117,6 +119,7 @@ > data = new GridData(); > data.horizontalSpan = 2; > workingSetButton.setLayoutData(data); >+ workingSetButton.setFont(font); > > group = new Composite(group, SWT.NONE); > data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); >@@ -124,10 +127,12 @@ > layout = new GridLayout(); > layout.marginHeight = 0; > group.setLayout(layout); >+ group.setFont(font); > > mruList = new Combo(group, SWT.DROP_DOWN | SWT.READ_ONLY); > data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); > mruList.setLayoutData(data); >+ mruList.setFont(font); > selectButton = createButton(group, SELECT_ID, WorkbenchMessages.getString("FilterDialog.workingSetOther"), false); //$NON-NLS-1$ > > initializeMru(); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepConfigureWizardPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepConfigureWizardPage.java,v >retrieving revision 1.2 >diff -u -r1.2 MultiStepConfigureWizardPage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepConfigureWizardPage.java 24 Oct 2002 17:44:00 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepConfigureWizardPage.java 29 Nov 2002 07:21:42 -0000 >@@ -69,6 +69,7 @@ > layout.numColumns = 2; > composite.setLayout(layout); > composite.setLayoutData(new GridData(GridData.FILL_BOTH)); >+ composite.setFont(parent.getFont()); > > WorkbenchHelp.setHelp(composite, IHelpContextIds.NEW_PROJECT_CONFIGURE_WIZARD_PAGE); > >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepReviewWizardPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepReviewWizardPage.java,v >retrieving revision 1.2 >diff -u -r1.2 MultiStepReviewWizardPage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepReviewWizardPage.java 24 Oct 2002 17:44:06 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepReviewWizardPage.java 29 Nov 2002 07:21:40 -0000 >@@ -12,6 +12,7 @@ > import org.eclipse.jface.viewers.*; > import org.eclipse.jface.wizard.WizardPage; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -78,6 +79,7 @@ > * Creates the control for the details > */ > private void createDetailsGroup(Composite parent) { >+ Font font = parent.getFont(); > // Create a composite to hold everything together > Composite composite = new Composite(parent, SWT.NULL); > composite.setLayout(new GridLayout()); >@@ -89,12 +91,14 @@ > GridData data = new GridData(); > data.verticalAlignment = SWT.TOP; > label.setLayoutData(data); >+ label.setFont(font); > > // Text field to display the step's details > detailsField = new Text(composite, SWT.WRAP | SWT.MULTI | SWT.V_SCROLL | SWT.BORDER); > detailsField.setText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); // prefill to show 15 lines //$NON-NLS-1$ > detailsField.setEditable(false); > detailsField.setLayoutData(new GridData(GridData.FILL_BOTH)); >+ detailsField.setFont(font); > } > > /** >@@ -107,6 +111,7 @@ > data.verticalAlignment = SWT.TOP; > data.horizontalSpan = 2; > instructionLabel.setLayoutData(data); >+ instructionLabel.setFont(parent.getFont()); > } > > /** >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/PathVariableDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PathVariableDialog.java,v >retrieving revision 1.6 >diff -u -r1.6 PathVariableDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/PathVariableDialog.java 22 Nov 2002 22:49:55 -0000 1.6 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/PathVariableDialog.java 29 Nov 2002 07:21:41 -0000 >@@ -234,6 +234,7 @@ > data.width = convertWidthInCharsToPixels(50); > data.left = new FormAttachment(largerLabel, convertHorizontalDLUsToPixels(5)); > variableNameField.setLayoutData(data); >+ variableNameField.setFont(font); > variableNameField.setFocus(); > > variableNameField.addModifyListener(new ModifyListener() { >@@ -251,7 +252,8 @@ > data.left = new FormAttachment(largerLabel, convertHorizontalDLUsToPixels(5)); > data.top = new FormAttachment(variableNameLabel, convertVerticalDLUsToPixels(10)); > variableValueField.setLayoutData(data); >- >+ variableValueField.setFont(font); >+ > variableValueField.addModifyListener(new ModifyListener() { > public void modifyText(ModifyEvent event) { > variableValueModified(); >@@ -269,6 +271,7 @@ > data.left = new FormAttachment(variableValueField, convertHorizontalDLUsToPixels(10)); > data.right = new FormAttachment(100, -5); > fileButton.setLayoutData(data); >+ fileButton.setFont(font); > > fileButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { >@@ -287,6 +290,7 @@ > data.left = new FormAttachment(variableValueField, convertHorizontalDLUsToPixels(10)); > data.right = new FormAttachment(100, -5); > folderButton.setLayoutData(data); >+ folderButton.setFont(font); > > folderButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityEditingPropertyPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityEditingPropertyPage.java,v >retrieving revision 1.2 >diff -u -r1.2 ProjectCapabilityEditingPropertyPage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityEditingPropertyPage.java 24 Oct 2002 17:45:11 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityEditingPropertyPage.java 29 Nov 2002 07:21:42 -0000 >@@ -23,6 +23,7 @@ > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.SelectionEvent; > import org.eclipse.swt.events.SelectionListener; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.graphics.Image; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; >@@ -61,6 +62,7 @@ > * Method declared on PreferencePage > */ > protected Control createContents(Composite parent) { >+ Font font = parent.getFont(); > WorkbenchHelp.setHelp(parent, IHelpContextIds.PROJECT_CAPABILITY_PROPERTY_PAGE); > noDefaultAndApplyButton(); > reg = WorkbenchPlugin.getDefault().getCapabilityRegistry(); >@@ -78,6 +80,7 @@ > else > instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.noCapabilities"); //$NON-NLS-1$ > Label label = new Label(topComposite, SWT.LEFT); >+ label.setFont(font); > label.setText(instructions); > > Capability[] caps = reg.getProjectDisabledCapabilities(getProject()); >@@ -99,10 +102,12 @@ > capComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); > > label = new Label(capComposite, SWT.LEFT); >+ label.setFont(font); > label.setText(WorkbenchMessages.getString("ProjectCapabilitySelectionGroup.capabilities")); //$NON-NLS-1$ > > table = new TableViewer(capComposite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); > table.getTable().setLayoutData(new GridData(GridData.FILL_BOTH)); >+ table.getTable().setFont(font); > table.setLabelProvider(new CapabilityLabelProvider()); > table.setContentProvider(getContentProvider()); > table.setInput(getProject()); >@@ -115,6 +120,7 @@ > buttonComposite.setLayoutData(new GridData(GridData.FILL_VERTICAL)); > > label = new Label(buttonComposite, SWT.LEFT); >+ label.setFont(font); > label.setText(""); //$NON-NLS-1$ > > addButton = new Button(buttonComposite, SWT.PUSH); >@@ -133,6 +139,7 @@ > int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); > data.widthHint = Math.max(widthHint, addButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x); > addButton.setLayoutData(data); >+ addButton.setFont(font); > > removeButton = new Button(buttonComposite, SWT.PUSH); > removeButton.setText(WorkbenchMessages.getString("ProjectCapabilityEditingPropertyPage.remove")); //$NON-NLS-1$ >@@ -150,6 +157,7 @@ > widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); > data.widthHint = Math.max(widthHint, removeButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x); > removeButton.setLayoutData(data); >+ removeButton.setFont(font); > > table.addSelectionChangedListener(new ISelectionChangedListener() { > public void selectionChanged(SelectionChangedEvent event) { >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityPropertyPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityPropertyPage.java,v >retrieving revision 1.2 >diff -u -r1.2 ProjectCapabilityPropertyPage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityPropertyPage.java 24 Oct 2002 17:45:17 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityPropertyPage.java 29 Nov 2002 07:21:43 -0000 >@@ -63,6 +63,7 @@ > else > instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.noCapabilities"); //$NON-NLS-1$ > Label label = new Label(parent, SWT.LEFT); >+ label.setFont(parent.getFont()); > label.setText(instructions); > > Capability[] caps = reg.getProjectCapabilities(getProject()); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilitySimpleSelectionPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilitySimpleSelectionPage.java,v >retrieving revision 1.2 >diff -u -r1.2 ProjectCapabilitySimpleSelectionPage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilitySimpleSelectionPage.java 24 Oct 2002 17:46:17 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilitySimpleSelectionPage.java 29 Nov 2002 07:21:43 -0000 >@@ -17,6 +17,7 @@ > import org.eclipse.jface.wizard.*; > import org.eclipse.swt.SWT; > import org.eclipse.swt.custom.BusyIndicator; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.Composite; >@@ -60,6 +61,7 @@ > * Method declared on IDialogPage > */ > public void createControl(Composite parent) { >+ Font font = parent.getFont(); > Composite topContainer = new Composite(parent, SWT.NONE); > topContainer.setLayout(new GridLayout()); > topContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); >@@ -69,9 +71,11 @@ > GridData data = new GridData(); > data.verticalAlignment = SWT.TOP; > label.setLayoutData(data); >+ label.setFont(font); > > viewer = new TreeViewer(topContainer, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); > viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH)); >+ viewer.getTree().setFont(font); > viewer.setLabelProvider(new WorkbenchLabelProvider()); > viewer.setContentProvider(getContentProvider()); > viewer.setInput(reg); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectPerspectiveChoiceDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectPerspectiveChoiceDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 ProjectPerspectiveChoiceDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectPerspectiveChoiceDialog.java 24 Oct 2002 17:46:23 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectPerspectiveChoiceDialog.java 29 Nov 2002 07:21:41 -0000 >@@ -20,6 +20,7 @@ > import org.eclipse.swt.custom.BusyIndicator; > import org.eclipse.swt.events.SelectionAdapter; > import org.eclipse.swt.events.SelectionEvent; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -120,9 +121,10 @@ > * @param parent the parent composite > */ > private void createPerspectiveGroup(Composite parent) { >- >+ Font font = parent.getFont(); > // Label for choosing perspective > Label label = new Label(parent, SWT.NONE); >+ label.setFont(font); > label.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.choosePerspective")); //$NON-NLS-1$ > > // Add perspective list. >@@ -132,6 +134,7 @@ > list.setInput(persps); > list.addSelectionChangedListener(new SelectionListener()); > list.getTable().setLayoutData(new GridData(GridData.FILL_BOTH)); >+ list.getTable().setFont(font); > } > > /** >@@ -140,13 +143,14 @@ > * @param parent the parent composite > */ > private void createOptionGroup(Composite parent) { >- >+ Font font = parent.getFont(); > // Create the option group > Group optionGroup = new Group(parent, SWT.LEFT); > GridLayout layout = new GridLayout(); > optionGroup.setLayout(layout); > GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); > optionGroup.setLayoutData(data); >+ optionGroup.setFont(font); > optionGroup.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.options")); //$NON-NLS-1$ > > // Same window option >@@ -154,6 +158,7 @@ > button.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.sameWindow")); //$NON-NLS-1$ > data = new GridData(); > button.setLayoutData(data); >+ button.setFont(font); > button.setSelection(sameWindow); > button.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { >@@ -166,6 +171,7 @@ > button.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.newWindow")); //$NON-NLS-1$ > data = new GridData(); > button.setLayoutData(data); >+ button.setFont(font); > button.setSelection(!sameWindow); > button.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent e) { >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceListSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceListSelectionDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 ResourceListSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceListSelectionDialog.java 25 Nov 2002 14:14:33 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceListSelectionDialog.java 29 Nov 2002 07:21:41 -0000 >@@ -11,6 +11,7 @@ > import org.eclipse.core.resources.IResource; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.*; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.graphics.Image; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.widgets.*; >@@ -156,37 +157,49 @@ > * listener and the update thread. > */ > protected Control createDialogArea(Composite parent) { >+ Font font = parent.getFont(); > Composite dialogArea = (Composite)super.createDialogArea(parent); >+ > Label l = new Label(dialogArea,SWT.NONE); > l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.label")); //$NON-NLS-1$ > GridData data = new GridData(GridData.FILL_HORIZONTAL); > l.setLayoutData(data); >+ l.setFont(font); > > l = new Label(dialogArea,SWT.NONE); > l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.pattern")); //$NON-NLS-1$ > data = new GridData(GridData.FILL_HORIZONTAL); > l.setLayoutData(data); >+ l.setFont(font); >+ > pattern = new Text(dialogArea,SWT.SINGLE|SWT.BORDER); > pattern.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >+ pattern.setFont(font); >+ > l = new Label(dialogArea,SWT.NONE); > l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.matching")); //$NON-NLS-1$ > data = new GridData(GridData.FILL_HORIZONTAL); > l.setLayoutData(data); >+ l.setFont(font); >+ > resourceNames = new Table(dialogArea,SWT.SINGLE|SWT.BORDER|SWT.V_SCROLL); > data = new GridData(GridData.FILL_BOTH); > data.heightHint = 12 * resourceNames.getItemHeight(); > resourceNames.setLayoutData(data); >+ resourceNames.setFont(font); > > l = new Label(dialogArea,SWT.NONE); > l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.folders")); //$NON-NLS-1$ > data = new GridData(GridData.FILL_HORIZONTAL); > l.setLayoutData(data); >+ l.setFont(font); > > folderNames = new Table(dialogArea,SWT.SINGLE|SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL); > data = new GridData(GridData.FILL_BOTH); > data.widthHint = 300; > data.heightHint = 4 * folderNames.getItemHeight(); > folderNames.setLayoutData(data); >+ folderNames.setFont(font); > > updateThread = new UpdateThread(); > updateThread.start(); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java,v >retrieving revision 1.4 >diff -u -r1.4 ResourceWorkingSetPage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java 27 Sep 2002 15:11:07 -0000 1.4 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java 29 Nov 2002 07:21:41 -0000 >@@ -23,6 +23,7 @@ > import org.eclipse.swt.custom.BusyIndicator; > import org.eclipse.swt.events.ModifyEvent; > import org.eclipse.swt.events.ModifyListener; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -65,6 +66,7 @@ > * @see org.eclipse.jface.wizard.WizardPage#createControl(Composite) > */ > public void createControl(Composite parent) { >+ Font font = parent.getFont(); > Composite composite= new Composite(parent, SWT.NULL); > composite.setLayout(new GridLayout()); > composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); >@@ -75,9 +77,11 @@ > label.setText(WorkbenchMessages.getString("ResourceWorkingSetPage.message")); //$NON-NLS-1$ > GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); > label.setLayoutData(data); >+ label.setFont(font); > > text = new Text(composite, SWT.SINGLE | SWT.BORDER); > text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); >+ text.setFont(font); > text.addModifyListener( > new ModifyListener() { > public void modifyText(ModifyEvent e) { >@@ -91,6 +95,7 @@ > label.setText(WorkbenchMessages.getString("ResourceWorkingSetPage.label.tree")); //$NON-NLS-1$ > data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); > label.setLayoutData(data); >+ label.setFont(font); > > tree = new CheckboxTreeViewer(composite); > tree.setUseHashlookup(true); >@@ -106,6 +111,7 @@ > data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; > data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; > tree.getControl().setLayoutData(data); >+ tree.getControl().setFont(font); > > tree.addCheckStateListener(new ICheckStateListener() { > public void checkStateChanged(CheckStateChangedEvent event) { >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/SavePerspectiveDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/SavePerspectiveDialog.java,v >retrieving revision 1.3 >diff -u -r1.3 SavePerspectiveDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/SavePerspectiveDialog.java 22 Nov 2002 19:45:50 -0000 1.3 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/SavePerspectiveDialog.java 29 Nov 2002 07:21:40 -0000 >@@ -9,6 +9,7 @@ > import org.eclipse.jface.viewers.*; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.ModifyListener; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -73,6 +74,7 @@ > * @return the dialog area control > */ > protected Control createDialogArea(Composite parent) { >+ Font font = parent.getFont(); > // Run super. > Composite composite = (Composite)super.createDialogArea(parent); > >@@ -98,7 +100,7 @@ > // Create name label. > label = new Label(nameGroup, SWT.NONE); > label.setText(WorkbenchMessages.getString("SavePerspective.name")); //$NON-NLS-1$ >- label.setFont(parent.getFont()); >+ label.setFont(font); > > // Add text field. > text = new Text(nameGroup, SWT.BORDER); >@@ -106,6 +108,7 @@ > data = new GridData(GridData.FILL_HORIZONTAL); > data.widthHint = convertWidthInCharsToPixels(TEXT_WIDTH); > text.setLayoutData(data); >+ text.setFont(font); > text.addModifyListener(this); > > // Spacer. >@@ -117,7 +120,7 @@ > // Another label. > label = new Label(composite, SWT.NONE); > label.setText(WorkbenchMessages.getString("SavePerspective.existing")); //$NON-NLS-1$ >- label.setFont(parent.getFont()); >+ label.setFont(font); > > // Add perspective list. > list = new TableViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); >@@ -126,7 +129,7 @@ > list.setSorter(new ViewerSorter() {}); > list.setInput(perspReg); > list.addSelectionChangedListener(this); >- list.getTable().setFont(parent.getFont()); >+ list.getTable().setFont(font); > > // Set perspective list size. > Control ctrl = list.getControl(); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/SelectPerspectiveDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/SelectPerspectiveDialog.java,v >retrieving revision 1.4 >diff -u -r1.4 SelectPerspectiveDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/SelectPerspectiveDialog.java 22 Nov 2002 20:00:49 -0000 1.4 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/SelectPerspectiveDialog.java 29 Nov 2002 07:21:39 -0000 >@@ -80,6 +80,7 @@ > > // Add perspective list. > list = new TableViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); >+ list.getTable().setFont(parent.getFont()); > list.setLabelProvider(new PerspLabelProvider()); > list.setContentProvider(new PerspContentProvider()); > list.setSorter(new ViewerSorter() {}); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/WizardNewProjectNameAndLocationPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardNewProjectNameAndLocationPage.java,v >retrieving revision 1.1 >diff -u -r1.1 WizardNewProjectNameAndLocationPage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/WizardNewProjectNameAndLocationPage.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/WizardNewProjectNameAndLocationPage.java 29 Nov 2002 07:21:40 -0000 >@@ -24,6 +24,7 @@ > import org.eclipse.swt.events.SelectionAdapter; > import org.eclipse.swt.events.SelectionEvent; > import org.eclipse.swt.events.SelectionListener; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.Button; >@@ -111,6 +112,7 @@ > Composite composite = new Composite(parent, SWT.NULL); > composite.setLayout(new GridLayout()); > composite.setLayoutData(new GridData(GridData.FILL_BOTH)); >+ composite.setFont(parent.getFont()); > > WorkbenchHelp.setHelp(composite, IHelpContextIds.NEW_PROJECT_WIZARD_PAGE); > >@@ -131,16 +133,18 @@ > * @param parent the parent composite > */ > private final void createProjectLocationGroup(Composite parent) { >- >+ Font font = parent.getFont(); > // project specification group > Composite projectGroup = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 3; > projectGroup.setLayout(layout); > projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >- >+ projectGroup.setFont(font); >+ > // new project label > Label projectContentsLabel = new Label(projectGroup, SWT.NONE); >+ projectContentsLabel.setFont(font); > projectContentsLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.projectContentsLabel")); //$NON-NLS-1$ > > GridData labelData = new GridData(); >@@ -150,6 +154,7 @@ > final Button useDefaultsButton = new Button(projectGroup, SWT.CHECK | SWT.RIGHT); > useDefaultsButton.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.useDefaultLabel")); //$NON-NLS-1$ > useDefaultsButton.setSelection(useDefaults); >+ useDefaultsButton.setFont(font); > > GridData buttonData = new GridData(); > buttonData.horizontalSpan = 3; >@@ -180,6 +185,7 @@ > * @param parent the parent composite > */ > private final void createProjectNameGroup(Composite parent) { >+ Font font = parent.getFont(); > // project specification group > Composite projectGroup = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); >@@ -189,6 +195,7 @@ > > // new project label > Label projectLabel = new Label(projectGroup, SWT.NONE); >+ projectLabel.setFont(font); > projectLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.nameLabel")); //$NON-NLS-1$ > > // new project name entry field >@@ -196,6 +203,7 @@ > GridData data = new GridData(GridData.FILL_HORIZONTAL); > data.widthHint = SIZING_TEXT_FIELD_WIDTH; > projectNameField.setLayoutData(data); >+ projectNameField.setFont(font); > > // Set the initial value first before listener > // to avoid handling an event during the creation. >@@ -211,9 +219,10 @@ > * @param boolean - the initial enabled state of the widgets created > */ > private void createUserSpecifiedProjectLocationGroup(Composite projectGroup, boolean enabled) { >- >+ Font font = projectGroup.getFont(); > // location label > locationLabel = new Label(projectGroup, SWT.NONE); >+ locationLabel.setFont(font); > locationLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.locationLabel")); //$NON-NLS-1$ > locationLabel.setEnabled(enabled); > >@@ -222,10 +231,12 @@ > GridData data = new GridData(GridData.FILL_HORIZONTAL); > data.widthHint = SIZING_TEXT_FIELD_WIDTH; > locationPathField.setLayoutData(data); >+ locationPathField.setFont(font); > locationPathField.setEnabled(enabled); > > // browse button > browseButton = new Button(projectGroup, SWT.PUSH); >+ browseButton.setFont(font); > browseButton.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.browseLabel")); //$NON-NLS-1$ > browseButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetSelectionDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetSelectionDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 WorkingSetSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetSelectionDialog.java 27 Sep 2002 15:13:57 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetSelectionDialog.java 29 Nov 2002 07:21:40 -0000 >@@ -127,6 +127,7 @@ > GridLayout layout = new GridLayout(); > layout.numColumns = 2; > buttonComposite.setLayout(layout); >+ buttonComposite.setFont(composite.getFont()); > GridData data = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL); > data.grabExcessHorizontalSpace = true; > composite.setData(data); >@@ -188,6 +189,7 @@ > data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; > data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; > listViewer.getTable().setLayoutData(data); >+ listViewer.getTable().setFont(parent.getFont()); > > listViewer.setLabelProvider(labelProvider); > listViewer.setContentProvider(contentProvider); >Index: Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetTypePage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetTypePage.java,v >retrieving revision 1.1 >diff -u -r1.1 WorkingSetTypePage.java >--- Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetTypePage.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetTypePage.java 29 Nov 2002 07:21:41 -0000 >@@ -18,6 +18,7 @@ > import org.eclipse.jface.viewers.*; > import org.eclipse.jface.wizard.WizardPage; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.graphics.Image; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; >@@ -87,6 +88,7 @@ > * @see org.eclipse.jface.dialogs.IDialogPage#createControl(Composite) > */ > public void createControl(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NULL); > composite.setLayout(new GridLayout()); > composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); >@@ -97,12 +99,14 @@ > typesLabel.setText(WorkbenchMessages.getString("WorkingSetTypePage.typesLabel")); //$NON-NLS-1$ > GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); > typesLabel.setLayoutData(data); >+ typesLabel.setFont(font); > > typesListViewer = new TableViewer(composite, SWT.BORDER | SWT.MULTI); > data = new GridData(GridData.FILL_BOTH); > data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; > data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; > typesListViewer.getTable().setLayoutData(data); >+ typesListViewer.getTable().setFont(font); > typesListViewer.addSelectionChangedListener(new ISelectionChangedListener() { > public void selectionChanged(SelectionChangedEvent event) { > handleSelectionChanged(); >Index: Eclipse UI/org/eclipse/ui/internal/misc/CheckboxDoubleListGroup.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/misc/CheckboxDoubleListGroup.java,v >retrieving revision 1.1 >diff -u -r1.1 CheckboxDoubleListGroup.java >--- Eclipse UI/org/eclipse/ui/internal/misc/CheckboxDoubleListGroup.java 24 Sep 2002 16:41:54 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/internal/misc/CheckboxDoubleListGroup.java 29 Nov 2002 07:21:45 -0000 >@@ -130,6 +130,7 @@ > Composite composite = new Composite(parent,SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 2; >+ composite.setFont(parent.getFont()); > composite.setLayout(layout); > composite.setLayoutData(new GridData( > GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); >@@ -150,6 +151,7 @@ > list1Viewer.setLabelProvider(list1LabelProvider); > list1Viewer.addCheckStateListener(this); > list1Viewer.addSelectionChangedListener(this); >+ list1Viewer.getTable().setFont(parent.getFont()); > } > /** > * Create the right viewer for this group. >@@ -161,6 +163,7 @@ > list2Viewer.setContentProvider(list2ContentProvider); > list2Viewer.setLabelProvider(list2LabelProvider); > list2Viewer.addCheckStateListener(this); >+ list2Viewer.getTable().setFont(parent.getFont()); > } > /** > * Create a viewer pane in this group for the passed viewer. >@@ -176,6 +179,7 @@ > spec.heightHint = height; > pane.setLayoutData(spec); > pane.setLayout(new FillLayout()); >+ pane.setFont(parent.getFont()); > return pane; > } > /** >Index: Eclipse UI/org/eclipse/ui/internal/misc/CheckboxTreeAndListGroup.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/misc/CheckboxTreeAndListGroup.java,v >retrieving revision 1.2 >diff -u -r1.2 CheckboxTreeAndListGroup.java >--- Eclipse UI/org/eclipse/ui/internal/misc/CheckboxTreeAndListGroup.java 24 Oct 2002 17:53:33 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/misc/CheckboxTreeAndListGroup.java 29 Nov 2002 07:21:43 -0000 >@@ -7,6 +7,7 @@ > import java.util.*; > import java.util.List; > >+import org.eclipse.jface.resource.JFaceResources; > import org.eclipse.jface.viewers.*; > import org.eclipse.swt.SWT; > import org.eclipse.swt.custom.BusyIndicator; >@@ -179,6 +180,7 @@ > layout.marginWidth = 0; > composite.setLayout(layout); > composite.setLayoutData(new GridData(GridData.FILL_BOTH)); >+ composite.setFont(parent.getFont()); > > createTreeViewer(composite, width/2, height); > createListViewer(composite, width/2, height); >@@ -194,6 +196,7 @@ > data.widthHint = width; > data.heightHint = height; > listViewer.getTable().setLayoutData(data); >+ listViewer.getTable().setFont(parent.getFont()); > listViewer.setContentProvider(listContentProvider); > listViewer.setLabelProvider(listLabelProvider); > listViewer.addCheckStateListener(this); >@@ -207,6 +210,7 @@ > data.widthHint = width; > data.heightHint = height; > tree.setLayoutData(data); >+ tree.setFont(parent.getFont()); > > treeViewer = new CheckboxTreeViewer(tree); > treeViewer.setContentProvider(treeContentProvider); >Index: Eclipse UI/org/eclipse/ui/internal/misc/ProjectCapabilitySelectionGroup.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/misc/ProjectCapabilitySelectionGroup.java,v >retrieving revision 1.2 >diff -u -r1.2 ProjectCapabilitySelectionGroup.java >--- Eclipse UI/org/eclipse/ui/internal/misc/ProjectCapabilitySelectionGroup.java 24 Oct 2002 17:54:37 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/misc/ProjectCapabilitySelectionGroup.java 29 Nov 2002 07:21:44 -0000 >@@ -16,6 +16,7 @@ > import org.eclipse.jface.resource.ImageDescriptor; > import org.eclipse.jface.viewers.*; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.graphics.Image; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; >@@ -109,6 +110,7 @@ > * description. > */ > public Control createContents(Composite parent) { >+ Font font = parent.getFont(); > // Create the main composite for the other controls > Composite composite = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); >@@ -128,10 +130,12 @@ > GridData data = new GridData(); > data.verticalAlignment = SWT.TOP; > categoryLabel.setLayoutData(data); >+ categoryLabel.setFont(font); > > // List viewer of all available categories > ListViewer listViewer = new ListViewer(catComposite); > listViewer.getList().setLayoutData(new GridData(GridData.FILL_BOTH)); >+ listViewer.getList().setFont(font); > listViewer.setLabelProvider(new WorkbenchLabelProvider()); > listViewer.setContentProvider(getContentProvider()); > listViewer.setInput(getAvailableCategories()); >@@ -147,10 +151,12 @@ > data = new GridData(); > data.verticalAlignment = SWT.TOP; > capabilityLabel.setLayoutData(data); >+ capabilityLabel.setFont(font); > > // Checkbox tree viewer of capabilities in selected categories > checkboxViewer = CheckboxTableViewer.newCheckList(capComposite, SWT.SINGLE | SWT.TOP | SWT.BORDER); > checkboxViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH)); >+ checkboxViewer.getTable().setFont(font); > checkboxViewer.setLabelProvider(new CapabilityLabelProvider()); > checkboxViewer.setContentProvider(getContentProvider()); > checkboxViewer.setInput(visibleCapabilities); >@@ -162,6 +168,7 @@ > data.verticalAlignment = SWT.TOP; > data.horizontalSpan = 2; > descLabel.setLayoutData(data); >+ descLabel.setFont(font); > > // Text field to display the capability's description > descriptionText = new Text(composite, SWT.WRAP | SWT.MULTI | SWT.V_SCROLL | SWT.BORDER); >@@ -172,6 +179,7 @@ > data.grabExcessHorizontalSpace = true; > data.horizontalSpan = 2; > descriptionText.setLayoutData(data); >+ descriptionText.setFont(font); > > // Add a text field to explain grayed out items > Label grayLabel = new Label(composite, SWT.LEFT); >@@ -180,6 +188,7 @@ > data.verticalAlignment = SWT.TOP; > data.horizontalSpan = 2; > grayLabel.setLayoutData(data); >+ grayLabel.setFont(font); > > // Setup initial context > populateDependents(); >Index: Eclipse UI/org/eclipse/ui/internal/misc/WizardStepGroup.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/misc/WizardStepGroup.java,v >retrieving revision 1.2 >diff -u -r1.2 WizardStepGroup.java >--- Eclipse UI/org/eclipse/ui/internal/misc/WizardStepGroup.java 24 Oct 2002 17:54:44 -0000 1.2 >+++ Eclipse UI/org/eclipse/ui/internal/misc/WizardStepGroup.java 29 Nov 2002 07:21:45 -0000 >@@ -17,6 +17,7 @@ > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.DisposeEvent; > import org.eclipse.swt.events.DisposeListener; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.graphics.Image; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; >@@ -52,12 +53,14 @@ > * with a label above it. > */ > public Control createContents(Composite parent) { >+ Font font = parent.getFont(); > parentComposite = parent; > > // Create a composite to hold everything together > Composite composite = new Composite(parent, SWT.NULL); > composite.setLayout(new GridLayout()); > composite.setLayoutData(new GridData(GridData.FILL_VERTICAL)); >+ composite.setFont(font); > composite.addDisposeListener(new DisposeListener() { > public void widgetDisposed(DisposeEvent e) { > if (doneImage != null) { >@@ -77,11 +80,13 @@ > GridData data = new GridData(); > data.verticalAlignment = SWT.TOP; > label.setLayoutData(data); >+ label.setFont(font); > > // Table viewer of all the steps > stepViewer = new TableViewer(composite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION); > data = new GridData(GridData.FILL_BOTH); > stepViewer.getTable().setLayoutData(data); >+ stepViewer.getTable().setFont(font); > stepViewer.setContentProvider(getStepProvider()); > stepViewer.setLabelProvider(new StepLabelProvider()); > >Index: extensions/org/eclipse/jface/dialogs/ErrorDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/extensions/org/eclipse/jface/dialogs/ErrorDialog.java,v >retrieving revision 1.8 >diff -u -r1.8 ErrorDialog.java >--- extensions/org/eclipse/jface/dialogs/ErrorDialog.java 24 Oct 2002 18:13:07 -0000 1.8 >+++ extensions/org/eclipse/jface/dialogs/ErrorDialog.java 29 Nov 2002 07:21:35 -0000 >@@ -213,6 +213,7 @@ > data.heightHint = list.getItemHeight() * LIST_ITEM_COUNT; > data.horizontalSpan = 2; > list.setLayoutData(data); >+ list.setFont(parent.getFont()); > listCreated = true; > return list; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19346
:
2578
| 2580 |
2591
|
2592