Unable to drag and drop to Eclipse

不问归期 提交于 2019-12-08 16:29:47

问题


I have been draging and dropping from Windows Explorer to Eclipse since I've started using it, and now find myself unable to do so. When I drag a .java file over my package, the mouse cursor stays a circle with a diagonal bar through it and dropping does nothing. I have tried to change my workspace, create a fresh new workspace, deleted eclipse and redownloaded it. It still doesn't work. Making Eclipse run as admin doesn't solve the issue either.


回答1:


I figured out it was due to viewing the project in Project Explorer instead of Package Explorer.

Right click on a project > Show in > Package Explorer

You'll be able to drag-drop again at this point.




回答2:


There are at least two workarounds:

  • Use the menu File -> Import -> General -> File System
  • or use CtrlC in Windows Explorer, CtrlV in the Package Explorer of Eclipse.



回答3:


I had this issue when Eclipse was running as Administrator. Setting it back just worked.




回答4:


I faced similar problem when trying to drag-drop image file directly from explored zip. After I extracted the zip, drag-drop worked as expected.




回答5:


For me it was the missing marketplace client.
It is noticeable when help -> Eclipse Marketplace is missing.
I installed it with help -> Install new Software -> Update Site for 2018-09 -> Eclipse Marketplace



来源:https://stackoverflow.com/questions/16124102/unable-to-drag-and-drop-to-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!