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 221158 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/sandbox/ui/editors/ExtensibleRichTextAttributeEditor.java (-1 / +1 lines)
Lines 164-170 Link Here
164
		IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
164
		IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
165
		Font font = themeManager.getCurrentTheme().getFontRegistry().get(CommonThemes.FONT_EDITOR_COMMENT);
165
		Font font = themeManager.getCurrentTheme().getFontRegistry().get(CommonThemes.FONT_EDITOR_COMMENT);
166
		source.getTextWidget().setFont(font);
166
		source.getTextWidget().setFont(font);
167
		toolkit.adapt(source.getControl(), true, false);
167
		toolkit.adapt(source.getControl(), false, false);
168
168
169
	}
169
	}
170
170
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor.java (-2 / +2 lines)
Lines 40-52 Link Here
40
		if (isReadOnly()) {
40
		if (isReadOnly()) {
41
			Text text = new Text(parent, SWT.FLAT | SWT.READ_ONLY);
41
			Text text = new Text(parent, SWT.FLAT | SWT.READ_ONLY);
42
			text.setFont(EditorUtil.TEXT_FONT);
42
			text.setFont(EditorUtil.TEXT_FONT);
43
			toolkit.adapt(text, true, false);
43
			toolkit.adapt(text, false, false);
44
			text.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
44
			text.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
45
			text.setText(getValueLabel());
45
			text.setText(getValueLabel());
46
			setControl(text);
46
			setControl(text);
47
		} else {
47
		} else {
48
			combo = new CCombo(parent, SWT.FLAT | SWT.READ_ONLY);
48
			combo = new CCombo(parent, SWT.FLAT | SWT.READ_ONLY);
49
			toolkit.adapt(combo, true, false);
49
			toolkit.adapt(combo, false, false);
50
			combo.setFont(EditorUtil.TEXT_FONT);
50
			combo.setFont(EditorUtil.TEXT_FONT);
51
			combo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
51
			combo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
52
52
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java (-1 / +1 lines)
Lines 251-257 Link Here
251
251
252
	private ImageHyperlink createReplyHyperlink(Composite composite, FormToolkit toolkit, final ITaskComment taskComment) {
252
	private ImageHyperlink createReplyHyperlink(Composite composite, FormToolkit toolkit, final ITaskComment taskComment) {
253
		final ImageHyperlink replyLink = new ImageHyperlink(composite, SWT.NULL);
253
		final ImageHyperlink replyLink = new ImageHyperlink(composite, SWT.NULL);
254
		toolkit.adapt(replyLink, true, false);
254
		toolkit.adapt(replyLink, false, false);
255
		replyLink.setImage(CommonImages.getImage(TasksUiImages.COMMENT_REPLY));
255
		replyLink.setImage(CommonImages.getImage(TasksUiImages.COMMENT_REPLY));
256
		replyLink.setToolTipText(LABEL_REPLY);
256
		replyLink.setToolTipText(LABEL_REPLY);
257
		// no need for the background - transparency will take care of it
257
		// no need for the background - transparency will take care of it
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/RichTextAttributeEditor.java (-1 / +1 lines)
Lines 150-156 Link Here
150
		IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
150
		IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
151
		Font font = themeManager.getCurrentTheme().getFontRegistry().get(CommonThemes.FONT_EDITOR_COMMENT);
151
		Font font = themeManager.getCurrentTheme().getFontRegistry().get(CommonThemes.FONT_EDITOR_COMMENT);
152
		viewer.getTextWidget().setFont(font);
152
		viewer.getTextWidget().setFont(font);
153
		toolkit.adapt(viewer.getTextWidget(), true, false);
153
		toolkit.adapt(viewer.getTextWidget(), false, false);
154
154
155
		setControl(viewer.getTextWidget());
155
		setControl(viewer.getTextWidget());
156
	}
156
	}
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPlanningPart.java (-2 / +2 lines)
Lines 245-251 Link Here
245
				markDirty();
245
				markDirty();
246
			}
246
			}
247
		});
247
		});
248
		toolkit.adapt(dueDatePicker, true, false);
248
		toolkit.adapt(dueDatePicker, false, false);
249
		toolkit.paintBordersFor(composite);
249
		toolkit.paintBordersFor(composite);
250
250
251
		ImageHyperlink clearDueDate = toolkit.createImageHyperlink(composite, SWT.NONE);
251
		ImageHyperlink clearDueDate = toolkit.createImageHyperlink(composite, SWT.NONE);
Lines 296-302 Link Here
296
		scheduleDatePicker = new ScheduleDatePicker(composite, task, SWT.FLAT);
296
		scheduleDatePicker = new ScheduleDatePicker(composite, task, SWT.FLAT);
297
		GridDataFactory.fillDefaults().hint(CONTROL_WIDTH, SWT.DEFAULT).applyTo(scheduleDatePicker);
297
		GridDataFactory.fillDefaults().hint(CONTROL_WIDTH, SWT.DEFAULT).applyTo(scheduleDatePicker);
298
		scheduleDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
298
		scheduleDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
299
		toolkit.adapt(scheduleDatePicker, true, false);
299
		toolkit.adapt(scheduleDatePicker, false, false);
300
		toolkit.paintBordersFor(composite);
300
		toolkit.paintBordersFor(composite);
301
301
302
		scheduleDatePicker.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
302
		scheduleDatePicker.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor.java (-1 / +1 lines)
Lines 37-43 Link Here
37
		if (isReadOnly()) {
37
		if (isReadOnly()) {
38
			text = new Text(parent, SWT.FLAT | SWT.READ_ONLY);
38
			text = new Text(parent, SWT.FLAT | SWT.READ_ONLY);
39
			text.setFont(EditorUtil.TEXT_FONT);
39
			text.setFont(EditorUtil.TEXT_FONT);
40
			toolkit.adapt(text, true, false);
41
			text.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
40
			text.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
42
			text.setText(getValue());
41
			text.setText(getValue());
43
		} else {
42
		} else {
Lines 49-54 Link Here
49
				}
48
				}
50
			});
49
			});
51
		}
50
		}
51
		toolkit.adapt(text, false, false);
52
		setControl(text);
52
		setControl(text);
53
	}
53
	}
54
54
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskPlanningEditor.java (-5 / +5 lines)
Lines 345-351 Link Here
345
		Text text;
345
		Text text;
346
		if ((SWT.READ_ONLY & style) == SWT.READ_ONLY) {
346
		if ((SWT.READ_ONLY & style) == SWT.READ_ONLY) {
347
			text = new Text(nameValueComp, style);
347
			text = new Text(nameValueComp, style);
348
			toolkit.adapt(text, true, false);
348
			toolkit.adapt(text, false, false);
349
			text.setText(value);
349
			text.setText(value);
350
		} else {
350
		} else {
351
			text = toolkit.createText(nameValueComp, value, style);
351
			text = toolkit.createText(nameValueComp, value, style);
Lines 404-410 Link Here
404
		nameValueComp.setLayout(nameValueLayout);
404
		nameValueComp.setLayout(nameValueLayout);
405
		toolkit.createLabel(nameValueComp, "Priority:").setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
405
		toolkit.createLabel(nameValueComp, "Priority:").setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
406
		priorityCombo = new CCombo(nameValueComp, SWT.FLAT | SWT.READ_ONLY);
406
		priorityCombo = new CCombo(nameValueComp, SWT.FLAT | SWT.READ_ONLY);
407
		toolkit.adapt(priorityCombo, true, false);
407
		toolkit.adapt(priorityCombo, false, false);
408
		priorityCombo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
408
		priorityCombo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
409
		toolkit.paintBordersFor(nameValueComp);
409
		toolkit.paintBordersFor(nameValueComp);
410
410
Lines 619-625 Link Here
619
		gd.widthHint = 135;
619
		gd.widthHint = 135;
620
		scheduleDatePicker.setLayoutData(gd);
620
		scheduleDatePicker.setLayoutData(gd);
621
		scheduleDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
621
		scheduleDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
622
		toolkit.adapt(scheduleDatePicker, true, false);
622
		toolkit.adapt(scheduleDatePicker, false, false);
623
		toolkit.paintBordersFor(nameValueComp);
623
		toolkit.paintBordersFor(nameValueComp);
624
624
625
		scheduleDatePicker.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
625
		scheduleDatePicker.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
Lines 669-675 Link Here
669
		});
669
		});
670
670
671
		dueDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
671
		dueDatePicker.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
672
		toolkit.adapt(dueDatePicker, true, false);
672
		toolkit.adapt(dueDatePicker, false, false);
673
		toolkit.paintBordersFor(nameValueComp);
673
		toolkit.paintBordersFor(nameValueComp);
674
674
675
		ImageHyperlink clearDueDate = toolkit.createImageHyperlink(nameValueComp, SWT.NONE);
675
		ImageHyperlink clearDueDate = toolkit.createImageHyperlink(nameValueComp, SWT.NONE);
Lines 709-715 Link Here
709
		label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
709
		label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
710
710
711
		estimated = new Spinner(nameValueComp, SWT.FLAT);
711
		estimated = new Spinner(nameValueComp, SWT.FLAT);
712
		toolkit.adapt(estimated, true, false);
712
		toolkit.adapt(estimated, false, false);
713
		estimated.setSelection(task.getEstimatedTimeHours());
713
		estimated.setSelection(task.getEstimatedTimeHours());
714
		estimated.setDigits(0);
714
		estimated.setDigits(0);
715
		estimated.setMaximum(100);
715
		estimated.setMaximum(100);
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/MultiSelectionAttributeEditor.java (-1 / +1 lines)
Lines 44-50 Link Here
44
	@Override
44
	@Override
45
	public void createControl(Composite parent, FormToolkit toolkit) {
45
	public void createControl(Composite parent, FormToolkit toolkit) {
46
		list = new List(parent, SWT.FLAT | SWT.MULTI | SWT.V_SCROLL);
46
		list = new List(parent, SWT.FLAT | SWT.MULTI | SWT.V_SCROLL);
47
		toolkit.adapt(list, true, false);
47
		toolkit.adapt(list, false, false);
48
		list.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
48
		list.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
49
		list.setFont(EditorUtil.TEXT_FONT);
49
		list.setFont(EditorUtil.TEXT_FONT);
50
50
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java (-1 / +1 lines)
Lines 142-148 Link Here
142
		categoryChooser = new CCombo(buttonComposite, SWT.FLAT | SWT.READ_ONLY);
142
		categoryChooser = new CCombo(buttonComposite, SWT.FLAT | SWT.READ_ONLY);
143
		categoryChooser.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
143
		categoryChooser.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
144
		categoryChooser.setLayoutData(GridDataFactory.swtDefaults().hint(150, SWT.DEFAULT).create());
144
		categoryChooser.setLayoutData(GridDataFactory.swtDefaults().hint(150, SWT.DEFAULT).create());
145
		toolkit.adapt(categoryChooser, true, false);
145
		toolkit.adapt(categoryChooser, false, false);
146
		categoryChooser.setFont(TEXT_FONT);
146
		categoryChooser.setFont(TEXT_FONT);
147
		ITaskList taskList = TasksUiInternal.getTaskList();
147
		ITaskList taskList = TasksUiInternal.getTaskList();
148
		final List<AbstractTaskCategory> categories = new ArrayList<AbstractTaskCategory>(taskList.getCategories());
148
		final List<AbstractTaskCategory> categories = new ArrayList<AbstractTaskCategory>(taskList.getCategories());
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/DateAttributeEditor.java (-1 / +1 lines)
Lines 48-54 Link Here
48
		if (isReadOnly()) {
48
		if (isReadOnly()) {
49
			Text text = new Text(composite, SWT.FLAT | SWT.READ_ONLY);
49
			Text text = new Text(composite, SWT.FLAT | SWT.READ_ONLY);
50
			text.setFont(EditorUtil.TEXT_FONT);
50
			text.setFont(EditorUtil.TEXT_FONT);
51
			toolkit.adapt(text, true, false);
51
			toolkit.adapt(text, false, false);
52
			text.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
52
			text.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
53
			text.setText(getTextValue());
53
			text.setText(getTextValue());
54
			setControl(text);
54
			setControl(text);
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorDescriptionPart.java (-1 / +1 lines)
Lines 76-82 Link Here
76
			duplicateDetectorLabel.setText("Detector:");
76
			duplicateDetectorLabel.setText("Detector:");
77
77
78
			final CCombo duplicateDetectorChooser = new CCombo(relatedBugsComposite, SWT.FLAT | SWT.READ_ONLY);
78
			final CCombo duplicateDetectorChooser = new CCombo(relatedBugsComposite, SWT.FLAT | SWT.READ_ONLY);
79
			toolkit.adapt(duplicateDetectorChooser, true, false);
79
			toolkit.adapt(duplicateDetectorChooser, false, false);
80
			duplicateDetectorChooser.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
80
			duplicateDetectorChooser.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
81
			duplicateDetectorChooser.setFont(TEXT_FONT);
81
			duplicateDetectorChooser.setFont(TEXT_FONT);
82
			duplicateDetectorChooser.setLayoutData(GridDataFactory.swtDefaults().hint(150, SWT.DEFAULT).create());
82
			duplicateDetectorChooser.setLayoutData(GridDataFactory.swtDefaults().hint(150, SWT.DEFAULT).create());
(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor.java (-1 / +1 lines)
Lines 43-49 Link Here
43
		viewer.setDocument(new Document(getValue()));
43
		viewer.setDocument(new Document(getValue()));
44
44
45
		final StyledText text = viewer.getTextWidget();
45
		final StyledText text = viewer.getTextWidget();
46
		toolkit.adapt(text, true, false);
46
		toolkit.adapt(text, false, false);
47
47
48
		if (isReadOnly()) {
48
		if (isReadOnly()) {
49
			viewer.setEditable(false);
49
			viewer.setEditable(false);
(-)src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java (-1 / +1 lines)
Lines 90-96 Link Here
90
90
91
		Text currentEstimate = toolkit.createText(timeComposite, "" + total, SWT.FLAT | SWT.READ_ONLY);
91
		Text currentEstimate = toolkit.createText(timeComposite, "" + total, SWT.FLAT | SWT.READ_ONLY);
92
		currentEstimate.setFont(TEXT_FONT);
92
		currentEstimate.setFont(TEXT_FONT);
93
		toolkit.adapt(currentEstimate, true, false);
93
		toolkit.adapt(currentEstimate, false, false);
94
		currentEstimate.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
94
		currentEstimate.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
95
		currentEstimate.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
95
		currentEstimate.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
96
96

Return to bug 221158