blob: 45a000da0218b0413f3e10c380b4754fcd762790 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2011 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.bugzilla.ui.editor.BugzillaTaskEditorNewCommentPart;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;
/**
* @author Jingwen Ou
*/
public class ExtensibleTaskEditorNewCommentPart extends BugzillaTaskEditorNewCommentPart {
@Override
public void createControl(Composite parent, FormToolkit toolkit) {
super.createControl(parent, toolkit);
if (getEditor() != null && !getEditor().isReadOnly() && getEditor().getViewer() != null) {
TaskEditorDropTarget.addDropTargetSupport(getEditor().getViewer());
}
}
}