blob: 27d196e33de4dde489868d3d8720ead7b61465eb [file] [log] [blame]
david_williamscfdb2cd2004-11-11 08:37:49 +00001/*******************************************************************************
2 * Copyright (c) 2001, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Jens Lukowski/Innoopract - initial renaming/restructuring
11 *
12 *******************************************************************************/
david_williamsf3680f02005-04-13 22:43:54 +000013package org.eclipse.wst.sse.ui.internal;
david_williamscfdb2cd2004-11-11 08:37:49 +000014
15
16
17import org.eclipse.swt.dnd.DropTargetEvent;
nitind50897002005-06-03 20:33:54 +000018import org.eclipse.ui.IEditorPart;
david_williamscfdb2cd2004-11-11 08:37:49 +000019
20/**
21 * TextDropAction
22 */
23public class TextDropAction extends AbstractDropAction {
nitind50897002005-06-03 20:33:54 +000024 public boolean run(DropTargetEvent event, IEditorPart targetEditor) {
david_williamscfdb2cd2004-11-11 08:37:49 +000025 return insert((String) event.data, targetEditor);
26 }
david_williamscfdb2cd2004-11-11 08:37:49 +000027}