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 2578 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 task-related dialogs
views.txt (text/plain), 11.56 KB, created by
Sebastian Davids
on 2002-11-29 01:29:46 EST
(
hide
)
Description:
fixes task-related dialogs
Filename:
MIME Type:
Creator:
Sebastian Davids
Created:
2002-11-29 01:29:46 EST
Size:
11.56 KB
patch
obsolete
>Index: src/org/eclipse/ui/views/tasklist/FiltersDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/FiltersDialog.java,v >retrieving revision 1.3 >diff -u -r1.3 FiltersDialog.java >--- src/org/eclipse/ui/views/tasklist/FiltersDialog.java 24 Oct 2002 13:53:13 -0000 1.3 >+++ src/org/eclipse/ui/views/tasklist/FiltersDialog.java 29 Nov 2002 06:28:09 -0000 >@@ -21,6 +21,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.graphics.Image; > import org.eclipse.swt.layout.*; > import org.eclipse.swt.widgets.*; >@@ -78,6 +79,7 @@ > private Button[] valueButtons; > > CheckboxEnumGroup(Composite parent, String text, EnumType type) { >+ Font font = parent.getFont(); > this.type = type; > // although not needed for layout, this composite is needed to get the tab order right > Composite enableComposite = new Composite(parent, SWT.NONE); >@@ -86,6 +88,7 @@ > enableButton = new Button(enableComposite, SWT.CHECK); > enableButton.addSelectionListener(selectionListener); > enableButton.setText(text); >+ enableButton.setFont(font); > Composite valueComposite = new Composite(parent, SWT.NONE); > valueComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > valueComposite.setLayout(new FillLayout()); >@@ -95,6 +98,7 @@ > Button valueButton = new Button(valueComposite, SWT.CHECK); > valueButton.setText(values[i].getText()); > // valueButton.setImage(values[i].getImage()); >+ valueButton.setFont(font); > valueButtons[i] = valueButton; > } > } >@@ -150,19 +154,23 @@ > Text text; > > LabelComboTextGroup(Composite parent, String labelText, String[] comboStrings, String initialText, int widthHint) { >+ Font font = parent.getFont(); > Composite group = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 3; > //Set the margin width to 0 in order to line up with other items > layout.marginWidth = 0; > group.setLayout(layout); >+ group.setFont(font); > label = new Label(group, SWT.NONE); > label.setText(labelText); >+ label.setFont(font); > combo = createCombo(group, comboStrings, 0); > text = new Text(parent, SWT.SINGLE | SWT.BORDER); > GridData gridData = new GridData(GridData.FILL_HORIZONTAL); > gridData.widthHint = widthHint; > text.setLayoutData(gridData); >+ text.setFont(font); > text.setText(initialText); > } > } >@@ -186,6 +194,7 @@ > button.setLayoutData(data); > > Composite composite = new Composite(parent, SWT.NONE); >+ composite.setFont(parent.getFont()); > GridLayout layout = new GridLayout(); > Button radio = new Button(parent, SWT.RADIO); > layout.marginWidth = radio.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; >@@ -349,6 +358,7 @@ > GridLayout layout = new GridLayout(); > layout.numColumns = 2; > composite.setLayout(layout); >+ composite.setFont(parent.getFont()); > > String[] filters = {TaskListMessages.getString("TaskList.contains"), TaskListMessages.getString("TaskList.doesNotContain")}; //$NON-NLS-2$ //$NON-NLS-1$ > descriptionGroup = new LabelComboTextGroup(composite, TaskListMessages.getString("TaskList.whereDescription"), filters, "", 200);//$NON-NLS-2$ //$NON-NLS-1$ >@@ -379,6 +389,7 @@ > } > button.setText(text); > button.addSelectionListener(selectionListener); >+ button.setFont(parent.getFont()); > return button; > } > /** >@@ -392,6 +403,7 @@ > Combo createCombo(Composite parent, String[] items, int selectionIndex) { > Combo combo = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY); > combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >+ combo.setFont(parent.getFont()); > combo.setItems(items); > combo.select(selectionIndex); > combo.addSelectionListener(selectionListener); >@@ -421,6 +433,7 @@ > Button createRadioButton(Composite parent, String text) { > Button button = new Button(parent, SWT.RADIO); > button.setText(text); >+ button.setFont(parent.getFont()); > button.addSelectionListener(selectionListener); > return button; > } >@@ -433,6 +446,7 @@ > Composite group = new Composite(parent, SWT.NONE); > group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > group.setLayout(new GridLayout()); >+ group.setFont(parent.getFont()); > anyResourceButton = createRadioButton(group, TaskListMessages.getString("TaskList.anyResource")); //$NON-NLS-1$ > anyResourceInSameProjectButton = createRadioButton(group, TaskListMessages.getString("TaskList.anyResourceInSameProject")); //$NON-NLS-1$ // added by cagatayk@acm.org > selectedResourceButton = createRadioButton(group, TaskListMessages.getString("TaskList.selectedResource")); //$NON-NLS-1$ >@@ -445,6 +459,7 @@ > * @param parent the parent composite > */ > void createTypesArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NONE); > composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > GridLayout layout = new GridLayout(); >@@ -452,10 +467,12 @@ > > Label label = new Label(composite, SWT.NONE); > label.setText(TaskListMessages.getString("TaskList.showItemsOfType")); //$NON-NLS-1$ >- >+ label.setFont(font); >+ > typesViewer = new CheckboxTreeViewer(composite); > GridData gridData = new GridData(GridData.FILL_HORIZONTAL); > gridData.heightHint = 100; >+ typesViewer.getTree().setFont(font); > typesViewer.getControl().setLayoutData(gridData); > typesViewer.setContentProvider(getContentProvider()); > typesViewer.setLabelProvider(getLabelProvider()); >@@ -488,8 +505,10 @@ > } > > void createMarkerLimitArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NONE); > composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >+ composite.setFont(font); > GridLayout layout = new GridLayout(); > layout.numColumns = 2; > composite.setLayout(layout); >@@ -501,6 +520,7 @@ > GridData gridData = new GridData(); > gridData.widthHint = convertWidthInCharsToPixels(10); > markerLimit.setLayoutData(gridData); >+ markerLimit.setFont(font); > } > > /** >Index: src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java,v >retrieving revision 1.2 >diff -u -r1.2 TaskPropertiesDialog.java >--- src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java 11 Nov 2002 19:13:01 -0000 1.2 >+++ src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java 29 Nov 2002 06:28:09 -0000 >@@ -14,6 +14,7 @@ > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.TraverseEvent; > import org.eclipse.swt.events.TraverseListener; >+import org.eclipse.swt.graphics.Font; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.*; >@@ -193,6 +194,7 @@ > * @param composite > */ > private void createCreationTimeArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 2; >@@ -200,8 +202,10 @@ > > Label label = new Label(composite, SWT.NONE); > label.setText(TaskListMessages.getString("TaskProp.creationTime")); //$NON-NLS-1$ >+ label.setFont(font); > >- creationTime = new Label(composite, SWT.NONE); >+ creationTime = new Label(composite, SWT.NONE); >+ creationTime.setFont(font); > } > > /** >@@ -219,12 +223,14 @@ > * Creates the area for the Description field. > */ > private void createDescriptionArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 2; > composite.setLayout(layout); > Label label = new Label(composite, SWT.NONE); > label.setText(TaskListMessages.getString("TaskProp.description")); //$NON-NLS-1$ >+ label.setFont(font); > int style = SWT.SINGLE | SWT.BORDER; > if (!isTask()) { > style |= SWT.READ_ONLY; >@@ -233,12 +239,14 @@ > GridData gridData = new GridData(GridData.FILL_HORIZONTAL); > gridData.widthHint = convertHorizontalDLUsToPixels(400); > descriptionText.setLayoutData(gridData); >+ descriptionText.setFont(font); > } > > /** > * Creates the area for the Priority and Status fields. > */ > private void createPriorityAndStatusArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 3; >@@ -246,6 +254,7 @@ > > Label label = new Label(composite, SWT.NONE); > label.setText(TaskListMessages.getString("TaskProp.priority")); //$NON-NLS-1$ >+ label.setFont(font); > priorityCombo = new Combo(composite, SWT.READ_ONLY); > priorityCombo.setItems(new String[] { > TaskListMessages.getString("TaskList.high"), //$NON-NLS-1$ >@@ -260,18 +269,21 @@ > } > } > }); >+ priorityCombo.setFont(font); > > completedCheckbox = new Button(composite, SWT.CHECK); > completedCheckbox.setText(TaskListMessages.getString("TaskProp.completed")); //$NON-NLS-1$ > GridData gridData = new GridData(); > gridData.horizontalIndent = convertHorizontalDLUsToPixels(20); > completedCheckbox.setLayoutData(gridData); >+ completedCheckbox.setFont(font); > } > > /** > * Creates the area for the Severity field. > */ > private void createSeverityArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NONE); > GridLayout layout = new GridLayout(); > layout.numColumns = 2; >@@ -279,9 +291,10 @@ > > Label label = new Label(composite, SWT.NONE); > label.setText(TaskListMessages.getString("TaskProp.severity")); //$NON-NLS-1$ >- >+ label.setFont(font); > // workaround for bug 11078: Can't get a read-only combo box >- severityLabel = new Label(composite, SWT.NONE); >+ severityLabel = new Label(composite, SWT.NONE); >+ severityLabel.setFont(font); > /* > severityCombo = new Combo(composite, SWT.READ_ONLY); > severityCombo.setItems(new String[] { >@@ -296,6 +309,7 @@ > * Creates the area for the Resource field. > */ > private void createResourceArea(Composite parent) { >+ Font font = parent.getFont(); > Composite composite = new Composite(parent, SWT.NONE); > GridData gridData = new GridData(GridData.FILL_HORIZONTAL); > composite.setLayoutData(gridData); >@@ -305,21 +319,27 @@ > > Label resourceLabel = new Label(composite, SWT.NONE); > resourceLabel.setText(TaskListMessages.getString("TaskProp.onResource")); //$NON-NLS-1$ >+ resourceLabel.setFont(font); > resourceText = new Text(composite, SWT.SINGLE | SWT.WRAP | SWT.READ_ONLY | SWT.BORDER); > gridData = new GridData(GridData.FILL_HORIZONTAL); > resourceText.setLayoutData(gridData); >+ resourceText.setFont(font); > > Label folderLabel = new Label(composite, SWT.NONE); > folderLabel.setText(TaskListMessages.getString("TaskProp.inFolder")); //$NON-NLS-1$ >+ folderLabel.setFont(font); > folderText = new Text(composite, SWT.SINGLE | SWT.WRAP | SWT.READ_ONLY | SWT.BORDER); > gridData = new GridData(GridData.FILL_HORIZONTAL); > folderText.setLayoutData(gridData); >+ folderText.setFont(font); > > Label locationLabel = new Label(composite, SWT.NONE); > locationLabel.setText(TaskListMessages.getString("TaskProp.location")); //$NON-NLS-1$ >+ locationLabel.setFont(font); > locationText = new Text(composite, SWT.SINGLE | SWT.WRAP | SWT.READ_ONLY | SWT.BORDER); > gridData = new GridData(GridData.FILL_HORIZONTAL); > locationText.setLayoutData(gridData); >+ locationText.setFont(font); > } > > /**
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