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 4823 Details for
Bug 34245
[Preferences] DBCS: "Use System Font" button truncated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
34245.txt (text/plain), 4.43 KB, created by
Tod Creasey
on 2003-05-08 09:54:34 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Tod Creasey
Created:
2003-05-08 09:54:34 EDT
Size:
4.43 KB
patch
obsolete
>Index: FontPreferencePage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java,v >retrieving revision 1.19 >diff -u -r1.19 FontPreferencePage.java >--- FontPreferencePage.java 10 Mar 2003 22:09:27 -0000 1.19 >+++ FontPreferencePage.java 8 May 2003 13:51:54 -0000 >@@ -10,7 +10,6 @@ > *******************************************************************************/ > package org.eclipse.ui.internal.dialogs; > >- > import java.text.Collator; > import java.util.*; > >@@ -155,7 +154,6 @@ > layout.numColumns = 2; > layout.marginWidth = 0; > layout.marginHeight = 0; >- layout.makeColumnsEqualWidth = true; > mainColumn.setFont(defaultFont); > mainColumn.setLayout(layout); > >@@ -163,7 +161,6 @@ > > Composite previewColumn = new Composite(mainColumn, SWT.NULL); > layout = new GridLayout(); >- layout.numColumns = 1; > layout.marginHeight = 0; > layout.marginWidth = 0; > previewColumn.setLayout(layout); >@@ -174,20 +171,6 @@ > > createPreviewControl(previewColumn); > createValueControl(previewColumn); >- >- Composite buttonColumn = new Composite(previewColumn, SWT.NULL); >- layout = new GridLayout(); >- layout.numColumns = 3; >- layout.marginHeight = 0; >- layout.marginWidth = 0; >- buttonColumn.setLayout(layout); >- data = new GridData(GridData.HORIZONTAL_ALIGN_END); >- buttonColumn.setLayoutData(data); >- buttonColumn.setFont(defaultFont); >- >- createUseDefaultsControl(buttonColumn); >- createChangeControl(buttonColumn); >- createResetControl(buttonColumn); > createNoteControl(previewColumn); > > createDescriptionControl(parent); >@@ -301,8 +284,7 @@ > * Creates the change button. > */ > private void createChangeControl(Composite parent) { >- changeFontButton = >- createButton(parent, JFaceResources.getString("openChange")); //$NON-NLS-1$ >+ changeFontButton = createButton(parent, JFaceResources.getString("openChange")); //$NON-NLS-1$ > > changeFontButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >@@ -328,10 +310,7 @@ > * Creates the change button. > */ > private void createResetControl(Composite parent) { >- resetButton = >- createButton( >- parent, >- WorkbenchMessages.getString("FontsPreference.reset")); //$NON-NLS-1$ >+ resetButton = createButton(parent, WorkbenchMessages.getString("FontsPreference.reset")); //$NON-NLS-1$ > > resetButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >@@ -348,10 +327,7 @@ > */ > private void createUseDefaultsControl(Composite parent) { > >- useSystemButton = >- createButton( >- parent, >- WorkbenchMessages.getString("FontsPreference.useSystemFont")); //$NON-NLS-1$ >+ useSystemButton = createButton(parent, WorkbenchMessages.getString("FontsPreference.useSystemFont")); //$NON-NLS-1$ > > useSystemButton.addSelectionListener(new SelectionAdapter() { > public void widgetSelected(SelectionEvent event) { >@@ -389,13 +365,34 @@ > label.setText(WorkbenchMessages.getString("FontsPreference.preview")); //$NON-NLS-1$ > applyDialogFont(label); > >- previewer = new DefaultPreviewer(parent); >+ Composite previewColumn = new Composite(parent, SWT.NONE); >+ >+ GridLayout layout = new GridLayout(); >+ layout.numColumns = 2; >+ layout.marginHeight = 0; >+ layout.marginWidth = 0; >+ previewColumn.setLayout(layout); >+ GridData data = new GridData(GridData.FILL_HORIZONTAL); >+ previewColumn.setLayoutData(data); >+ previewColumn.setFont(parent.getFont()); >+ >+ previewer = new DefaultPreviewer(previewColumn); > Control control = previewer.getControl(); >- GridData gd = new GridData(); >- gd.horizontalAlignment = GridData.FILL; >- gd.grabExcessHorizontalSpace = true; >+ GridData gd = new GridData(GridData.GRAB_HORIZONTAL | GridData.FILL_HORIZONTAL); > gd.heightHint = previewer.getPreferredHeight(); > control.setLayoutData(gd); >+ >+ Composite buttonColumn = new Composite(previewColumn, SWT.NONE); >+ buttonColumn.setLayoutData( >+ new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_END)); >+ layout = new GridLayout(); >+ layout.marginHeight = 0; >+ layout.marginWidth = 0; >+ buttonColumn.setLayout(layout); >+ createUseDefaultsControl(buttonColumn); >+ createChangeControl(buttonColumn); >+ createResetControl(buttonColumn); >+ > } > > /**
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 34245
: 4823