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

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java (-10 / +11 lines)
Lines 54-60 Link Here
54
import org.eclipse.swt.widgets.Canvas;
54
import org.eclipse.swt.widgets.Canvas;
55
import org.eclipse.swt.widgets.Composite;
55
import org.eclipse.swt.widgets.Composite;
56
import org.eclipse.swt.widgets.Control;
56
import org.eclipse.swt.widgets.Control;
57
import org.eclipse.swt.widgets.Display;
58
import org.eclipse.swt.widgets.Menu;
57
import org.eclipse.swt.widgets.Menu;
59
import org.eclipse.ui.actions.ActionContext;
58
import org.eclipse.ui.actions.ActionContext;
60
import org.eclipse.ui.forms.IFormColors;
59
import org.eclipse.ui.forms.IFormColors;
Lines 423-439 Link Here
423
//				String value = commentID.getValue();
422
//				String value = commentID.getValue();
424
//				sb.append(" (ID " + value + ")");
423
//				sb.append(" (ID " + value + ")");
425
//			}
424
//			}
426
			if (taskComment.getIsPrivate() != null) {
425
			if (taskComment.getIsPrivate() != null && taskComment.getIsPrivate()) {
427
				if (taskComment.getIsPrivate()) {
426
				if (privateFont == null) {
428
					if (privateFont == null) {
427
					Font a = formHyperlink.getFont();
429
						Font a = formHyperlink.getFont();
428
					FontData[] fd = a.getFontData();
430
						FontData[] fd = a.getFontData();
429
					for (FontData fontData : fd) {
431
						fd[0].setStyle(SWT.ITALIC | SWT.BOLD);
430
						fontData.setStyle(SWT.ITALIC | SWT.BOLD);
432
						privateFont = new Font(Display.getCurrent(), fd[0]);
433
					}
431
					}
434
					formHyperlink.setFont(privateFont);
432
					privateFont = new Font(formHyperlink.getDisplay(), fd);
435
					toolTipText = NLS.bind(Messages.TaskEditorCommentPart_Privat_Comment_ToolTip_Text, toolTipText);
436
				}
433
				}
434
				formHyperlink.setFont(privateFont);
435
				toolTipText = NLS.bind(Messages.TaskEditorCommentPart_Privat_Comment_ToolTip_Text, toolTipText);
436
			} else {
437
				formHyperlink.setFont(commentComposite.getFont());
437
			}
438
			}
438
			formHyperlink.setToolTipText(toolTipText);
439
			formHyperlink.setToolTipText(toolTipText);
439
440

Return to bug 345847