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

[457303] - No visual feedback during Drag & Drop for invalid drop target

Change-Id: I32743c8397f6688e6939890e6bca72201b915f3e
Signed-off-by: Florian Holl <florian.holl@ts.fujitsu.com>
This commit is contained in:
Florian Holl 2015-10-30 14:23:13 +01:00
parent 8288fab8aa
commit 6ad41e9ddf

View file

@ -1,5 +1,5 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2002, 2013 IBM Corporation and others. All rights reserved. * Copyright (c) 2002, 2015 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the terms * 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 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html * available at http://www.eclipse.org/legal/epl-v10.html
@ -18,6 +18,7 @@
* David McKnight (IBM) - [234924] [ftp][dnd][Refresh] Copy/Paste file from Package Explorer doesn't refresh folder * David McKnight (IBM) - [234924] [ftp][dnd][Refresh] Copy/Paste file from Package Explorer doesn't refresh folder
* David McKnight (IBM) - [248339] [dnd][encodings] Cannot drag&drop / copy&paste files or folders with turkish or arabic names * David McKnight (IBM) - [248339] [dnd][encodings] Cannot drag&drop / copy&paste files or folders with turkish or arabic names
* David McKnight (IBM) - [398324] cross systems folder transfer breaks due to scoping rule * David McKnight (IBM) - [398324] cross systems folder transfer breaks due to scoping rule
* Florian Holl (Fujitsu) - [457303] - No visual feedback during Drag & Drop for invalid drop targets
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.ui.view; package org.eclipse.rse.internal.ui.view;
@ -369,7 +370,10 @@ extends ViewerDropAdapter
{ {
super.dragOver(event); super.dragOver(event);
event.feedback &= ~DND.FEEDBACK_EXPAND; event.feedback &= ~DND.FEEDBACK_EXPAND;
event.detail = DND.DROP_COPY; if (event.detail != DND.DROP_NONE)
{
event.detail = DND.DROP_COPY;
}
} }
} }