blob: 01582f28babcb053cd8b7b33b7f05a74a2a1b768 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.tests.dnd;
import org.eclipse.swt.graphics.Point;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.WorkbenchPage;
import org.eclipse.ui.internal.WorkbenchWindow;
import org.eclipse.ui.internal.dnd.TestDropLocation;
/**
* @since 3.0
*/
public abstract class AbstractTestDropTarget implements TestDropLocation {
//TestDragSource source;
public abstract String toString();
public abstract Point getLocation();
// public void setSource(TestDragSource source) {
// this.source = source;
// }
public WorkbenchPage getPage() {
return (WorkbenchPage) ((WorkbenchWindow)PlatformUI.getWorkbench().getActiveWorkbenchWindow()).getActivePage();
}
// public TestDragSource getSource() {
// return source;
// }
}