KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > part > IDropActionDelegate


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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  *******************************************************************************/

11 package org.eclipse.ui.part;
12
13 /**
14  * Interface for actions supplied by extensions to the
15  * org.eclipse.ui.dropActions extension point.
16  */

17 public interface IDropActionDelegate {
18     /**
19      * Runs the drop action on the given source and target.
20      * @param source The object that is being dragged.
21      * @param target The object that the drop is occurring over.
22      * @return boolean True if the drop was successful, and false otherwise.
23      */

24     public boolean run(Object JavaDoc source, Object JavaDoc target);
25 }
26
Popular Tags