| /******************************************************************************* |
| * Copyright (c) 2004, 2008 Jingwen Ou and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Jingwen Ou - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.internal.sandbox.ui.editors; |
| |
| import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorNewCommentPart; |
| import org.eclipse.swt.widgets.Composite; |
| import org.eclipse.ui.forms.widgets.FormToolkit; |
| |
| /** |
| * @author Jingwen Ou |
| */ |
| public class ExtensibleTaskEditorNewCommentPart extends TaskEditorNewCommentPart { |
| |
| @Override |
| public void createControl(Composite parent, FormToolkit toolkit) { |
| super.createControl(parent, toolkit); |
| if (getEditor() != null && !getEditor().isReadOnly() && getEditor().getViewer() != null) { |
| TaskEditorDropTarget.addDropTargetSupport(getEditor().getViewer()); |
| } |
| } |
| |
| } |