1
0
Fork 0
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:
David McKnight 2007-03-12 16:40:12 +00:00
parent eb95878b72
commit 100ee92f16

View file

@ -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();
}
}