blob: ac2a70bd352b4cbed280de93564e472358e06f02 [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 */
22public 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 */
nitind50897002005-06-03 20:33:54 +000036 public boolean run(DropTargetEvent event, IEditorPart targetEditor);
david_williamscfdb2cd2004-11-11 08:37:49 +000037}