01: /*******************************************************************************
02: * Copyright (c) 2004, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.dnd;
11:
12: import org.eclipse.swt.graphics.Point;
13: import org.eclipse.swt.widgets.Shell;
14:
15: /**
16: * This is an interface intended for use in test suites. Objects can implement
17: * this interface to force any dragged object to be dropped at a particular
18: * location.
19: *
20: * @since 3.0
21: */
22: public interface TestDropLocation {
23:
24: /**
25: * Location where the object should be dropped, in display coordinates
26: *
27: * @return a location in display coordinates
28: */
29: public Point getLocation();
30:
31: /**
32: * The drop code will pretend that only the given shells are open,
33: * and that they have the specified Z-order.
34: *
35: * @return the shells to check for drop targets, from bottom to top.
36: */
37: public Shell[] getShells();
38: }
|