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.presentations.util;
11:
12: import org.eclipse.swt.graphics.Point;
13: import org.eclipse.swt.widgets.Control;
14: import org.eclipse.ui.presentations.StackDropResult;
15:
16: /**
17: * @since 3.0
18: */
19: public abstract class TabDragHandler {
20:
21: /**
22: * Returns the StackDropResult for the location being dragged over.
23: *
24: * @param currentControl control being dragged over
25: * @param location mouse position (display coordinates)
26: * @param initialTab the index of the tab in this stack being dragged,
27: * or -1 if dragging a tab from another stack.
28: * @return the StackDropResult for this drag location
29: */
30: public abstract StackDropResult dragOver(Control currentControl,
31: Point location, int initialTab);
32:
33: public abstract int getInsertionPosition(Object cookie);
34: }
|