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:
parent
ccaf9b361a
commit
732d9a063f
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* 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
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
* Markus Schorn (Wind River Systems)
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.internal.ui.dnd;
|
||||
|
@ -74,9 +75,8 @@ public class BasicSelectionTransferDragAdapter extends DragSourceAdapter impleme
|
|||
* @see org.eclipse.swt.dnd.DragSourceListener#dragFinished
|
||||
*/
|
||||
public void dragFinished(DragSourceEvent event) {
|
||||
// We assume that the drop target listener has done all
|
||||
// the work.
|
||||
Assert.isTrue(event.detail == DND.DROP_NONE);
|
||||
// Make sure we don't have to do any remaining work
|
||||
Assert.isTrue(event.detail != DND.DROP_MOVE);
|
||||
LocalSelectionTransfer.getInstance().setSelection(null);
|
||||
LocalSelectionTransfer.getInstance().setSelectionSetTime(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue