david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 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_williams | f3680f0 | 2005-04-13 22:43:54 +0000 | [diff] [blame] | 13 | package org.eclipse.wst.sse.ui.internal; |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 14 | |
| 15 | |
| 16 | |
| 17 | import org.eclipse.swt.dnd.DropTargetEvent; |
nitind | 5089700 | 2005-06-03 20:33:54 +0000 | [diff] [blame] | 18 | import org.eclipse.ui.IEditorPart; |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 19 | |
| 20 | /** |
| 21 | */ |
| 22 | public interface IDropAction { |
| 23 | |
| 24 | |
| 25 | /** |
| 26 | * @param data |
| 27 | * DropTargetEvent.data will be passed. |
| 28 | * @return boolean true for supported data type |
| 29 | */ |
| 30 | public boolean isSupportedData(Object data); |
| 31 | |
| 32 | /** |
| 33 | * @return boolean true for the action is actually processed false for the |
| 34 | * action is not processed. |
| 35 | */ |
nitind | 5089700 | 2005-06-03 20:33:54 +0000 | [diff] [blame] | 36 | public boolean run(DropTargetEvent event, IEditorPart targetEditor); |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 37 | } |