Source:
private void createNotesArea(final FormToolkit toolkit, Composite parent, int numColumns) { Composite composite = toolkit.createComposite(parent); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginWidth = 1; composite.setLayout(layout); GridDataFactory.fillDefaults().span(numColumns, SWT.DEFAULT).grab(true, true).applyTo(composite); if (page != null) { IContextService contextService = (IContextService) page.getEditorSite().getService(IContextService.class); if (contextService != null) { AbstractTaskEditorExtension extension = TaskEditorExtensions.getTaskEditorExtension(getRepository()); if (extension != null) { noteEditor = new RichTextEditor(getRepository(), SWT.FLAT | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL, contextService, extension, getTask()); } } } if (noteEditor == null) { noteEditor = new RichTextEditor(getRepository(), SWT.FLAT | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL, null, null, getTask()); } noteEditor.setSpellCheckingEnabled(true); noteEditor.createControl(composite, toolkit); noteEditor.setText(notesString); noteEditor.getControl().setLayoutData( EditorUtil.getTextControlLayoutData(page, noteEditor.getViewer().getControl(), true)); noteEditor.getControl().setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER); noteEditor.setReadOnly(false); if (textSupport != null) { textSupport.install(noteEditor.getViewer(), true); } noteEditor.getViewer().addTextListener(new ITextListener() { public void textChanged(TextEvent event) { notesString = noteEditor.getText().equals(PERSONAL_NOTES) ? "" : noteEditor.getText(); if (!notesEqual()) { markDirty(); } } }); addNotesLabelText(toolkit, composite); toolkit.paintBordersFor(composite); }

Target:
private void createNotesArea(final FormToolkit toolkit, Composite parent, int numColumns) { Composite composite = toolkit.createComposite(parent); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginWidth = 1; composite.setLayout(layout); GridDataFactory.fillDefaults().span(numColumns, SWT.DEFAULT).grab(true, true).applyTo(composite); if (page != null) { IContextService contextService = (IContextService) page.getEditorSite().getService(IContextService.class); if (contextService != null) { AbstractTaskEditorExtension extension = TaskEditorExtensions.getTaskEditorExtension(getRepository()); if (extension != null) { noteEditor = new RichTextEditor(getRepository(), SWT.FLAT | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL, contextService, extension, getTask()); } } } if (noteEditor == null) { noteEditor = new RichTextEditor(getRepository(), SWT.FLAT | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL, null, null, getTask()); } noteEditor.setSpellCheckingEnabled(true); noteEditor.createControl(composite, toolkit); noteEditor.setText(notesString); noteEditor.getControl().setLayoutData( EditorUtil.getTextControlLayoutData(page, noteEditor.getViewer().getControl(), true)); noteEditor.getControl().setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER); noteEditor.setReadOnly(false); if (textSupport != null) { textSupport.install(noteEditor.getViewer(), true); } noteEditor.getViewer().addTextListener(new ITextListener() { public void textChanged(TextEvent event) { notesString = PERSONAL_NOTES.equals(noteEditor.getText()) ? "" : noteEditor.getText(); if (!notesEqual()) { markDirty(); } } }); addNotesLabelText(toolkit, composite); toolkit.paintBordersFor(composite); }