1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Fixes wrong assertion.

This commit is contained in:
Markus Schorn 2006-08-02 09:10:28 +00:00
parent ccaf9b361a
commit 732d9a063f

View file

@ -1,12 +1,13 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2002, 2005 QNX Software Systems and others. * Copyright (c) 2002, 2006 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* QNX Software Systems - Initial API and implementation * QNX Software Systems - Initial API and implementation
* Markus Schorn (Wind River Systems)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.ui.dnd; package org.eclipse.cdt.internal.ui.dnd;
@ -74,9 +75,8 @@ public class BasicSelectionTransferDragAdapter extends DragSourceAdapter impleme
* @see org.eclipse.swt.dnd.DragSourceListener#dragFinished * @see org.eclipse.swt.dnd.DragSourceListener#dragFinished
*/ */
public void dragFinished(DragSourceEvent event) { public void dragFinished(DragSourceEvent event) {
// We assume that the drop target listener has done all // Make sure we don't have to do any remaining work
// the work. Assert.isTrue(event.detail != DND.DROP_MOVE);
Assert.isTrue(event.detail == DND.DROP_NONE);
LocalSelectionTransfer.getInstance().setSelection(null); LocalSelectionTransfer.getInstance().setSelection(null);
LocalSelectionTransfer.getInstance().setSelectionSetTime(0); LocalSelectionTransfer.getInstance().setSelectionSetTime(0);
} }