KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > dnd > TestDropLocation


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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.internal.dnd;
12
13 import org.eclipse.swt.graphics.Point;
14 import org.eclipse.swt.widgets.Shell;
15
16 /**
17  * This is an interface intended for use in test suites. Objects can implement
18  * this interface to force any dragged object to be dropped at a particular
19  * location.
20  *
21  * @since 3.0
22  */

23 public interface TestDropLocation {
24
25     /**
26      * Location where the object should be dropped, in display coordinates
27      *
28      * @return a location in display coordinates
29      */

30     public Point getLocation();
31     
32     /**
33      * The drop code will pretend that only the given shells are open,
34      * and that they have the specified Z-order.
35      *
36      * @return the shells to check for drop targets, from bottom to top.
37      */

38     public Shell[] getShells();
39 }
40
Popular Tags