Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 19346 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java (-1 / +2 lines)
Lines 318-324 Link Here
318
		data.horizontalAlignment= GridData.FILL;
318
		data.horizontalAlignment= GridData.FILL;
319
		data.verticalAlignment= GridData.FILL;
319
		data.verticalAlignment= GridData.FILL;
320
		list.setLayoutData(data);
320
		list.setLayoutData(data);
321
		
321
		list.setFont(parent.getFont());
322
		list.setFilter((fFilter == null ? "" : fFilter)); //$NON-NLS-1$		
322
		list.setFilter((fFilter == null ? "" : fFilter)); //$NON-NLS-1$		
323
323
324
		list.addSelectionListener(new SelectionListener() {
324
		list.addSelectionListener(new SelectionListener() {
Lines 362-367 Link Here
362
		data.horizontalAlignment= GridData.FILL;
362
		data.horizontalAlignment= GridData.FILL;
363
		data.verticalAlignment= GridData.BEGINNING;
363
		data.verticalAlignment= GridData.BEGINNING;
364
		text.setLayoutData(data);
364
		text.setLayoutData(data);
365
		text.setFont(parent.getFont());
365
366
366
		text.setText((fFilter == null ? "" : fFilter)); //$NON-NLS-1$
367
		text.setText((fFilter == null ? "" : fFilter)); //$NON-NLS-1$
367
		
368
		
(-)Eclipse UI/org/eclipse/ui/dialogs/CheckedTreeSelectionDialog.java (+2 lines)
Lines 243-248 Link Here
243
		
243
		
244
		Tree treeWidget = treeViewer.getTree();
244
		Tree treeWidget = treeViewer.getTree();
245
		treeWidget.setLayoutData(data);
245
		treeWidget.setLayoutData(data);
246
		treeWidget.setFont(parent.getFont());
246
		
247
		
247
		if (fIsEmpty) {
248
		if (fIsEmpty) {
248
			messageLabel.setEnabled(false);
249
			messageLabel.setEnabled(false);
Lines 305-310 Link Here
305
		GridLayout layout= new GridLayout();
306
		GridLayout layout= new GridLayout();
306
		layout.numColumns= 2;
307
		layout.numColumns= 2;
307
		buttonComposite.setLayout(layout);
308
		buttonComposite.setLayout(layout);
309
		buttonComposite.setFont(composite.getFont());
308
		GridData data= new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL);
310
		GridData data= new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL);
309
		data.grabExcessHorizontalSpace= true;
311
		data.grabExcessHorizontalSpace= true;
310
		composite.setData(data);
312
		composite.setData(data);
(-)Eclipse UI/org/eclipse/ui/dialogs/ContainerSelectionDialog.java (-1 / +2 lines)
Lines 118-124 Link Here
118
118
119
	statusMessage = new Label(parent, SWT.NONE);
119
	statusMessage = new Label(parent, SWT.NONE);
120
	statusMessage.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
120
	statusMessage.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
121
121
	statusMessage.setFont(parent.getFont());
122
	
122
	return dialogArea;
123
	return dialogArea;
123
}
124
}
124
/**
125
/**
(-)Eclipse UI/org/eclipse/ui/dialogs/ElementTreeSelectionDialog.java (+1 lines)
Lines 229-234 Link Here
229
		
229
		
230
		Tree treeWidget= treeViewer.getTree();
230
		Tree treeWidget= treeViewer.getTree();
231
		treeWidget.setLayoutData(data);
231
		treeWidget.setLayoutData(data);
232
		treeWidget.setFont(parent.getFont());
232
		
233
		
233
		if (fIsEmpty) {
234
		if (fIsEmpty) {
234
			messageLabel.setEnabled(false);
235
			messageLabel.setEnabled(false);
(-)Eclipse UI/org/eclipse/ui/dialogs/FileSelectionDialog.java (+4 lines)
Lines 11-16 Link Here
11
import org.eclipse.jface.viewers.*;
11
import org.eclipse.jface.viewers.*;
12
import org.eclipse.swt.SWT;
12
import org.eclipse.swt.SWT;
13
import org.eclipse.swt.events.*;
13
import org.eclipse.swt.events.*;
14
import org.eclipse.swt.graphics.Font;
14
import org.eclipse.swt.layout.GridData;
15
import org.eclipse.swt.layout.GridData;
15
import org.eclipse.swt.layout.GridLayout;
16
import org.eclipse.swt.layout.GridLayout;
16
import org.eclipse.swt.widgets.*;
17
import org.eclipse.swt.widgets.*;
Lines 69-74 Link Here
69
 * @param composite org.eclipse.swt.widgets.Composite
70
 * @param composite org.eclipse.swt.widgets.Composite
70
 */
71
 */
71
private void addSelectionButtons(Composite composite) {
72
private void addSelectionButtons(Composite composite) {
73
	Font font = composite.getFont();
72
	
74
	
73
	Composite buttonComposite = new Composite(composite,SWT.RIGHT);
75
	Composite buttonComposite = new Composite(composite,SWT.RIGHT);
74
	GridLayout layout = new GridLayout();
76
	GridLayout layout = new GridLayout();
Lines 78-83 Link Here
78
	composite.setData(data);
80
	composite.setData(data);
79
81
80
	Button selectButton = new Button(buttonComposite,SWT.PUSH);
82
	Button selectButton = new Button(buttonComposite,SWT.PUSH);
83
	selectButton.setFont(font);
81
	selectButton.setText(SELECT_ALL_TITLE);
84
	selectButton.setText(SELECT_ALL_TITLE);
82
	SelectionListener listener = new SelectionAdapter() {
85
	SelectionListener listener = new SelectionAdapter() {
83
		public void widgetSelected(SelectionEvent e) {
86
		public void widgetSelected(SelectionEvent e) {
Lines 87-92 Link Here
87
	selectButton.addSelectionListener(listener);
90
	selectButton.addSelectionListener(listener);
88
91
89
	Button deselectButton = new Button(buttonComposite,SWT.PUSH);
92
	Button deselectButton = new Button(buttonComposite,SWT.PUSH);
93
	deselectButton.setFont(font);
90
	deselectButton.setText(DESELECT_ALL_TITLE);
94
	deselectButton.setText(DESELECT_ALL_TITLE);
91
	listener = new SelectionAdapter() {
95
	listener = new SelectionAdapter() {
92
		public void widgetSelected(SelectionEvent e) {
96
		public void widgetSelected(SelectionEvent e) {
(-)Eclipse UI/org/eclipse/ui/dialogs/FilteredList.java (+1 lines)
Lines 167-172 Link Here
167
		
167
		
168
		fList= new Table(this, style);
168
		fList= new Table(this, style);
169
		fList.setLayoutData(new GridData(GridData.FILL_BOTH));
169
		fList.setLayoutData(new GridData(GridData.FILL_BOTH));
170
		fList.setFont(parent.getFont());
170
		fList.addDisposeListener(new DisposeListener() {
171
		fList.addDisposeListener(new DisposeListener() {
171
			public void widgetDisposed(DisposeEvent e) {
172
			public void widgetDisposed(DisposeEvent e) {
172
				fRenderer.dispose();
173
				fRenderer.dispose();
(-)Eclipse UI/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java (+1 lines)
Lines 88-93 Link Here
88
		data.heightHint = convertHeightInCharsToPixels(LIST_HEIGHT);
88
		data.heightHint = convertHeightInCharsToPixels(LIST_HEIGHT);
89
		data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH);
89
		data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH);
90
		listViewer.getList().setLayoutData(data);
90
		listViewer.getList().setLayoutData(data);
91
		listViewer.getList().setFont(parent.getFont());
91
		// Set the label provider		
92
		// Set the label provider		
92
		listViewer.setLabelProvider(new LabelProvider() {
93
		listViewer.setLabelProvider(new LabelProvider() {
93
			public String getText(Object element) {
94
			public String getText(Object element) {
(-)Eclipse UI/org/eclipse/ui/dialogs/NewFolderDialog.java (-1 / +13 lines)
Lines 16-21 Link Here
16
import org.eclipse.jface.resource.JFaceColors;
16
import org.eclipse.jface.resource.JFaceColors;
17
import org.eclipse.swt.SWT;
17
import org.eclipse.swt.SWT;
18
import org.eclipse.swt.events.*;
18
import org.eclipse.swt.events.*;
19
import org.eclipse.swt.graphics.Font;
19
import org.eclipse.swt.layout.GridData;
20
import org.eclipse.swt.layout.GridData;
20
import org.eclipse.swt.layout.GridLayout;
21
import org.eclipse.swt.layout.GridLayout;
21
import org.eclipse.swt.widgets.*;
22
import org.eclipse.swt.widgets.*;
Lines 187-198 Link Here
187
 * @param parent the parent composite
188
 * @param parent the parent composite
188
 */
189
 */
189
private void createLinkLocationGroup(Composite parent) {
190
private void createLinkLocationGroup(Composite parent) {
191
	Font font = parent.getFont();
192
	
190
	Composite folderGroup = new Composite(parent, SWT.NONE);
193
	Composite folderGroup = new Composite(parent, SWT.NONE);
191
	GridLayout layout = new GridLayout();
194
	GridLayout layout = new GridLayout();
192
	layout.numColumns = 3;
195
	layout.numColumns = 3;
193
	folderGroup.setLayout(layout);
196
	folderGroup.setLayout(layout);
194
	folderGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
197
	folderGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
195
198
	folderGroup.setFont(font);
199
	
196
	final Button createLinkButton =
200
	final Button createLinkButton =
197
		new Button(folderGroup, SWT.CHECK | SWT.RIGHT);
201
		new Button(folderGroup, SWT.CHECK | SWT.RIGHT);
198
	createLinkButton.setText(WorkbenchMessages.getString("NewFolderDialog.createLinkButton")); //$NON-NLS-1$
202
	createLinkButton.setText(WorkbenchMessages.getString("NewFolderDialog.createLinkButton")); //$NON-NLS-1$
Lines 200-205 Link Here
200
	GridData data = new GridData();
204
	GridData data = new GridData();
201
	data.horizontalSpan = 3;
205
	data.horizontalSpan = 3;
202
	createLinkButton.setLayoutData(data);
206
	createLinkButton.setLayoutData(data);
207
	createLinkButton.setFont(font);
203
	createLinkButton.setEnabled(container instanceof IProject);
208
	createLinkButton.setEnabled(container instanceof IProject);
204
	
209
	
205
	createUserSpecifiedLinkLocationGroup(folderGroup, createLink);
210
	createUserSpecifiedLinkLocationGroup(folderGroup, createLink);
Lines 224-229 Link Here
224
 * @param parent the parent composite
229
 * @param parent the parent composite
225
 */
230
 */
226
private void createFolderNameGroup(Composite parent) {
231
private void createFolderNameGroup(Composite parent) {
232
	Font font = parent.getFont();
227
	// project specification group
233
	// project specification group
228
	Composite folderGroup = new Composite(parent,SWT.NONE);
234
	Composite folderGroup = new Composite(parent,SWT.NONE);
229
	GridLayout layout = new GridLayout();
235
	GridLayout layout = new GridLayout();
Lines 233-238 Link Here
233
239
234
	// new project label
240
	// new project label
235
	Label folderLabel = new Label(folderGroup,SWT.NONE);
241
	Label folderLabel = new Label(folderGroup,SWT.NONE);
242
	folderLabel.setFont(font);
236
	folderLabel.setText(WorkbenchMessages.getString("NewFolderDialog.nameLabel"));	//$NON-NLS-1$
243
	folderLabel.setText(WorkbenchMessages.getString("NewFolderDialog.nameLabel"));	//$NON-NLS-1$
237
244
238
	// new project name entry field
245
	// new project name entry field
Lines 240-245 Link Here
240
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
247
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
241
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
248
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
242
	folderNameField.setLayoutData(data);
249
	folderNameField.setLayoutData(data);
250
	folderNameField.setFont(font);
243
}
251
}
244
/**
252
/**
245
 * Creates a new folder with the given name and optionally linking to
253
 * Creates a new folder with the given name and optionally linking to
Lines 304-309 Link Here
304
 * @param enabled sets the initial enabled state of the widgets
312
 * @param enabled sets the initial enabled state of the widgets
305
 */
313
 */
306
private void createUserSpecifiedLinkLocationGroup(Composite folderGroup, boolean enabled) {
314
private void createUserSpecifiedLinkLocationGroup(Composite folderGroup, boolean enabled) {
315
	Font font = folderGroup.getFont();
307
	Label fill = new Label(folderGroup, SWT.NONE);
316
	Label fill = new Label(folderGroup, SWT.NONE);
308
	GridData data = new GridData();
317
	GridData data = new GridData();
309
	Button button = new Button(folderGroup, SWT.CHECK);
318
	Button button = new Button(folderGroup, SWT.CHECK);
Lines 316-326 Link Here
316
	data = new GridData();
325
	data = new GridData();
317
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;	
326
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;	
318
	linkTargetField.setLayoutData(data);
327
	linkTargetField.setLayoutData(data);
328
	linkTargetField.setFont(font);
319
	linkTargetField.setEnabled(enabled);
329
	linkTargetField.setEnabled(enabled);
320
330
321
	// browse button
331
	// browse button
322
	browseButton = new Button(folderGroup, SWT.PUSH);
332
	browseButton = new Button(folderGroup, SWT.PUSH);
323
	setButtonLayoutData(browseButton);
333
	setButtonLayoutData(browseButton);
334
	browseButton.setFont(font);
324
	browseButton.setText(WorkbenchMessages.getString("NewFolderDialog.browseButton")); //$NON-NLS-1$
335
	browseButton.setText(WorkbenchMessages.getString("NewFolderDialog.browseButton")); //$NON-NLS-1$
325
	browseButton.addSelectionListener(new SelectionAdapter() {
336
	browseButton.addSelectionListener(new SelectionAdapter() {
326
		public void widgetSelected(SelectionEvent event) {
337
		public void widgetSelected(SelectionEvent event) {
Lines 337-342 Link Here
337
	// variables button
348
	// variables button
338
	variablesButton = new Button(folderGroup, SWT.PUSH);
349
	variablesButton = new Button(folderGroup, SWT.PUSH);
339
	setButtonLayoutData(variablesButton);
350
	setButtonLayoutData(variablesButton);
351
	variablesButton.setFont(font);
340
	variablesButton.setText(WorkbenchMessages.getString("NewFolderDialog.variablesButton")); //$NON-NLS-1$
352
	variablesButton.setText(WorkbenchMessages.getString("NewFolderDialog.variablesButton")); //$NON-NLS-1$
341
	variablesButton.addSelectionListener(new SelectionAdapter() {
353
	variablesButton.addSelectionListener(new SelectionAdapter() {
342
		public void widgetSelected(SelectionEvent event) {
354
		public void widgetSelected(SelectionEvent event) {
(-)Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java (-3 / +10 lines)
Lines 9-14 Link Here
9
import org.eclipse.core.resources.IProject;
9
import org.eclipse.core.resources.IProject;
10
import org.eclipse.swt.SWT;
10
import org.eclipse.swt.SWT;
11
import org.eclipse.swt.events.*;
11
import org.eclipse.swt.events.*;
12
import org.eclipse.swt.graphics.Font;
12
import org.eclipse.swt.layout.GridLayout;
13
import org.eclipse.swt.layout.GridLayout;
13
import org.eclipse.swt.layout.GridData;
14
import org.eclipse.swt.layout.GridData;
14
import org.eclipse.swt.widgets.*;
15
import org.eclipse.swt.widgets.*;
Lines 155-160 Link Here
155
	//Add in a label for status messages if required
156
	//Add in a label for status messages if required
156
	statusMessageLabel = new Label(composite, SWT.WRAP);
157
	statusMessageLabel = new Label(composite, SWT.WRAP);
157
	statusMessageLabel.setLayoutData(new GridData(GridData.FILL_BOTH));
158
	statusMessageLabel.setLayoutData(new GridData(GridData.FILL_BOTH));
159
	statusMessageLabel.setFont(parent.getFont());
158
	//Make it two lines.
160
	//Make it two lines.
159
	statusMessageLabel.setText(" \n ");
161
	statusMessageLabel.setText(" \n ");
160
162
Lines 179-194 Link Here
179
 * @param parent the parent composite
181
 * @param parent the parent composite
180
 */
182
 */
181
private final void createProjectLocationGroup(Composite parent) {
183
private final void createProjectLocationGroup(Composite parent) {
182
184
	Font font = parent.getFont();
183
	// project specification group
185
	// project specification group
184
	Composite projectGroup = new Composite(parent, SWT.NONE);
186
	Composite projectGroup = new Composite(parent, SWT.NONE);
185
	GridLayout layout = new GridLayout();
187
	GridLayout layout = new GridLayout();
186
	layout.numColumns = 3;
188
	layout.numColumns = 3;
187
	projectGroup.setLayout(layout);
189
	projectGroup.setLayout(layout);
188
	projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
190
	projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
189
191
	projectGroup.setFont(font);
192
	
190
	final Button useDefaultsButton =
193
	final Button useDefaultsButton =
191
		new Button(projectGroup, SWT.CHECK | SWT.RIGHT);
194
		new Button(projectGroup, SWT.CHECK | SWT.RIGHT);
195
	useDefaultsButton.setFont(font);
192
	useDefaultsButton.setText(WorkbenchMessages.getString("ProjectLocationSelectionDialog.useDefaultLabel")); //$NON-NLS-1$
196
	useDefaultsButton.setText(WorkbenchMessages.getString("ProjectLocationSelectionDialog.useDefaultLabel")); //$NON-NLS-1$
193
	useDefaultsButton.setSelection(this.useDefaults);
197
	useDefaultsButton.setSelection(this.useDefaults);
194
	GridData buttonData = new GridData();
198
	GridData buttonData = new GridData();
Lines 222-230 Link Here
222
 * @param enabled - sets the initial enabled state of the widgets
226
 * @param enabled - sets the initial enabled state of the widgets
223
 */
227
 */
224
private Composite createUserSpecifiedProjectLocationGroup(Composite projectGroup, boolean enabled) {
228
private Composite createUserSpecifiedProjectLocationGroup(Composite projectGroup, boolean enabled) {
225
229
	Font font = projectGroup.getFont();
226
	// location label
230
	// location label
227
	locationLabel = new Label(projectGroup, SWT.NONE);
231
	locationLabel = new Label(projectGroup, SWT.NONE);
232
	locationLabel.setFont(font);
228
	locationLabel.setText(LOCATION_LABEL);
233
	locationLabel.setText(LOCATION_LABEL);
229
	locationLabel.setEnabled(enabled);
234
	locationLabel.setEnabled(enabled);
230
235
Lines 233-242 Link Here
233
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
238
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
234
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
239
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
235
	locationPathField.setLayoutData(data);
240
	locationPathField.setLayoutData(data);
241
	locationPathField.setFont(font);
236
	locationPathField.setEnabled(enabled);
242
	locationPathField.setEnabled(enabled);
237
243
238
	// browse button
244
	// browse button
239
	this.browseButton = new Button(projectGroup, SWT.PUSH);
245
	this.browseButton = new Button(projectGroup, SWT.PUSH);
246
	this.browseButton.setFont(font);
240
	this.browseButton.setText(BROWSE_LABEL);
247
	this.browseButton.setText(BROWSE_LABEL);
241
	this.browseButton.addSelectionListener(new SelectionAdapter() {
248
	this.browseButton.addSelectionListener(new SelectionAdapter() {
242
		public void widgetSelected(SelectionEvent event) {
249
		public void widgetSelected(SelectionEvent event) {
(-)Eclipse UI/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java (-2 / +14 lines)
Lines 12-17 Link Here
12
import org.eclipse.jface.resource.JFaceColors;
12
import org.eclipse.jface.resource.JFaceColors;
13
import org.eclipse.swt.SWT;
13
import org.eclipse.swt.SWT;
14
import org.eclipse.swt.events.*;
14
import org.eclipse.swt.events.*;
15
import org.eclipse.swt.graphics.Font;
15
import org.eclipse.swt.layout.GridData;
16
import org.eclipse.swt.layout.GridData;
16
import org.eclipse.swt.layout.GridLayout;
17
import org.eclipse.swt.layout.GridLayout;
17
import org.eclipse.swt.widgets.*;
18
import org.eclipse.swt.widgets.*;
Lines 200-212 Link Here
200
 * @param parent the parent composite
201
 * @param parent the parent composite
201
 */
202
 */
202
private final void createProjectLocationGroup(Composite parent) {
203
private final void createProjectLocationGroup(Composite parent) {
203
204
	Font font = parent.getFont();
205
	
204
	// project specification group
206
	// project specification group
205
	Composite projectGroup = new Composite(parent, SWT.NONE);
207
	Composite projectGroup = new Composite(parent, SWT.NONE);
206
	GridLayout layout = new GridLayout();
208
	GridLayout layout = new GridLayout();
207
	layout.numColumns = 3;
209
	layout.numColumns = 3;
208
	projectGroup.setLayout(layout);
210
	projectGroup.setLayout(layout);
209
	projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
211
	projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
212
	projectGroup.setFont(font);
210
213
211
	final Button useDefaultsButton =
214
	final Button useDefaultsButton =
212
		new Button(projectGroup, SWT.CHECK | SWT.RIGHT);
215
		new Button(projectGroup, SWT.CHECK | SWT.RIGHT);
Lines 215-220 Link Here
215
	GridData buttonData = new GridData();
218
	GridData buttonData = new GridData();
216
	buttonData.horizontalSpan = 3;
219
	buttonData.horizontalSpan = 3;
217
	useDefaultsButton.setLayoutData(buttonData);
220
	useDefaultsButton.setLayoutData(buttonData);
221
	useDefaultsButton.setFont(font);
218
222
219
	createUserSpecifiedProjectLocationGroup(projectGroup, !this.useDefaults);
223
	createUserSpecifiedProjectLocationGroup(projectGroup, !this.useDefaults);
220
224
Lines 237-242 Link Here
237
 * @param parent the parent composite
241
 * @param parent the parent composite
238
 */
242
 */
239
private void createProjectNameGroup(Composite parent) {
243
private void createProjectNameGroup(Composite parent) {
244
	Font font = parent.getFont();
240
	// project specification group
245
	// project specification group
241
	Composite projectGroup = new Composite(parent,SWT.NONE);
246
	Composite projectGroup = new Composite(parent,SWT.NONE);
242
	GridLayout layout = new GridLayout();
247
	GridLayout layout = new GridLayout();
Lines 246-251 Link Here
246
251
247
	// new project label
252
	// new project label
248
	Label projectLabel = new Label(projectGroup,SWT.NONE);
253
	Label projectLabel = new Label(projectGroup,SWT.NONE);
254
	projectLabel.setFont(font);
249
	projectLabel.setText(PROJECT_NAME_LABEL);
255
	projectLabel.setText(PROJECT_NAME_LABEL);
250
256
251
	// new project name entry field
257
	// new project name entry field
Lines 253-258 Link Here
253
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
259
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
254
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
260
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
255
	projectNameField.setLayoutData(data);
261
	projectNameField.setLayoutData(data);
262
	projectNameField.setFont(font);
256
	
263
	
257
	// Set the initial value first before listener
264
	// Set the initial value first before listener
258
	// to avoid handling an event during the creation.
265
	// to avoid handling an event during the creation.
Lines 272-280 Link Here
272
private Composite createUserSpecifiedProjectLocationGroup(
279
private Composite createUserSpecifiedProjectLocationGroup(
273
	Composite projectGroup,
280
	Composite projectGroup,
274
	boolean enabled) {
281
	boolean enabled) {
275
282
	
283
	Font font = projectGroup.getFont();
284
	
276
	// location label
285
	// location label
277
	locationLabel = new Label(projectGroup, SWT.NONE);
286
	locationLabel = new Label(projectGroup, SWT.NONE);
287
	locationLabel.setFont(font);
278
	locationLabel.setText(LOCATION_LABEL);
288
	locationLabel.setText(LOCATION_LABEL);
279
	locationLabel.setEnabled(enabled);
289
	locationLabel.setEnabled(enabled);
280
290
Lines 283-292 Link Here
283
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
293
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
284
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
294
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
285
	locationPathField.setLayoutData(data);
295
	locationPathField.setLayoutData(data);
296
	locationPathField.setFont(font);
286
	locationPathField.setEnabled(enabled);
297
	locationPathField.setEnabled(enabled);
287
298
288
	// browse button
299
	// browse button
289
	this.browseButton = new Button(projectGroup, SWT.PUSH);
300
	this.browseButton = new Button(projectGroup, SWT.PUSH);
301
	this.browseButton.setFont(font);	
290
	this.browseButton.setText(BROWSE_LABEL);
302
	this.browseButton.setText(BROWSE_LABEL);
291
	this.browseButton.addSelectionListener(new SelectionAdapter() {
303
	this.browseButton.addSelectionListener(new SelectionAdapter() {
292
		public void widgetSelected(SelectionEvent event) {
304
		public void widgetSelected(SelectionEvent event) {
(-)Eclipse UI/org/eclipse/ui/dialogs/SelectionStatusDialog.java (-1 / +5 lines)
Lines 7-12 Link Here
7
import java.util.Arrays;
7
import java.util.Arrays;
8
8
9
import org.eclipse.swt.SWT;
9
import org.eclipse.swt.SWT;
10
import org.eclipse.swt.graphics.Font;
10
import org.eclipse.swt.graphics.Image;
11
import org.eclipse.swt.graphics.Image;
11
import org.eclipse.swt.layout.GridData;
12
import org.eclipse.swt.layout.GridData;
12
import org.eclipse.swt.layout.GridLayout;
13
import org.eclipse.swt.layout.GridLayout;
Lines 140-145 Link Here
140
	 * @see Dialog#createButtonBar(Composite)
141
	 * @see Dialog#createButtonBar(Composite)
141
	 */
142
	 */
142
	protected Control createButtonBar(Composite parent) {
143
	protected Control createButtonBar(Composite parent) {
144
		Font font = parent.getFont();
143
		Composite composite= new Composite(parent, SWT.NULL);
145
		Composite composite= new Composite(parent, SWT.NULL);
144
		GridLayout layout= new GridLayout();
146
		GridLayout layout= new GridLayout();
145
		if (fStatusLineAboveButtons) {
147
		if (fStatusLineAboveButtons) {
Lines 150-160 Link Here
150
		layout.marginHeight= 0; layout.marginWidth= 0;
152
		layout.marginHeight= 0; layout.marginWidth= 0;
151
		composite.setLayout(layout);
153
		composite.setLayout(layout);
152
		composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
154
		composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
153
		
155
		composite.setFont(font);
156
				
154
		fStatusLine= new MessageLine(composite);
157
		fStatusLine= new MessageLine(composite);
155
		fStatusLine.setAlignment(SWT.LEFT);
158
		fStatusLine.setAlignment(SWT.LEFT);
156
		fStatusLine.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
159
		fStatusLine.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
157
		fStatusLine.setErrorStatus(null); //$NON-NLS-1$
160
		fStatusLine.setErrorStatus(null); //$NON-NLS-1$
161
		fStatusLine.setFont(font);
158
		
162
		
159
		GridData gd= new GridData(GridData.FILL_HORIZONTAL);
163
		GridData gd= new GridData(GridData.FILL_HORIZONTAL);
160
		gd.horizontalIndent= convertWidthInCharsToPixels(1);
164
		gd.horizontalIndent= convertWidthInCharsToPixels(1);
(-)Eclipse UI/org/eclipse/ui/dialogs/TwoPaneElementSelector.java (+2 lines)
Lines 120-125 Link Here
120
			
120
			
121
		Label label= new Label(parent, SWT.NONE);
121
		Label label= new Label(parent, SWT.NONE);
122
		label.setText(name);
122
		label.setText(name);
123
		label.setFont(parent.getFont());
123
		
124
		
124
		return label;
125
		return label;
125
	}
126
	}
Lines 159-164 Link Here
159
		data.horizontalAlignment= GridData.FILL;
160
		data.horizontalAlignment= GridData.FILL;
160
		data.verticalAlignment= GridData.FILL;
161
		data.verticalAlignment= GridData.FILL;
161
		list.setLayoutData(data);
162
		list.setLayoutData(data);
163
		list.setFont(parent.getFont());
162
		
164
		
163
		fLowerList= list;
165
		fLowerList= list;
164
		
166
		
(-)Eclipse UI/org/eclipse/ui/dialogs/TypeFilteringDialog.java (-4 / +9 lines)
Lines 10-15 Link Here
10
import org.eclipse.jface.viewers.CheckboxTableViewer;
10
import org.eclipse.jface.viewers.CheckboxTableViewer;
11
import org.eclipse.swt.SWT;
11
import org.eclipse.swt.SWT;
12
import org.eclipse.swt.events.*;
12
import org.eclipse.swt.events.*;
13
import org.eclipse.swt.graphics.Font;
13
import org.eclipse.swt.layout.GridData;
14
import org.eclipse.swt.layout.GridData;
14
import org.eclipse.swt.layout.GridLayout;
15
import org.eclipse.swt.layout.GridLayout;
15
import org.eclipse.swt.widgets.Button;
16
import org.eclipse.swt.widgets.Button;
Lines 78-88 Link Here
78
 * @param composite org.eclipse.swt.widgets.Composite
79
 * @param composite org.eclipse.swt.widgets.Composite
79
 */
80
 */
80
private void addSelectionButtons(Composite composite) {
81
private void addSelectionButtons(Composite composite) {
81
82
	Composite buttonComposite = new Composite(composite, SWT.RIGHT);
82
	Composite buttonComposite = new Composite(composite, SWT.RIGHT);
83
	GridLayout layout = new GridLayout();
83
	GridLayout layout = new GridLayout();
84
	layout.numColumns = 2;
84
	layout.numColumns = 2;
85
	buttonComposite.setLayout(layout);
85
	buttonComposite.setLayout(layout);
86
	buttonComposite.setFont(composite.getFont());
86
	GridData data =
87
	GridData data =
87
		new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL);
88
		new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL);
88
	data.grabExcessHorizontalSpace = true;
89
	data.grabExcessHorizontalSpace = true;
Lines 194-199 Link Here
194
	data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
195
	data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
195
	data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
196
	data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
196
	listViewer.getTable().setLayoutData(data);
197
	listViewer.getTable().setLayoutData(data);
198
	listViewer.getTable().setFont(parent.getFont());
197
199
198
	listViewer.setLabelProvider(FileEditorMappingLabelProvider.INSTANCE);
200
	listViewer.setLabelProvider(FileEditorMappingLabelProvider.INSTANCE);
199
	listViewer.setContentProvider(FileEditorMappingContentProvider.INSTANCE);
201
	listViewer.setContentProvider(FileEditorMappingContentProvider.INSTANCE);
Lines 215-221 Link Here
215
 * @param parent the parent this is being created in.
217
 * @param parent the parent this is being created in.
216
 */
218
 */
217
private void createUserEntryGroup(Composite parent) {
219
private void createUserEntryGroup(Composite parent) {
218
220
	Font font = parent.getFont();
219
	// destination specification group
221
	// destination specification group
220
	Composite userDefinedGroup = new Composite(parent, SWT.NONE);
222
	Composite userDefinedGroup = new Composite(parent, SWT.NONE);
221
	GridLayout layout = new GridLayout();
223
	GridLayout layout = new GridLayout();
Lines 223-233 Link Here
223
	userDefinedGroup.setLayout(layout);
225
	userDefinedGroup.setLayout(layout);
224
	userDefinedGroup.setLayoutData(
226
	userDefinedGroup.setLayoutData(
225
		new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL));
227
		new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL));
226
228
	
227
	new Label(userDefinedGroup, SWT.NONE).setText(filterTitle); //$NON-NLS-1$
229
	Label fTitle = new Label(userDefinedGroup, SWT.NONE);
230
	fTitle.setFont(font);
231
	fTitle.setText(filterTitle); //$NON-NLS-1$
228
232
229
	// user defined entry field
233
	// user defined entry field
230
	userDefinedText = new Text(userDefinedGroup, SWT.SINGLE | SWT.BORDER);
234
	userDefinedText = new Text(userDefinedGroup, SWT.SINGLE | SWT.BORDER);
235
	userDefinedText.setFont(font);
231
	GridData data =
236
	GridData data =
232
		new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
237
		new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
233
	userDefinedText.setLayoutData(data);
238
	userDefinedText.setLayoutData(data);
(-)Eclipse UI/org/eclipse/ui/dialogs/WizardNewLinkPage.java (-1 / +8 lines)
Lines 14-19 Link Here
14
import org.eclipse.jface.wizard.WizardPage;
14
import org.eclipse.jface.wizard.WizardPage;
15
import org.eclipse.swt.SWT;
15
import org.eclipse.swt.SWT;
16
import org.eclipse.swt.events.*;
16
import org.eclipse.swt.events.*;
17
import org.eclipse.swt.graphics.Font;
17
import org.eclipse.swt.layout.GridData;
18
import org.eclipse.swt.layout.GridData;
18
import org.eclipse.swt.layout.GridLayout;
19
import org.eclipse.swt.layout.GridLayout;
19
import org.eclipse.swt.widgets.*;
20
import org.eclipse.swt.widgets.*;
Lines 57-62 Link Here
57
 * Method declared on IDialogPage.
58
 * Method declared on IDialogPage.
58
 */
59
 */
59
public void createControl(Composite parent) {
60
public void createControl(Composite parent) {
61
	Font font = parent.getFont();
60
	initializeDialogUnits(parent);
62
	initializeDialogUnits(parent);
61
	// top level group
63
	// top level group
62
	Composite topLevel = new Composite(parent,SWT.NONE);
64
	Composite topLevel = new Composite(parent,SWT.NONE);
Lines 65-71 Link Here
65
	topLevel.setLayout(layout);
67
	topLevel.setLayout(layout);
66
	topLevel.setLayoutData(new GridData(
68
	topLevel.setLayoutData(new GridData(
67
		GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
69
		GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
68
	topLevel.setFont(parent.getFont());
70
	topLevel.setFont(font);
69
	WorkbenchHelp.setHelp(topLevel, IHelpContextIds.NEW_LINK_WIZARD_PAGE);
71
	WorkbenchHelp.setHelp(topLevel, IHelpContextIds.NEW_LINK_WIZARD_PAGE);
70
72
71
	final Button createLinkButton = new Button(topLevel, SWT.CHECK);
73
	final Button createLinkButton = new Button(topLevel, SWT.CHECK);
Lines 77-82 Link Here
77
	GridData data = new GridData();
79
	GridData data = new GridData();
78
	data.horizontalSpan = 3;
80
	data.horizontalSpan = 3;
79
	createLinkButton.setLayoutData(data);
81
	createLinkButton.setLayoutData(data);
82
	createLinkButton.setFont(font);
80
	SelectionListener listener = new SelectionAdapter() {
83
	SelectionListener listener = new SelectionAdapter() {
81
		public void widgetSelected(SelectionEvent e) {
84
		public void widgetSelected(SelectionEvent e) {
82
			createLink = createLinkButton.getSelection();
85
			createLink = createLinkButton.getSelection();
Lines 102-107 Link Here
102
 * @param enabled sets the initial enabled state of the widgets
105
 * @param enabled sets the initial enabled state of the widgets
103
 */
106
 */
104
private void createLinkLocationGroup(Composite locationGroup, boolean enabled) {
107
private void createLinkLocationGroup(Composite locationGroup, boolean enabled) {
108
	Font font = locationGroup.getFont();
105
	Label fill = new Label(locationGroup, SWT.NONE);
109
	Label fill = new Label(locationGroup, SWT.NONE);
106
	GridData data = new GridData();
110
	GridData data = new GridData();
107
	Button button = new Button(locationGroup, SWT.CHECK);
111
	Button button = new Button(locationGroup, SWT.CHECK);
Lines 113-118 Link Here
113
	linkTargetField = new Text(locationGroup, SWT.BORDER);
117
	linkTargetField = new Text(locationGroup, SWT.BORDER);
114
	data = new GridData(GridData.FILL_HORIZONTAL);
118
	data = new GridData(GridData.FILL_HORIZONTAL);
115
	linkTargetField.setLayoutData(data);
119
	linkTargetField.setLayoutData(data);
120
	linkTargetField.setFont(font);
116
	linkTargetField.setEnabled(enabled);
121
	linkTargetField.setEnabled(enabled);
117
	linkTargetField.addModifyListener(new ModifyListener() {
122
	linkTargetField.addModifyListener(new ModifyListener() {
118
		public void modifyText(ModifyEvent e) {
123
		public void modifyText(ModifyEvent e) {
Lines 126-131 Link Here
126
	// browse button
131
	// browse button
127
	browseButton = new Button(locationGroup, SWT.PUSH);
132
	browseButton = new Button(locationGroup, SWT.PUSH);
128
	setButtonLayoutData(browseButton);
133
	setButtonLayoutData(browseButton);
134
	browseButton.setFont(font);
129
	browseButton.setText(WorkbenchMessages.getString("WizardNewLinkPage.browseButton")); //$NON-NLS-1$
135
	browseButton.setText(WorkbenchMessages.getString("WizardNewLinkPage.browseButton")); //$NON-NLS-1$
130
	browseButton.addSelectionListener(new SelectionAdapter() {
136
	browseButton.addSelectionListener(new SelectionAdapter() {
131
		public void widgetSelected(SelectionEvent event) {
137
		public void widgetSelected(SelectionEvent event) {
Lines 142-147 Link Here
142
	// variables button
148
	// variables button
143
	variablesButton = new Button(locationGroup, SWT.PUSH);
149
	variablesButton = new Button(locationGroup, SWT.PUSH);
144
	setButtonLayoutData(variablesButton);
150
	setButtonLayoutData(variablesButton);
151
	variablesButton.setFont(font);
145
	variablesButton.setText(WorkbenchMessages.getString("WizardNewLinkPage.variablesButton")); //$NON-NLS-1$
152
	variablesButton.setText(WorkbenchMessages.getString("WizardNewLinkPage.variablesButton")); //$NON-NLS-1$
146
	variablesButton.addSelectionListener(new SelectionAdapter() {
153
	variablesButton.addSelectionListener(new SelectionAdapter() {
147
		public void widgetSelected(SelectionEvent event) {
154
		public void widgetSelected(SelectionEvent event) {
(-)Eclipse UI/org/eclipse/ui/internal/WelcomePageSelectionDialog.java (+1 lines)
Lines 80-85 Link Here
80
		data.heightHint = convertHeightInCharsToPixels(LIST_HEIGHT);
80
		data.heightHint = convertHeightInCharsToPixels(LIST_HEIGHT);
81
		data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH);
81
		data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH);
82
		listViewer.getList().setLayoutData(data);
82
		listViewer.getList().setLayoutData(data);
83
		listViewer.getList().setFont(parent.getFont());
83
		// Set the label provider		
84
		// Set the label provider		
84
		listViewer.setLabelProvider(new LabelProvider() {
85
		listViewer.setLabelProvider(new LabelProvider() {
85
			public String getText(Object element) {
86
			public String getText(Object element) {
(-)Eclipse UI/org/eclipse/ui/internal/actions/keybindings/DialogCustomize.java (+1 lines)
Lines 692-697 Link Here
692
		GridData gridDataTable = new GridData(GridData.FILL_BOTH);
692
		GridData gridDataTable = new GridData(GridData.FILL_BOTH);
693
		gridDataTable.heightHint = 100;		
693
		gridDataTable.heightHint = 100;		
694
		table.setLayoutData(gridDataTable);
694
		table.setLayoutData(gridDataTable);
695
		table.setFont(font);
695
696
696
		TableColumn tableColumn = new TableColumn(table, SWT.NULL, 0);
697
		TableColumn tableColumn = new TableColumn(table, SWT.NULL, 0);
697
		tableColumn.setResizable(false);
698
		tableColumn.setResizable(false);
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java (-1 / +7 lines)
Lines 17-22 Link Here
17
import org.eclipse.swt.custom.StyledText;
17
import org.eclipse.swt.custom.StyledText;
18
import org.eclipse.swt.events.*;
18
import org.eclipse.swt.events.*;
19
import org.eclipse.swt.graphics.Cursor;
19
import org.eclipse.swt.graphics.Cursor;
20
import org.eclipse.swt.graphics.Font;
20
import org.eclipse.swt.graphics.Image;
21
import org.eclipse.swt.graphics.Image;
21
import org.eclipse.swt.layout.GridData;
22
import org.eclipse.swt.layout.GridData;
22
import org.eclipse.swt.layout.GridLayout;
23
import org.eclipse.swt.layout.GridLayout;
Lines 210-215 Link Here
210
	 * Create the info area containing the image and text
211
	 * Create the info area containing the image and text
211
	 */
212
	 */
212
	protected void createInfoArea(Composite parent) {
213
	protected void createInfoArea(Composite parent) {
214
		Font font = parent.getFont();
215
		
213
		infoArea = new Composite(parent, SWT.NULL);
216
		infoArea = new Composite(parent, SWT.NULL);
214
		GridLayout layout= new GridLayout();
217
		GridLayout layout= new GridLayout();
215
		layout.numColumns = 2; 
218
		layout.numColumns = 2; 
Lines 225-230 Link Here
225
		data.heightHint = 32;
228
		data.heightHint = 32;
226
		data.widthHint = 32;
229
		data.widthHint = 32;
227
		imageLabel.setLayoutData(data);
230
		imageLabel.setLayoutData(data);
231
		imageLabel.setFont(font);
228
		
232
		
229
		// text on the right
233
		// text on the right
230
		text = new StyledText(infoArea, SWT.MULTI | SWT.READ_ONLY);
234
		text = new StyledText(infoArea, SWT.MULTI | SWT.READ_ONLY);
Lines 235-240 Link Here
235
		data.verticalAlignment = GridData.BEGINNING;
239
		data.verticalAlignment = GridData.BEGINNING;
236
		data.grabExcessHorizontalSpace = true;
240
		data.grabExcessHorizontalSpace = true;
237
		text.setLayoutData(data);
241
		text.setLayoutData(data);
242
		text.setFont(font);
238
		text.setCursor(null);
243
		text.setCursor(null);
239
		text.setBackground(infoArea.getBackground());
244
		text.setBackground(infoArea.getBackground());
240
		addListeners(text);
245
		addListeners(text);
Lines 256-262 Link Here
256
				SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER);
261
				SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER);
257
		table.setHeaderVisible(true);
262
		table.setHeaderVisible(true);
258
		table.setLinesVisible(true);
263
		table.setLinesVisible(true);
259
264
		table.setFont(parent.getFont());
265
		
260
		SelectionListener listener = new SelectionAdapter() {
266
		SelectionListener listener = new SelectionAdapter() {
261
			public void widgetSelected(SelectionEvent e) {
267
			public void widgetSelected(SelectionEvent e) {
262
				AboutInfo info = (AboutInfo)e.item.getData();
268
				AboutInfo info = (AboutInfo)e.item.getData();
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/AboutPluginsDialog.java (-1 / +3 lines)
Lines 156-161 Link Here
156
		if (message != null) {
156
		if (message != null) {
157
			Label label = new Label(outer, SWT.NONE);
157
			Label label = new Label(outer, SWT.NONE);
158
			label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
158
			label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
159
			label.setFont(parent.getFont());
159
			label.setText(message);
160
			label.setText(message);
160
		}
161
		}
161
162
Lines 185-191 Link Here
185
				SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER);
186
				SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER);
186
		vendorInfo.setHeaderVisible(true);
187
		vendorInfo.setHeaderVisible(true);
187
		vendorInfo.setLinesVisible(true);
188
		vendorInfo.setLinesVisible(true);
188
189
		vendorInfo.setFont(parent.getFont());
190
		
189
		SelectionListener listener = new SelectionAdapter() {
191
		SelectionListener listener = new SelectionAdapter() {
190
			public void widgetSelected(SelectionEvent e) {
192
			public void widgetSelected(SelectionEvent e) {
191
				setMoreButtonEnablement(e.item != null);
193
				setMoreButtonEnablement(e.item != null);
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetSelectionDialog.java (-1 / +1 lines)
Lines 133-139 Link Here
133
	// ...second the label
133
	// ...second the label
134
	Label selectionLabel = new Label(actionSetGroup,SWT.NONE);
134
	Label selectionLabel = new Label(actionSetGroup,SWT.NONE);
135
	selectionLabel.setText(WorkbenchMessages.getString("ActionSetSelection.available")); //$NON-NLS-1$
135
	selectionLabel.setText(WorkbenchMessages.getString("ActionSetSelection.available")); //$NON-NLS-1$
136
	selectionLabel.setFont(parent.getFont());
136
	selectionLabel.setFont(font);
137
137
138
	// ...third the checkbox list
138
	// ...third the checkbox list
139
	actionSetViewer = new CheckboxTreeViewer(actionSetGroup, SWT.BORDER);
139
	actionSetViewer = new CheckboxTreeViewer(actionSetGroup, SWT.BORDER);
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/CheckboxSingleListGroup.java (+3 lines)
Lines 120-125 Link Here
120
 *	@param height int
120
 *	@param height int
121
 */
121
 */
122
protected void createContents(Composite parent,int width,int height) {
122
protected void createContents(Composite parent,int width,int height) {
123
	Font font = parent.getFont();
123
	// group pane
124
	// group pane
124
	Composite composite = new Composite(parent,SWT.NONE);
125
	Composite composite = new Composite(parent,SWT.NONE);
125
	GridLayout layout = new GridLayout();
126
	GridLayout layout = new GridLayout();
Lines 131-136 Link Here
131
	spec.verticalAlignment = GridData.FILL;
132
	spec.verticalAlignment = GridData.FILL;
132
	composite.setLayout(layout);
133
	composite.setLayout(layout);
133
	composite.setLayoutData(spec);
134
	composite.setLayoutData(spec);
135
	composite.setFont(font);
134
	
136
	
135
	// list 1 view pane.  Add a border to the pane.
137
	// list 1 view pane.  Add a border to the pane.
136
	Composite pane = createViewPane(composite, width/2, height/2);
138
	Composite pane = createViewPane(composite, width/2, height/2);
Lines 141-146 Link Here
141
	list1Viewer.setLabelProvider(list1LabelProvider);
143
	list1Viewer.setLabelProvider(list1LabelProvider);
142
	list1Viewer.addCheckStateListener(this);
144
	list1Viewer.addCheckStateListener(this);
143
	list1Viewer.addSelectionChangedListener(this);
145
	list1Viewer.addSelectionChangedListener(this);
146
	list1Viewer.getTable().setFont(font);
144
147
145
	// this has to be done after the viewers have been laid out
148
	// this has to be done after the viewers have been laid out
146
	list1Viewer.setInput(root);
149
	list1Viewer.setInput(root);
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/EditorSelectionDialog.java (-4 / +6 lines)
Lines 103-108 Link Here
103
 * @return the dialog area control
103
 * @return the dialog area control
104
 */
104
 */
105
protected Control createDialogArea(Composite parent) {
105
protected Control createDialogArea(Composite parent) {
106
	Font font = parent.getFont();
106
	// create main group
107
	// create main group
107
	Composite contents = (Composite)super.createDialogArea(parent);
108
	Composite contents = (Composite)super.createDialogArea(parent);
108
	((GridLayout)contents.getLayout()).numColumns = 2;
109
	((GridLayout)contents.getLayout()).numColumns = 2;
Lines 113-119 Link Here
113
	GridData data = new GridData();
114
	GridData data = new GridData();
114
	data.horizontalSpan = 2;
115
	data.horizontalSpan = 2;
115
	textLabel.setLayoutData(data);
116
	textLabel.setLayoutData(data);
116
	textLabel.setFont(parent.getFont());
117
	textLabel.setFont(font);
117
118
118
	internalButton = new Button(contents, SWT.RADIO | SWT.LEFT);
119
	internalButton = new Button(contents, SWT.RADIO | SWT.LEFT);
119
	internalButton.setText(WorkbenchMessages.getString("EditorSelection.internal")); //$NON-NLS-1$
120
	internalButton.setText(WorkbenchMessages.getString("EditorSelection.internal")); //$NON-NLS-1$
Lines 121-127 Link Here
121
	data = new GridData();
122
	data = new GridData();
122
	data.horizontalSpan = 1;
123
	data.horizontalSpan = 1;
123
	internalButton.setLayoutData(data);
124
	internalButton.setLayoutData(data);
124
	internalButton.setFont(parent.getFont());
125
	internalButton.setFont(font);
125
126
126
	externalButton = new Button(contents, SWT.RADIO | SWT.LEFT);
127
	externalButton = new Button(contents, SWT.RADIO | SWT.LEFT);
127
	externalButton.setText(WorkbenchMessages.getString("EditorSelection.external")); //$NON-NLS-1$
128
	externalButton.setText(WorkbenchMessages.getString("EditorSelection.external")); //$NON-NLS-1$
Lines 129-135 Link Here
129
	data = new GridData();
130
	data = new GridData();
130
	data.horizontalSpan = 1;
131
	data.horizontalSpan = 1;
131
	externalButton.setLayoutData(data);
132
	externalButton.setLayoutData(data);
132
	externalButton.setFont(parent.getFont());
133
	externalButton.setFont(font);
133
		
134
		
134
	editorTable = new Table(contents, SWT.SINGLE | SWT.BORDER);
135
	editorTable = new Table(contents, SWT.SINGLE | SWT.BORDER);
135
	editorTable.addListener(SWT.Selection, this);
136
	editorTable.addListener(SWT.Selection, this);
Lines 143-148 Link Here
143
	data.grabExcessVerticalSpace= true;
144
	data.grabExcessVerticalSpace= true;
144
	data.horizontalSpan = 2;
145
	data.horizontalSpan = 2;
145
	editorTable.setLayoutData(data);
146
	editorTable.setLayoutData(data);
147
	editorTable.setFont(font);
146
	data.heightHint = editorTable.getItemHeight()*12;
148
	data.heightHint = editorTable.getItemHeight()*12;
147
	
149
	
148
	browseExternalEditorsButton = new Button(contents, SWT.PUSH);
150
	browseExternalEditorsButton = new Button(contents, SWT.PUSH);
Lines 153-159 Link Here
153
	int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
155
	int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
154
	data.widthHint = Math.max(widthHint, browseExternalEditorsButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
156
	data.widthHint = Math.max(widthHint, browseExternalEditorsButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
155
	browseExternalEditorsButton.setLayoutData(data);
157
	browseExternalEditorsButton.setLayoutData(data);
156
	browseExternalEditorsButton.setFont(parent.getFont());
158
	browseExternalEditorsButton.setFont(font);
157
	
159
	
158
	restoreWidgetValues();  // Place buttons to the appropriate state
160
	restoreWidgetValues();  // Place buttons to the appropriate state
159
	
161
	
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/FilterDialog.java (+5 lines)
Lines 16-21 Link Here
16
import org.eclipse.jface.window.Window;
16
import org.eclipse.jface.window.Window;
17
import org.eclipse.swt.SWT;
17
import org.eclipse.swt.SWT;
18
import org.eclipse.swt.events.*;
18
import org.eclipse.swt.events.*;
19
import org.eclipse.swt.graphics.Font;
19
import org.eclipse.swt.layout.*;
20
import org.eclipse.swt.layout.*;
20
import org.eclipse.swt.widgets.*;
21
import org.eclipse.swt.widgets.*;
21
import org.eclipse.ui.*;
22
import org.eclipse.ui.*;
Lines 99-104 Link Here
99
	 * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(Composite)
100
	 * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(Composite)
100
	 */	
101
	 */	
101
	protected Control createDialogArea(Composite parent) {
102
	protected Control createDialogArea(Composite parent) {
103
		Font font = parent.getFont();
102
		Composite composite = (Composite) super.createDialogArea(parent);
104
		Composite composite = (Composite) super.createDialogArea(parent);
103
		Composite group = new Composite(composite, SWT.NONE);
105
		Composite group = new Composite(composite, SWT.NONE);
104
		GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
106
		GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
Lines 117-122 Link Here
117
		data = new GridData();
119
		data = new GridData();
118
		data.horizontalSpan = 2;
120
		data.horizontalSpan = 2;
119
		workingSetButton.setLayoutData(data);
121
		workingSetButton.setLayoutData(data);
122
		workingSetButton.setFont(font);
120
123
121
		group = new Composite(group, SWT.NONE);
124
		group = new Composite(group, SWT.NONE);
122
		data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
125
		data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
Lines 124-133 Link Here
124
		layout = new GridLayout();
127
		layout = new GridLayout();
125
		layout.marginHeight = 0;
128
		layout.marginHeight = 0;
126
		group.setLayout(layout);
129
		group.setLayout(layout);
130
		group.setFont(font);
127
131
128
		mruList = new Combo(group, SWT.DROP_DOWN | SWT.READ_ONLY);
132
		mruList = new Combo(group, SWT.DROP_DOWN | SWT.READ_ONLY);
129
		data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
133
		data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
130
		mruList.setLayoutData(data);
134
		mruList.setLayoutData(data);
135
		mruList.setFont(font);
131
		selectButton = createButton(group, SELECT_ID, WorkbenchMessages.getString("FilterDialog.workingSetOther"), false); //$NON-NLS-1$
136
		selectButton = createButton(group, SELECT_ID, WorkbenchMessages.getString("FilterDialog.workingSetOther"), false); //$NON-NLS-1$
132
137
133
		initializeMru();
138
		initializeMru();
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepConfigureWizardPage.java (+1 lines)
Lines 69-74 Link Here
69
		layout.numColumns = 2;
69
		layout.numColumns = 2;
70
		composite.setLayout(layout);
70
		composite.setLayout(layout);
71
		composite.setLayoutData(new GridData(GridData.FILL_BOTH));
71
		composite.setLayoutData(new GridData(GridData.FILL_BOTH));
72
		composite.setFont(parent.getFont());
72
73
73
		WorkbenchHelp.setHelp(composite, IHelpContextIds.NEW_PROJECT_CONFIGURE_WIZARD_PAGE);
74
		WorkbenchHelp.setHelp(composite, IHelpContextIds.NEW_PROJECT_CONFIGURE_WIZARD_PAGE);
74
75
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/MultiStepReviewWizardPage.java (+5 lines)
Lines 12-17 Link Here
12
import org.eclipse.jface.viewers.*;
12
import org.eclipse.jface.viewers.*;
13
import org.eclipse.jface.wizard.WizardPage;
13
import org.eclipse.jface.wizard.WizardPage;
14
import org.eclipse.swt.SWT;
14
import org.eclipse.swt.SWT;
15
import org.eclipse.swt.graphics.Font;
15
import org.eclipse.swt.layout.GridData;
16
import org.eclipse.swt.layout.GridData;
16
import org.eclipse.swt.layout.GridLayout;
17
import org.eclipse.swt.layout.GridLayout;
17
import org.eclipse.swt.widgets.*;
18
import org.eclipse.swt.widgets.*;
Lines 78-83 Link Here
78
	 * Creates the control for the details
79
	 * Creates the control for the details
79
	 */
80
	 */
80
	private void createDetailsGroup(Composite parent) {
81
	private void createDetailsGroup(Composite parent) {
82
		Font font = parent.getFont();
81
		// Create a composite to hold everything together
83
		// Create a composite to hold everything together
82
		Composite composite = new Composite(parent, SWT.NULL);
84
		Composite composite = new Composite(parent, SWT.NULL);
83
		composite.setLayout(new GridLayout());
85
		composite.setLayout(new GridLayout());
Lines 89-100 Link Here
89
		GridData data = new GridData();
91
		GridData data = new GridData();
90
		data.verticalAlignment = SWT.TOP;
92
		data.verticalAlignment = SWT.TOP;
91
		label.setLayoutData(data);
93
		label.setLayoutData(data);
94
		label.setFont(font);
92
		
95
		
93
		// Text field to display the step's details
96
		// Text field to display the step's details
94
		detailsField = new Text(composite, SWT.WRAP | SWT.MULTI | SWT.V_SCROLL | SWT.BORDER);
97
		detailsField = new Text(composite, SWT.WRAP | SWT.MULTI | SWT.V_SCROLL | SWT.BORDER);
95
		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$
98
		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$
96
		detailsField.setEditable(false);
99
		detailsField.setEditable(false);
97
		detailsField.setLayoutData(new GridData(GridData.FILL_BOTH));
100
		detailsField.setLayoutData(new GridData(GridData.FILL_BOTH));
101
		detailsField.setFont(font);
98
	}
102
	}
99
	
103
	
100
	/**
104
	/**
Lines 107-112 Link Here
107
		data.verticalAlignment = SWT.TOP;
111
		data.verticalAlignment = SWT.TOP;
108
		data.horizontalSpan = 2;
112
		data.horizontalSpan = 2;
109
		instructionLabel.setLayoutData(data);
113
		instructionLabel.setLayoutData(data);
114
		instructionLabel.setFont(parent.getFont());
110
	}
115
	}
111
	
116
	
112
	/**
117
	/**
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/PathVariableDialog.java (-1 / +5 lines)
Lines 234-239 Link Here
234
		data.width = convertWidthInCharsToPixels(50);
234
		data.width = convertWidthInCharsToPixels(50);
235
		data.left = new FormAttachment(largerLabel, convertHorizontalDLUsToPixels(5));
235
		data.left = new FormAttachment(largerLabel, convertHorizontalDLUsToPixels(5));
236
		variableNameField.setLayoutData(data);
236
		variableNameField.setLayoutData(data);
237
		variableNameField.setFont(font);
237
		variableNameField.setFocus();
238
		variableNameField.setFocus();
238
239
239
		variableNameField.addModifyListener(new ModifyListener() {
240
		variableNameField.addModifyListener(new ModifyListener() {
Lines 251-257 Link Here
251
		data.left = new FormAttachment(largerLabel, convertHorizontalDLUsToPixels(5));
252
		data.left = new FormAttachment(largerLabel, convertHorizontalDLUsToPixels(5));
252
		data.top = new FormAttachment(variableNameLabel, convertVerticalDLUsToPixels(10));
253
		data.top = new FormAttachment(variableNameLabel, convertVerticalDLUsToPixels(10));
253
		variableValueField.setLayoutData(data);
254
		variableValueField.setLayoutData(data);
254
255
		variableValueField.setFont(font);
256
		
255
		variableValueField.addModifyListener(new ModifyListener() {
257
		variableValueField.addModifyListener(new ModifyListener() {
256
			public void modifyText(ModifyEvent event) {
258
			public void modifyText(ModifyEvent event) {
257
				variableValueModified();
259
				variableValueModified();
Lines 269-274 Link Here
269
		data.left = new FormAttachment(variableValueField, convertHorizontalDLUsToPixels(10));
271
		data.left = new FormAttachment(variableValueField, convertHorizontalDLUsToPixels(10));
270
		data.right = new FormAttachment(100, -5);
272
		data.right = new FormAttachment(100, -5);
271
		fileButton.setLayoutData(data);
273
		fileButton.setLayoutData(data);
274
		fileButton.setFont(font);
272
275
273
		fileButton.addSelectionListener(new SelectionAdapter() {
276
		fileButton.addSelectionListener(new SelectionAdapter() {
274
			public void widgetSelected(SelectionEvent e) {
277
			public void widgetSelected(SelectionEvent e) {
Lines 287-292 Link Here
287
		data.left = new FormAttachment(variableValueField, convertHorizontalDLUsToPixels(10));
290
		data.left = new FormAttachment(variableValueField, convertHorizontalDLUsToPixels(10));
288
		data.right = new FormAttachment(100, -5);
291
		data.right = new FormAttachment(100, -5);
289
		folderButton.setLayoutData(data);
292
		folderButton.setLayoutData(data);
293
		folderButton.setFont(font);
290
294
291
		folderButton.addSelectionListener(new SelectionAdapter() {
295
		folderButton.addSelectionListener(new SelectionAdapter() {
292
			public void widgetSelected(SelectionEvent e) {
296
			public void widgetSelected(SelectionEvent e) {
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityEditingPropertyPage.java (+8 lines)
Lines 23-28 Link Here
23
import org.eclipse.swt.SWT;
23
import org.eclipse.swt.SWT;
24
import org.eclipse.swt.events.SelectionEvent;
24
import org.eclipse.swt.events.SelectionEvent;
25
import org.eclipse.swt.events.SelectionListener;
25
import org.eclipse.swt.events.SelectionListener;
26
import org.eclipse.swt.graphics.Font;
26
import org.eclipse.swt.graphics.Image;
27
import org.eclipse.swt.graphics.Image;
27
import org.eclipse.swt.layout.GridData;
28
import org.eclipse.swt.layout.GridData;
28
import org.eclipse.swt.layout.GridLayout;
29
import org.eclipse.swt.layout.GridLayout;
Lines 61-66 Link Here
61
	 * Method declared on PreferencePage
62
	 * Method declared on PreferencePage
62
	 */
63
	 */
63
	protected Control createContents(Composite parent) {
64
	protected Control createContents(Composite parent) {
65
		Font font = parent.getFont();
64
		WorkbenchHelp.setHelp(parent, IHelpContextIds.PROJECT_CAPABILITY_PROPERTY_PAGE);
66
		WorkbenchHelp.setHelp(parent, IHelpContextIds.PROJECT_CAPABILITY_PROPERTY_PAGE);
65
		noDefaultAndApplyButton();
67
		noDefaultAndApplyButton();
66
		reg = WorkbenchPlugin.getDefault().getCapabilityRegistry();
68
		reg = WorkbenchPlugin.getDefault().getCapabilityRegistry();
Lines 78-83 Link Here
78
		else
80
		else
79
			instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.noCapabilities"); //$NON-NLS-1$
81
			instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.noCapabilities"); //$NON-NLS-1$
80
		Label label = new Label(topComposite, SWT.LEFT);
82
		Label label = new Label(topComposite, SWT.LEFT);
83
		label.setFont(font);
81
		label.setText(instructions);
84
		label.setText(instructions);
82
85
83
		Capability[] caps = reg.getProjectDisabledCapabilities(getProject());
86
		Capability[] caps = reg.getProjectDisabledCapabilities(getProject());
Lines 99-108 Link Here
99
		capComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
102
		capComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
100
103
101
		label = new Label(capComposite, SWT.LEFT);
104
		label = new Label(capComposite, SWT.LEFT);
105
		label.setFont(font);
102
		label.setText(WorkbenchMessages.getString("ProjectCapabilitySelectionGroup.capabilities")); //$NON-NLS-1$
106
		label.setText(WorkbenchMessages.getString("ProjectCapabilitySelectionGroup.capabilities")); //$NON-NLS-1$
103
		
107
		
104
		table = new TableViewer(capComposite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
108
		table = new TableViewer(capComposite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
105
		table.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
109
		table.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
110
		table.getTable().setFont(font);
106
		table.setLabelProvider(new CapabilityLabelProvider());
111
		table.setLabelProvider(new CapabilityLabelProvider());
107
		table.setContentProvider(getContentProvider());
112
		table.setContentProvider(getContentProvider());
108
		table.setInput(getProject());
113
		table.setInput(getProject());
Lines 115-120 Link Here
115
		buttonComposite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
120
		buttonComposite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
116
121
117
		label = new Label(buttonComposite, SWT.LEFT);
122
		label = new Label(buttonComposite, SWT.LEFT);
123
		label.setFont(font);
118
		label.setText(""); //$NON-NLS-1$
124
		label.setText(""); //$NON-NLS-1$
119
		
125
		
120
		addButton = new Button(buttonComposite, SWT.PUSH);
126
		addButton = new Button(buttonComposite, SWT.PUSH);
Lines 133-138 Link Here
133
		int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
139
		int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
134
		data.widthHint = Math.max(widthHint, addButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
140
		data.widthHint = Math.max(widthHint, addButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
135
		addButton.setLayoutData(data);
141
		addButton.setLayoutData(data);
142
		addButton.setFont(font);
136
		
143
		
137
		removeButton = new Button(buttonComposite, SWT.PUSH);
144
		removeButton = new Button(buttonComposite, SWT.PUSH);
138
		removeButton.setText(WorkbenchMessages.getString("ProjectCapabilityEditingPropertyPage.remove")); //$NON-NLS-1$
145
		removeButton.setText(WorkbenchMessages.getString("ProjectCapabilityEditingPropertyPage.remove")); //$NON-NLS-1$
Lines 150-155 Link Here
150
		widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
157
		widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
151
		data.widthHint = Math.max(widthHint, removeButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
158
		data.widthHint = Math.max(widthHint, removeButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
152
		removeButton.setLayoutData(data);
159
		removeButton.setLayoutData(data);
160
		removeButton.setFont(font);
153
161
154
		table.addSelectionChangedListener(new ISelectionChangedListener() {
162
		table.addSelectionChangedListener(new ISelectionChangedListener() {
155
			public void selectionChanged(SelectionChangedEvent event) {
163
			public void selectionChanged(SelectionChangedEvent event) {
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilityPropertyPage.java (+1 lines)
Lines 63-68 Link Here
63
		else
63
		else
64
			instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.noCapabilities"); //$NON-NLS-1$
64
			instructions = WorkbenchMessages.getString("ProjectCapabilityPropertyPage.noCapabilities"); //$NON-NLS-1$
65
		Label label = new Label(parent, SWT.LEFT);
65
		Label label = new Label(parent, SWT.LEFT);
66
		label.setFont(parent.getFont());
66
		label.setText(instructions);
67
		label.setText(instructions);
67
		
68
		
68
		Capability[] caps = reg.getProjectCapabilities(getProject());
69
		Capability[] caps = reg.getProjectCapabilities(getProject());
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectCapabilitySimpleSelectionPage.java (+4 lines)
Lines 17-22 Link Here
17
import org.eclipse.jface.wizard.*;
17
import org.eclipse.jface.wizard.*;
18
import org.eclipse.swt.SWT;
18
import org.eclipse.swt.SWT;
19
import org.eclipse.swt.custom.BusyIndicator;
19
import org.eclipse.swt.custom.BusyIndicator;
20
import org.eclipse.swt.graphics.Font;
20
import org.eclipse.swt.layout.GridData;
21
import org.eclipse.swt.layout.GridData;
21
import org.eclipse.swt.layout.GridLayout;
22
import org.eclipse.swt.layout.GridLayout;
22
import org.eclipse.swt.widgets.Composite;
23
import org.eclipse.swt.widgets.Composite;
Lines 60-65 Link Here
60
	 * Method declared on IDialogPage
61
	 * Method declared on IDialogPage
61
	 */
62
	 */
62
	public void createControl(Composite parent) {
63
	public void createControl(Composite parent) {
64
		Font font = parent.getFont();
63
		Composite topContainer = new Composite(parent, SWT.NONE);
65
		Composite topContainer = new Composite(parent, SWT.NONE);
64
		topContainer.setLayout(new GridLayout());
66
		topContainer.setLayout(new GridLayout());
65
		topContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
67
		topContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
Lines 69-77 Link Here
69
		GridData data = new GridData();
71
		GridData data = new GridData();
70
		data.verticalAlignment = SWT.TOP;
72
		data.verticalAlignment = SWT.TOP;
71
		label.setLayoutData(data);
73
		label.setLayoutData(data);
74
		label.setFont(font);
72
		
75
		
73
		viewer = new TreeViewer(topContainer, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
76
		viewer = new TreeViewer(topContainer, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
74
		viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
77
		viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
78
		viewer.getTree().setFont(font);
75
		viewer.setLabelProvider(new WorkbenchLabelProvider());
79
		viewer.setLabelProvider(new WorkbenchLabelProvider());
76
		viewer.setContentProvider(getContentProvider());
80
		viewer.setContentProvider(getContentProvider());
77
		viewer.setInput(reg);
81
		viewer.setInput(reg);
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/ProjectPerspectiveChoiceDialog.java (-2 / +8 lines)
Lines 20-25 Link Here
20
import org.eclipse.swt.custom.BusyIndicator;
20
import org.eclipse.swt.custom.BusyIndicator;
21
import org.eclipse.swt.events.SelectionAdapter;
21
import org.eclipse.swt.events.SelectionAdapter;
22
import org.eclipse.swt.events.SelectionEvent;
22
import org.eclipse.swt.events.SelectionEvent;
23
import org.eclipse.swt.graphics.Font;
23
import org.eclipse.swt.layout.GridData;
24
import org.eclipse.swt.layout.GridData;
24
import org.eclipse.swt.layout.GridLayout;
25
import org.eclipse.swt.layout.GridLayout;
25
import org.eclipse.swt.widgets.*;
26
import org.eclipse.swt.widgets.*;
Lines 120-128 Link Here
120
	 * @param parent the parent composite
121
	 * @param parent the parent composite
121
	 */
122
	 */
122
	private void createPerspectiveGroup(Composite parent) {
123
	private void createPerspectiveGroup(Composite parent) {
123
124
		Font font = parent.getFont();
124
		// Label for choosing perspective
125
		// Label for choosing perspective
125
		Label label = new Label(parent, SWT.NONE);
126
		Label label = new Label(parent, SWT.NONE);
127
		label.setFont(font);
126
		label.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.choosePerspective")); //$NON-NLS-1$
128
		label.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.choosePerspective")); //$NON-NLS-1$
127
		
129
		
128
		// Add perspective list.
130
		// Add perspective list.
Lines 132-137 Link Here
132
		list.setInput(persps);
134
		list.setInput(persps);
133
		list.addSelectionChangedListener(new SelectionListener());
135
		list.addSelectionChangedListener(new SelectionListener());
134
		list.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
136
		list.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
137
		list.getTable().setFont(font);
135
	}
138
	}
136
	
139
	
137
	/**
140
	/**
Lines 140-152 Link Here
140
	 * @param parent the parent composite
143
	 * @param parent the parent composite
141
	 */
144
	 */
142
	private void createOptionGroup(Composite parent) {
145
	private void createOptionGroup(Composite parent) {
143
146
		Font font = parent.getFont();
144
		// Create the option group
147
		// Create the option group
145
		Group optionGroup = new Group(parent, SWT.LEFT);
148
		Group optionGroup = new Group(parent, SWT.LEFT);
146
		GridLayout layout = new GridLayout();
149
		GridLayout layout = new GridLayout();
147
		optionGroup.setLayout(layout);
150
		optionGroup.setLayout(layout);
148
		GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
151
		GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
149
		optionGroup.setLayoutData(data);
152
		optionGroup.setLayoutData(data);
153
		optionGroup.setFont(font);
150
		optionGroup.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.options")); //$NON-NLS-1$
154
		optionGroup.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.options")); //$NON-NLS-1$
151
155
152
		// Same window option
156
		// Same window option
Lines 154-159 Link Here
154
		button.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.sameWindow")); //$NON-NLS-1$
158
		button.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.sameWindow")); //$NON-NLS-1$
155
		data = new GridData();
159
		data = new GridData();
156
		button.setLayoutData(data);
160
		button.setLayoutData(data);
161
		button.setFont(font);
157
		button.setSelection(sameWindow);
162
		button.setSelection(sameWindow);
158
		button.addSelectionListener(new SelectionAdapter() {
163
		button.addSelectionListener(new SelectionAdapter() {
159
			public void widgetSelected(SelectionEvent e) {
164
			public void widgetSelected(SelectionEvent e) {
Lines 166-171 Link Here
166
		button.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.newWindow")); //$NON-NLS-1$
171
		button.setText(WorkbenchMessages.getString("ProjectPerspectiveChoiceDialog.newWindow")); //$NON-NLS-1$
167
		data = new GridData();
172
		data = new GridData();
168
		button.setLayoutData(data);
173
		button.setLayoutData(data);
174
		button.setFont(font);
169
		button.setSelection(!sameWindow);
175
		button.setSelection(!sameWindow);
170
		button.addSelectionListener(new SelectionAdapter() {
176
		button.addSelectionListener(new SelectionAdapter() {
171
			public void widgetSelected(SelectionEvent e) {
177
			public void widgetSelected(SelectionEvent e) {
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceListSelectionDialog.java (+13 lines)
Lines 11-16 Link Here
11
import org.eclipse.core.resources.IResource;
11
import org.eclipse.core.resources.IResource;
12
import org.eclipse.swt.SWT;
12
import org.eclipse.swt.SWT;
13
import org.eclipse.swt.events.*;
13
import org.eclipse.swt.events.*;
14
import org.eclipse.swt.graphics.Font;
14
import org.eclipse.swt.graphics.Image;
15
import org.eclipse.swt.graphics.Image;
15
import org.eclipse.swt.layout.GridData;
16
import org.eclipse.swt.layout.GridData;
16
import org.eclipse.swt.widgets.*;
17
import org.eclipse.swt.widgets.*;
Lines 156-192 Link Here
156
 * listener and the update thread.
157
 * listener and the update thread.
157
 */
158
 */
158
protected Control createDialogArea(Composite parent) {
159
protected Control createDialogArea(Composite parent) {
160
	Font font = parent.getFont();
159
	Composite dialogArea = (Composite)super.createDialogArea(parent);
161
	Composite dialogArea = (Composite)super.createDialogArea(parent);
162
	
160
	Label l = new Label(dialogArea,SWT.NONE);
163
	Label l = new Label(dialogArea,SWT.NONE);
161
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.label")); //$NON-NLS-1$
164
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.label")); //$NON-NLS-1$
162
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
165
	GridData data = new GridData(GridData.FILL_HORIZONTAL);
163
	l.setLayoutData(data);
166
	l.setLayoutData(data);
167
	l.setFont(font);
164
	
168
	
165
	l = new Label(dialogArea,SWT.NONE);
169
	l = new Label(dialogArea,SWT.NONE);
166
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.pattern")); //$NON-NLS-1$
170
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.pattern")); //$NON-NLS-1$
167
	data = new GridData(GridData.FILL_HORIZONTAL);
171
	data = new GridData(GridData.FILL_HORIZONTAL);
168
	l.setLayoutData(data);
172
	l.setLayoutData(data);
173
	l.setFont(font);
174
	
169
	pattern = new Text(dialogArea,SWT.SINGLE|SWT.BORDER);
175
	pattern = new Text(dialogArea,SWT.SINGLE|SWT.BORDER);
170
	pattern.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
176
	pattern.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
177
	pattern.setFont(font);
178
	
171
	l = new Label(dialogArea,SWT.NONE);
179
	l = new Label(dialogArea,SWT.NONE);
172
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.matching")); //$NON-NLS-1$
180
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.matching")); //$NON-NLS-1$
173
	data = new GridData(GridData.FILL_HORIZONTAL);
181
	data = new GridData(GridData.FILL_HORIZONTAL);
174
	l.setLayoutData(data);
182
	l.setLayoutData(data);
183
	l.setFont(font);
184
	
175
	resourceNames = new Table(dialogArea,SWT.SINGLE|SWT.BORDER|SWT.V_SCROLL);
185
	resourceNames = new Table(dialogArea,SWT.SINGLE|SWT.BORDER|SWT.V_SCROLL);
176
	data = new GridData(GridData.FILL_BOTH);
186
	data = new GridData(GridData.FILL_BOTH);
177
	data.heightHint = 12 * resourceNames.getItemHeight();
187
	data.heightHint = 12 * resourceNames.getItemHeight();
178
	resourceNames.setLayoutData(data);
188
	resourceNames.setLayoutData(data);
189
	resourceNames.setFont(font);
179
	
190
	
180
	l = new Label(dialogArea,SWT.NONE);
191
	l = new Label(dialogArea,SWT.NONE);
181
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.folders")); //$NON-NLS-1$
192
	l.setText(WorkbenchMessages.getString("ResourceSelectionDialog.folders")); //$NON-NLS-1$
182
	data = new GridData(GridData.FILL_HORIZONTAL);
193
	data = new GridData(GridData.FILL_HORIZONTAL);
183
	l.setLayoutData(data);
194
	l.setLayoutData(data);
195
	l.setFont(font);
184
	
196
	
185
	folderNames = new Table(dialogArea,SWT.SINGLE|SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL);
197
	folderNames = new Table(dialogArea,SWT.SINGLE|SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL);
186
	data = new GridData(GridData.FILL_BOTH);
198
	data = new GridData(GridData.FILL_BOTH);
187
	data.widthHint = 300;
199
	data.widthHint = 300;
188
	data.heightHint = 4 * folderNames.getItemHeight();
200
	data.heightHint = 4 * folderNames.getItemHeight();
189
	folderNames.setLayoutData(data);
201
	folderNames.setLayoutData(data);
202
	folderNames.setFont(font);
190
	
203
	
191
	updateThread = new UpdateThread();
204
	updateThread = new UpdateThread();
192
	updateThread.start();
205
	updateThread.start();
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java (+6 lines)
Lines 23-28 Link Here
23
import org.eclipse.swt.custom.BusyIndicator;
23
import org.eclipse.swt.custom.BusyIndicator;
24
import org.eclipse.swt.events.ModifyEvent;
24
import org.eclipse.swt.events.ModifyEvent;
25
import org.eclipse.swt.events.ModifyListener;
25
import org.eclipse.swt.events.ModifyListener;
26
import org.eclipse.swt.graphics.Font;
26
import org.eclipse.swt.layout.GridData;
27
import org.eclipse.swt.layout.GridData;
27
import org.eclipse.swt.layout.GridLayout;
28
import org.eclipse.swt.layout.GridLayout;
28
import org.eclipse.swt.widgets.*;
29
import org.eclipse.swt.widgets.*;
Lines 65-70 Link Here
65
	 * @see org.eclipse.jface.wizard.WizardPage#createControl(Composite)
66
	 * @see org.eclipse.jface.wizard.WizardPage#createControl(Composite)
66
	 */
67
	 */
67
	public void createControl(Composite parent) {
68
	public void createControl(Composite parent) {
69
		Font font = parent.getFont();
68
		Composite composite= new Composite(parent, SWT.NULL);
70
		Composite composite= new Composite(parent, SWT.NULL);
69
		composite.setLayout(new GridLayout());
71
		composite.setLayout(new GridLayout());
70
		composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
72
		composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
Lines 75-83 Link Here
75
		label.setText(WorkbenchMessages.getString("ResourceWorkingSetPage.message")); //$NON-NLS-1$
77
		label.setText(WorkbenchMessages.getString("ResourceWorkingSetPage.message")); //$NON-NLS-1$
76
		GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
78
		GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
77
		label.setLayoutData(data);
79
		label.setLayoutData(data);
80
		label.setFont(font);
78
81
79
		text = new Text(composite, SWT.SINGLE | SWT.BORDER);
82
		text = new Text(composite, SWT.SINGLE | SWT.BORDER);
80
		text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
83
		text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
84
		text.setFont(font);
81
		text.addModifyListener(
85
		text.addModifyListener(
82
			new ModifyListener() {
86
			new ModifyListener() {
83
				public void modifyText(ModifyEvent e) {
87
				public void modifyText(ModifyEvent e) {
Lines 91-96 Link Here
91
		label.setText(WorkbenchMessages.getString("ResourceWorkingSetPage.label.tree")); //$NON-NLS-1$
95
		label.setText(WorkbenchMessages.getString("ResourceWorkingSetPage.label.tree")); //$NON-NLS-1$
92
		data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
96
		data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
93
		label.setLayoutData(data);
97
		label.setLayoutData(data);
98
		label.setFont(font);
94
99
95
		tree = new CheckboxTreeViewer(composite);
100
		tree = new CheckboxTreeViewer(composite);
96
		tree.setUseHashlookup(true);
101
		tree.setUseHashlookup(true);
Lines 106-111 Link Here
106
		data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
111
		data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
107
		data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
112
		data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
108
		tree.getControl().setLayoutData(data);
113
		tree.getControl().setLayoutData(data);
114
		tree.getControl().setFont(font);
109
115
110
		tree.addCheckStateListener(new ICheckStateListener() {
116
		tree.addCheckStateListener(new ICheckStateListener() {
111
			public void checkStateChanged(CheckStateChangedEvent event) {
117
			public void checkStateChanged(CheckStateChangedEvent event) {
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/SavePerspectiveDialog.java (-3 / +6 lines)
Lines 9-14 Link Here
9
import org.eclipse.jface.viewers.*;
9
import org.eclipse.jface.viewers.*;
10
import org.eclipse.swt.SWT;
10
import org.eclipse.swt.SWT;
11
import org.eclipse.swt.events.ModifyListener;
11
import org.eclipse.swt.events.ModifyListener;
12
import org.eclipse.swt.graphics.Font;
12
import org.eclipse.swt.layout.GridData;
13
import org.eclipse.swt.layout.GridData;
13
import org.eclipse.swt.layout.GridLayout;
14
import org.eclipse.swt.layout.GridLayout;
14
import org.eclipse.swt.widgets.*;
15
import org.eclipse.swt.widgets.*;
Lines 73-78 Link Here
73
 * @return the dialog area control
74
 * @return the dialog area control
74
 */
75
 */
75
protected Control createDialogArea(Composite parent) {
76
protected Control createDialogArea(Composite parent) {
77
	Font font = parent.getFont();
76
	// Run super.
78
	// Run super.
77
	Composite composite = (Composite)super.createDialogArea(parent);
79
	Composite composite = (Composite)super.createDialogArea(parent);
78
80
Lines 98-104 Link Here
98
	// Create name label.
100
	// Create name label.
99
	label = new Label(nameGroup, SWT.NONE);
101
	label = new Label(nameGroup, SWT.NONE);
100
	label.setText(WorkbenchMessages.getString("SavePerspective.name")); //$NON-NLS-1$
102
	label.setText(WorkbenchMessages.getString("SavePerspective.name")); //$NON-NLS-1$
101
	label.setFont(parent.getFont());
103
	label.setFont(font);
102
104
103
	// Add text field.
105
	// Add text field.
104
	text = new Text(nameGroup, SWT.BORDER);
106
	text = new Text(nameGroup, SWT.BORDER);
Lines 106-111 Link Here
106
	data = new GridData(GridData.FILL_HORIZONTAL);
108
	data = new GridData(GridData.FILL_HORIZONTAL);
107
	data.widthHint = convertWidthInCharsToPixels(TEXT_WIDTH);
109
	data.widthHint = convertWidthInCharsToPixels(TEXT_WIDTH);
108
	text.setLayoutData(data);
110
	text.setLayoutData(data);
111
	text.setFont(font);
109
	text.addModifyListener(this);
112
	text.addModifyListener(this);
110
113
111
	// Spacer.
114
	// Spacer.
Lines 117-123 Link Here
117
	// Another label.
120
	// Another label.
118
	label = new Label(composite, SWT.NONE);
121
	label = new Label(composite, SWT.NONE);
119
	label.setText(WorkbenchMessages.getString("SavePerspective.existing")); //$NON-NLS-1$
122
	label.setText(WorkbenchMessages.getString("SavePerspective.existing")); //$NON-NLS-1$
120
	label.setFont(parent.getFont());
123
	label.setFont(font);
121
124
122
	// Add perspective list.
125
	// Add perspective list.
123
	list = new TableViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
126
	list = new TableViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
Lines 126-132 Link Here
126
	list.setSorter(new ViewerSorter() {});
129
	list.setSorter(new ViewerSorter() {});
127
	list.setInput(perspReg);
130
	list.setInput(perspReg);
128
	list.addSelectionChangedListener(this);
131
	list.addSelectionChangedListener(this);
129
	list.getTable().setFont(parent.getFont());
132
	list.getTable().setFont(font);
130
133
131
	// Set perspective list size.
134
	// Set perspective list size.
132
	Control ctrl = list.getControl();
135
	Control ctrl = list.getControl();
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/SelectPerspectiveDialog.java (+1 lines)
Lines 80-85 Link Here
80
	
80
	
81
	// Add perspective list.
81
	// Add perspective list.
82
	list = new TableViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
82
	list = new TableViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
83
	list.getTable().setFont(parent.getFont());
83
	list.setLabelProvider(new PerspLabelProvider());
84
	list.setLabelProvider(new PerspLabelProvider());
84
	list.setContentProvider(new PerspContentProvider());
85
	list.setContentProvider(new PerspContentProvider());
85
	list.setSorter(new ViewerSorter() {});
86
	list.setSorter(new ViewerSorter() {});
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/WizardNewProjectNameAndLocationPage.java (-3 / +14 lines)
Lines 24-29 Link Here
24
import org.eclipse.swt.events.SelectionAdapter;
24
import org.eclipse.swt.events.SelectionAdapter;
25
import org.eclipse.swt.events.SelectionEvent;
25
import org.eclipse.swt.events.SelectionEvent;
26
import org.eclipse.swt.events.SelectionListener;
26
import org.eclipse.swt.events.SelectionListener;
27
import org.eclipse.swt.graphics.Font;
27
import org.eclipse.swt.layout.GridData;
28
import org.eclipse.swt.layout.GridData;
28
import org.eclipse.swt.layout.GridLayout;
29
import org.eclipse.swt.layout.GridLayout;
29
import org.eclipse.swt.widgets.Button;
30
import org.eclipse.swt.widgets.Button;
Lines 111-116 Link Here
111
		Composite composite = new Composite(parent, SWT.NULL);
112
		Composite composite = new Composite(parent, SWT.NULL);
112
		composite.setLayout(new GridLayout());
113
		composite.setLayout(new GridLayout());
113
		composite.setLayoutData(new GridData(GridData.FILL_BOTH));
114
		composite.setLayoutData(new GridData(GridData.FILL_BOTH));
115
		composite.setFont(parent.getFont());
114
116
115
		WorkbenchHelp.setHelp(composite, IHelpContextIds.NEW_PROJECT_WIZARD_PAGE);
117
		WorkbenchHelp.setHelp(composite, IHelpContextIds.NEW_PROJECT_WIZARD_PAGE);
116
118
Lines 131-146 Link Here
131
	 * @param parent the parent composite
133
	 * @param parent the parent composite
132
	 */
134
	 */
133
	private final void createProjectLocationGroup(Composite parent) {
135
	private final void createProjectLocationGroup(Composite parent) {
134
136
		Font font = parent.getFont();
135
		// project specification group
137
		// project specification group
136
		Composite projectGroup = new Composite(parent, SWT.NONE);
138
		Composite projectGroup = new Composite(parent, SWT.NONE);
137
		GridLayout layout = new GridLayout();
139
		GridLayout layout = new GridLayout();
138
		layout.numColumns = 3;
140
		layout.numColumns = 3;
139
		projectGroup.setLayout(layout);
141
		projectGroup.setLayout(layout);
140
		projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
142
		projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
141
143
		projectGroup.setFont(font);
144
		
142
		// new project label
145
		// new project label
143
		Label projectContentsLabel = new Label(projectGroup, SWT.NONE);
146
		Label projectContentsLabel = new Label(projectGroup, SWT.NONE);
147
		projectContentsLabel.setFont(font);
144
		projectContentsLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.projectContentsLabel")); //$NON-NLS-1$
148
		projectContentsLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.projectContentsLabel")); //$NON-NLS-1$
145
149
146
		GridData labelData = new GridData();
150
		GridData labelData = new GridData();
Lines 150-155 Link Here
150
		final Button useDefaultsButton = new Button(projectGroup, SWT.CHECK | SWT.RIGHT);
154
		final Button useDefaultsButton = new Button(projectGroup, SWT.CHECK | SWT.RIGHT);
151
		useDefaultsButton.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.useDefaultLabel")); //$NON-NLS-1$
155
		useDefaultsButton.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.useDefaultLabel")); //$NON-NLS-1$
152
		useDefaultsButton.setSelection(useDefaults);
156
		useDefaultsButton.setSelection(useDefaults);
157
		useDefaultsButton.setFont(font);
153
158
154
		GridData buttonData = new GridData();
159
		GridData buttonData = new GridData();
155
		buttonData.horizontalSpan = 3;
160
		buttonData.horizontalSpan = 3;
Lines 180-185 Link Here
180
	 * @param parent the parent composite
185
	 * @param parent the parent composite
181
	 */
186
	 */
182
	private final void createProjectNameGroup(Composite parent) {
187
	private final void createProjectNameGroup(Composite parent) {
188
		Font font = parent.getFont();
183
		// project specification group
189
		// project specification group
184
		Composite projectGroup = new Composite(parent, SWT.NONE);
190
		Composite projectGroup = new Composite(parent, SWT.NONE);
185
		GridLayout layout = new GridLayout();
191
		GridLayout layout = new GridLayout();
Lines 189-194 Link Here
189
195
190
		// new project label
196
		// new project label
191
		Label projectLabel = new Label(projectGroup, SWT.NONE);
197
		Label projectLabel = new Label(projectGroup, SWT.NONE);
198
		projectLabel.setFont(font);
192
		projectLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.nameLabel")); //$NON-NLS-1$
199
		projectLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.nameLabel")); //$NON-NLS-1$
193
200
194
		// new project name entry field
201
		// new project name entry field
Lines 196-201 Link Here
196
		GridData data = new GridData(GridData.FILL_HORIZONTAL);
203
		GridData data = new GridData(GridData.FILL_HORIZONTAL);
197
		data.widthHint = SIZING_TEXT_FIELD_WIDTH;
204
		data.widthHint = SIZING_TEXT_FIELD_WIDTH;
198
		projectNameField.setLayoutData(data);
205
		projectNameField.setLayoutData(data);
206
		projectNameField.setFont(font);
199
207
200
		// Set the initial value first before listener
208
		// Set the initial value first before listener
201
		// to avoid handling an event during the creation.
209
		// to avoid handling an event during the creation.
Lines 211-219 Link Here
211
	 * @param boolean - the initial enabled state of the widgets created
219
	 * @param boolean - the initial enabled state of the widgets created
212
	 */
220
	 */
213
	private void createUserSpecifiedProjectLocationGroup(Composite projectGroup, boolean enabled) {
221
	private void createUserSpecifiedProjectLocationGroup(Composite projectGroup, boolean enabled) {
214
222
		Font font = projectGroup.getFont();
215
		// location label
223
		// location label
216
		locationLabel = new Label(projectGroup, SWT.NONE);
224
		locationLabel = new Label(projectGroup, SWT.NONE);
225
		locationLabel.setFont(font);
217
		locationLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.locationLabel")); //$NON-NLS-1$
226
		locationLabel.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.locationLabel")); //$NON-NLS-1$
218
		locationLabel.setEnabled(enabled);
227
		locationLabel.setEnabled(enabled);
219
228
Lines 222-231 Link Here
222
		GridData data = new GridData(GridData.FILL_HORIZONTAL);
231
		GridData data = new GridData(GridData.FILL_HORIZONTAL);
223
		data.widthHint = SIZING_TEXT_FIELD_WIDTH;
232
		data.widthHint = SIZING_TEXT_FIELD_WIDTH;
224
		locationPathField.setLayoutData(data);
233
		locationPathField.setLayoutData(data);
234
		locationPathField.setFont(font);
225
		locationPathField.setEnabled(enabled);
235
		locationPathField.setEnabled(enabled);
226
236
227
		// browse button
237
		// browse button
228
		browseButton = new Button(projectGroup, SWT.PUSH);
238
		browseButton = new Button(projectGroup, SWT.PUSH);
239
		browseButton.setFont(font);
229
		browseButton.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.browseLabel")); //$NON-NLS-1$
240
		browseButton.setText(WorkbenchMessages.getString("WizardNewProjectCreationPage.browseLabel")); //$NON-NLS-1$
230
		browseButton.addSelectionListener(new SelectionAdapter() {
241
		browseButton.addSelectionListener(new SelectionAdapter() {
231
			public void widgetSelected(SelectionEvent event) {
242
			public void widgetSelected(SelectionEvent event) {
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetSelectionDialog.java (+2 lines)
Lines 127-132 Link Here
127
		GridLayout layout = new GridLayout();
127
		GridLayout layout = new GridLayout();
128
		layout.numColumns = 2;
128
		layout.numColumns = 2;
129
		buttonComposite.setLayout(layout);
129
		buttonComposite.setLayout(layout);
130
		buttonComposite.setFont(composite.getFont());
130
		GridData data = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL);
131
		GridData data = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL);
131
		data.grabExcessHorizontalSpace = true;
132
		data.grabExcessHorizontalSpace = true;
132
		composite.setData(data);
133
		composite.setData(data);
Lines 188-193 Link Here
188
		data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
189
		data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
189
		data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
190
		data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
190
		listViewer.getTable().setLayoutData(data);
191
		listViewer.getTable().setLayoutData(data);
192
		listViewer.getTable().setFont(parent.getFont());
191
		
193
		
192
		listViewer.setLabelProvider(labelProvider);
194
		listViewer.setLabelProvider(labelProvider);
193
		listViewer.setContentProvider(contentProvider);
195
		listViewer.setContentProvider(contentProvider);
(-)Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetTypePage.java (+4 lines)
Lines 18-23 Link Here
18
import org.eclipse.jface.viewers.*;
18
import org.eclipse.jface.viewers.*;
19
import org.eclipse.jface.wizard.WizardPage;
19
import org.eclipse.jface.wizard.WizardPage;
20
import org.eclipse.swt.SWT;
20
import org.eclipse.swt.SWT;
21
import org.eclipse.swt.graphics.Font;
21
import org.eclipse.swt.graphics.Image;
22
import org.eclipse.swt.graphics.Image;
22
import org.eclipse.swt.layout.GridData;
23
import org.eclipse.swt.layout.GridData;
23
import org.eclipse.swt.layout.GridLayout;
24
import org.eclipse.swt.layout.GridLayout;
Lines 87-92 Link Here
87
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(Composite)
88
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(Composite)
88
	 */
89
	 */
89
	public void createControl(Composite parent) {
90
	public void createControl(Composite parent) {
91
		Font font = parent.getFont();
90
		Composite composite = new Composite(parent, SWT.NULL);
92
		Composite composite = new Composite(parent, SWT.NULL);
91
		composite.setLayout(new GridLayout());
93
		composite.setLayout(new GridLayout());
92
		composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
94
		composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
Lines 97-108 Link Here
97
		typesLabel.setText(WorkbenchMessages.getString("WorkingSetTypePage.typesLabel")); //$NON-NLS-1$
99
		typesLabel.setText(WorkbenchMessages.getString("WorkingSetTypePage.typesLabel")); //$NON-NLS-1$
98
		GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
100
		GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
99
		typesLabel.setLayoutData(data);
101
		typesLabel.setLayoutData(data);
102
		typesLabel.setFont(font);
100
103
101
		typesListViewer = new TableViewer(composite, SWT.BORDER | SWT.MULTI);
104
		typesListViewer = new TableViewer(composite, SWT.BORDER | SWT.MULTI);
102
		data = new GridData(GridData.FILL_BOTH);
105
		data = new GridData(GridData.FILL_BOTH);
103
		data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
106
		data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
104
		data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
107
		data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
105
		typesListViewer.getTable().setLayoutData(data);
108
		typesListViewer.getTable().setLayoutData(data);
109
		typesListViewer.getTable().setFont(font);
106
		typesListViewer.addSelectionChangedListener(new ISelectionChangedListener() {
110
		typesListViewer.addSelectionChangedListener(new ISelectionChangedListener() {
107
			public void selectionChanged(SelectionChangedEvent event) {
111
			public void selectionChanged(SelectionChangedEvent event) {
108
				handleSelectionChanged();
112
				handleSelectionChanged();
(-)Eclipse UI/org/eclipse/ui/internal/misc/CheckboxDoubleListGroup.java (+4 lines)
Lines 130-135 Link Here
130
	Composite composite = new Composite(parent,SWT.NONE);
130
	Composite composite = new Composite(parent,SWT.NONE);
131
	GridLayout layout = new GridLayout();
131
	GridLayout layout = new GridLayout();
132
	layout.numColumns = 2;
132
	layout.numColumns = 2;
133
	composite.setFont(parent.getFont());
133
	composite.setLayout(layout);
134
	composite.setLayout(layout);
134
	composite.setLayoutData(new GridData(
135
	composite.setLayoutData(new GridData(
135
		GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
136
		GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
Lines 150-155 Link Here
150
	list1Viewer.setLabelProvider(list1LabelProvider);
151
	list1Viewer.setLabelProvider(list1LabelProvider);
151
	list1Viewer.addCheckStateListener(this);
152
	list1Viewer.addCheckStateListener(this);
152
	list1Viewer.addSelectionChangedListener(this);
153
	list1Viewer.addSelectionChangedListener(this);
154
	list1Viewer.getTable().setFont(parent.getFont());
153
}
155
}
154
/**
156
/**
155
 *	Create the right viewer for this group.
157
 *	Create the right viewer for this group.
Lines 161-166 Link Here
161
	list2Viewer.setContentProvider(list2ContentProvider);
163
	list2Viewer.setContentProvider(list2ContentProvider);
162
	list2Viewer.setLabelProvider(list2LabelProvider);
164
	list2Viewer.setLabelProvider(list2LabelProvider);
163
	list2Viewer.addCheckStateListener(this);
165
	list2Viewer.addCheckStateListener(this);
166
	list2Viewer.getTable().setFont(parent.getFont());
164
}
167
}
165
/**
168
/**
166
 *	Create a viewer pane in this group for the passed viewer.
169
 *	Create a viewer pane in this group for the passed viewer.
Lines 176-181 Link Here
176
	spec.heightHint = height;
179
	spec.heightHint = height;
177
	pane.setLayoutData(spec);
180
	pane.setLayoutData(spec);
178
	pane.setLayout(new FillLayout());
181
	pane.setLayout(new FillLayout());
182
	pane.setFont(parent.getFont());
179
	return pane;
183
	return pane;
180
}
184
}
181
/**
185
/**
(-)Eclipse UI/org/eclipse/ui/internal/misc/CheckboxTreeAndListGroup.java (+4 lines)
Lines 7-12 Link Here
7
import java.util.*;
7
import java.util.*;
8
import java.util.List;
8
import java.util.List;
9
9
10
import org.eclipse.jface.resource.JFaceResources;
10
import org.eclipse.jface.viewers.*;
11
import org.eclipse.jface.viewers.*;
11
import org.eclipse.swt.SWT;
12
import org.eclipse.swt.SWT;
12
import org.eclipse.swt.custom.BusyIndicator;
13
import org.eclipse.swt.custom.BusyIndicator;
Lines 179-184 Link Here
179
	layout.marginWidth = 0;
180
	layout.marginWidth = 0;
180
	composite.setLayout(layout);
181
	composite.setLayout(layout);
181
	composite.setLayoutData(new GridData(GridData.FILL_BOTH));
182
	composite.setLayoutData(new GridData(GridData.FILL_BOTH));
183
	composite.setFont(parent.getFont());
182
			
184
			
183
	createTreeViewer(composite, width/2, height);
185
	createTreeViewer(composite, width/2, height);
184
	createListViewer(composite, width/2, height);
186
	createListViewer(composite, width/2, height);
Lines 194-199 Link Here
194
	data.widthHint = width;
196
	data.widthHint = width;
195
	data.heightHint = height;
197
	data.heightHint = height;
196
	listViewer.getTable().setLayoutData(data);
198
	listViewer.getTable().setLayoutData(data);
199
	listViewer.getTable().setFont(parent.getFont());
197
	listViewer.setContentProvider(listContentProvider);
200
	listViewer.setContentProvider(listContentProvider);
198
	listViewer.setLabelProvider(listLabelProvider);
201
	listViewer.setLabelProvider(listLabelProvider);
199
	listViewer.addCheckStateListener(this);
202
	listViewer.addCheckStateListener(this);
Lines 207-212 Link Here
207
	data.widthHint = width;
210
	data.widthHint = width;
208
	data.heightHint = height;
211
	data.heightHint = height;
209
	tree.setLayoutData(data);
212
	tree.setLayoutData(data);
213
	tree.setFont(parent.getFont());
210
	
214
	
211
	treeViewer = new CheckboxTreeViewer(tree);
215
	treeViewer = new CheckboxTreeViewer(tree);
212
	treeViewer.setContentProvider(treeContentProvider);
216
	treeViewer.setContentProvider(treeContentProvider);
(-)Eclipse UI/org/eclipse/ui/internal/misc/ProjectCapabilitySelectionGroup.java (+9 lines)
Lines 16-21 Link Here
16
import org.eclipse.jface.resource.ImageDescriptor;
16
import org.eclipse.jface.resource.ImageDescriptor;
17
import org.eclipse.jface.viewers.*;
17
import org.eclipse.jface.viewers.*;
18
import org.eclipse.swt.SWT;
18
import org.eclipse.swt.SWT;
19
import org.eclipse.swt.graphics.Font;
19
import org.eclipse.swt.graphics.Image;
20
import org.eclipse.swt.graphics.Image;
20
import org.eclipse.swt.layout.GridData;
21
import org.eclipse.swt.layout.GridData;
21
import org.eclipse.swt.layout.GridLayout;
22
import org.eclipse.swt.layout.GridLayout;
Lines 109-114 Link Here
109
	 * description.
110
	 * description.
110
	 */
111
	 */
111
	public Control createContents(Composite parent) {
112
	public Control createContents(Composite parent) {
113
		Font font = parent.getFont();
112
		// Create the main composite for the other controls
114
		// Create the main composite for the other controls
113
		Composite composite = new Composite(parent, SWT.NONE);
115
		Composite composite = new Composite(parent, SWT.NONE);
114
		GridLayout layout = new GridLayout();
116
		GridLayout layout = new GridLayout();
Lines 128-137 Link Here
128
		GridData data = new GridData();
130
		GridData data = new GridData();
129
		data.verticalAlignment = SWT.TOP;
131
		data.verticalAlignment = SWT.TOP;
130
		categoryLabel.setLayoutData(data);
132
		categoryLabel.setLayoutData(data);
133
		categoryLabel.setFont(font);
131
		
134
		
132
		// List viewer of all available categories
135
		// List viewer of all available categories
133
		ListViewer listViewer = new ListViewer(catComposite);
136
		ListViewer listViewer = new ListViewer(catComposite);
134
		listViewer.getList().setLayoutData(new GridData(GridData.FILL_BOTH));
137
		listViewer.getList().setLayoutData(new GridData(GridData.FILL_BOTH));
138
		listViewer.getList().setFont(font);
135
		listViewer.setLabelProvider(new WorkbenchLabelProvider());
139
		listViewer.setLabelProvider(new WorkbenchLabelProvider());
136
		listViewer.setContentProvider(getContentProvider());
140
		listViewer.setContentProvider(getContentProvider());
137
		listViewer.setInput(getAvailableCategories());
141
		listViewer.setInput(getAvailableCategories());
Lines 147-156 Link Here
147
		data = new GridData();
151
		data = new GridData();
148
		data.verticalAlignment = SWT.TOP;
152
		data.verticalAlignment = SWT.TOP;
149
		capabilityLabel.setLayoutData(data);
153
		capabilityLabel.setLayoutData(data);
154
		capabilityLabel.setFont(font);
150
		
155
		
151
		// Checkbox tree viewer of capabilities in selected categories
156
		// Checkbox tree viewer of capabilities in selected categories
152
		checkboxViewer = CheckboxTableViewer.newCheckList(capComposite, SWT.SINGLE | SWT.TOP | SWT.BORDER);
157
		checkboxViewer = CheckboxTableViewer.newCheckList(capComposite, SWT.SINGLE | SWT.TOP | SWT.BORDER);
153
		checkboxViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
158
		checkboxViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
159
		checkboxViewer.getTable().setFont(font);
154
		checkboxViewer.setLabelProvider(new CapabilityLabelProvider());
160
		checkboxViewer.setLabelProvider(new CapabilityLabelProvider());
155
		checkboxViewer.setContentProvider(getContentProvider());
161
		checkboxViewer.setContentProvider(getContentProvider());
156
		checkboxViewer.setInput(visibleCapabilities);
162
		checkboxViewer.setInput(visibleCapabilities);
Lines 162-167 Link Here
162
		data.verticalAlignment = SWT.TOP;
168
		data.verticalAlignment = SWT.TOP;
163
		data.horizontalSpan = 2;
169
		data.horizontalSpan = 2;
164
		descLabel.setLayoutData(data);
170
		descLabel.setLayoutData(data);
171
		descLabel.setFont(font);
165
		
172
		
166
		// Text field to display the capability's description
173
		// Text field to display the capability's description
167
		descriptionText = new Text(composite, SWT.WRAP | SWT.MULTI | SWT.V_SCROLL | SWT.BORDER);
174
		descriptionText = new Text(composite, SWT.WRAP | SWT.MULTI | SWT.V_SCROLL | SWT.BORDER);
Lines 172-177 Link Here
172
		data.grabExcessHorizontalSpace = true;
179
		data.grabExcessHorizontalSpace = true;
173
		data.horizontalSpan = 2;
180
		data.horizontalSpan = 2;
174
		descriptionText.setLayoutData(data);
181
		descriptionText.setLayoutData(data);
182
		descriptionText.setFont(font);
175
		
183
		
176
		// Add a text field to explain grayed out items
184
		// Add a text field to explain grayed out items
177
		Label grayLabel = new Label(composite, SWT.LEFT);
185
		Label grayLabel = new Label(composite, SWT.LEFT);
Lines 180-185 Link Here
180
		data.verticalAlignment = SWT.TOP;
188
		data.verticalAlignment = SWT.TOP;
181
		data.horizontalSpan = 2;
189
		data.horizontalSpan = 2;
182
		grayLabel.setLayoutData(data);
190
		grayLabel.setLayoutData(data);
191
		grayLabel.setFont(font);
183
192
184
		// Setup initial context		
193
		// Setup initial context		
185
		populateDependents();
194
		populateDependents();
(-)Eclipse UI/org/eclipse/ui/internal/misc/WizardStepGroup.java (+5 lines)
Lines 17-22 Link Here
17
import org.eclipse.swt.SWT;
17
import org.eclipse.swt.SWT;
18
import org.eclipse.swt.events.DisposeEvent;
18
import org.eclipse.swt.events.DisposeEvent;
19
import org.eclipse.swt.events.DisposeListener;
19
import org.eclipse.swt.events.DisposeListener;
20
import org.eclipse.swt.graphics.Font;
20
import org.eclipse.swt.graphics.Image;
21
import org.eclipse.swt.graphics.Image;
21
import org.eclipse.swt.layout.GridData;
22
import org.eclipse.swt.layout.GridData;
22
import org.eclipse.swt.layout.GridLayout;
23
import org.eclipse.swt.layout.GridLayout;
Lines 52-63 Link Here
52
	 * with a label above it.
53
	 * with a label above it.
53
	 */
54
	 */
54
	public Control createContents(Composite parent) {
55
	public Control createContents(Composite parent) {
56
		Font font = parent.getFont();
55
		parentComposite = parent;
57
		parentComposite = parent;
56
		
58
		
57
		// Create a composite to hold everything together
59
		// Create a composite to hold everything together
58
		Composite composite = new Composite(parent, SWT.NULL);
60
		Composite composite = new Composite(parent, SWT.NULL);
59
		composite.setLayout(new GridLayout());
61
		composite.setLayout(new GridLayout());
60
		composite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
62
		composite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
63
		composite.setFont(font);
61
		composite.addDisposeListener(new DisposeListener() {
64
		composite.addDisposeListener(new DisposeListener() {
62
			public void widgetDisposed(DisposeEvent e) {
65
			public void widgetDisposed(DisposeEvent e) {
63
				if (doneImage != null) {
66
				if (doneImage != null) {
Lines 77-87 Link Here
77
		GridData data = new GridData();
80
		GridData data = new GridData();
78
		data.verticalAlignment = SWT.TOP;
81
		data.verticalAlignment = SWT.TOP;
79
		label.setLayoutData(data);
82
		label.setLayoutData(data);
83
		label.setFont(font);
80
		
84
		
81
		// Table viewer of all the steps
85
		// Table viewer of all the steps
82
		stepViewer = new TableViewer(composite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION);
86
		stepViewer = new TableViewer(composite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION);
83
		data = new GridData(GridData.FILL_BOTH);
87
		data = new GridData(GridData.FILL_BOTH);
84
		stepViewer.getTable().setLayoutData(data);
88
		stepViewer.getTable().setLayoutData(data);
89
		stepViewer.getTable().setFont(font);
85
		stepViewer.setContentProvider(getStepProvider());
90
		stepViewer.setContentProvider(getStepProvider());
86
		stepViewer.setLabelProvider(new StepLabelProvider());
91
		stepViewer.setLabelProvider(new StepLabelProvider());
87
		
92
		
(-)extensions/org/eclipse/jface/dialogs/ErrorDialog.java (+1 lines)
Lines 213-218 Link Here
213
	data.heightHint = list.getItemHeight() * LIST_ITEM_COUNT;
213
	data.heightHint = list.getItemHeight() * LIST_ITEM_COUNT;
214
	data.horizontalSpan = 2;
214
	data.horizontalSpan = 2;
215
	list.setLayoutData(data);
215
	list.setLayoutData(data);
216
	list.setFont(parent.getFont());
216
	listCreated = true;
217
	listCreated = true;
217
	return list;
218
	return list;
218
}
219
}

Return to bug 19346