mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[153652] allowing for drag and drop to project explorer.
This commit is contained in:
parent
eb95878b72
commit
100ee92f16
1 changed files with 3 additions and 3 deletions
|
@ -70,10 +70,10 @@ public class SystemDropActionDelegate implements IDropActionDelegate
|
|||
}
|
||||
else if (target instanceof IAdaptable)
|
||||
{
|
||||
Object resourceObj = ((IAdaptable)target).getAdapter(IResource.class);
|
||||
if (resourceObj != null && resourceObj instanceof IResource)
|
||||
target = ((IAdaptable)target).getAdapter(IResource.class);
|
||||
if (target != null && target instanceof IResource)
|
||||
{
|
||||
resource = (IResource)resourceObj;
|
||||
resource = (IResource)target;
|
||||
localPath = resource.getLocation().toOSString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue