Community
Participate
Working Groups
Overview Description: Using drag and drop to open a file from the Navigator view in the Editor view within the Resource perspective causes the file to be deleted from the file system. Steps to Reproduce: 1) Create a Java class file (e.g. HelloWorld.java) with whatever contents you like. 2) Save the file and close it in the Editor view. 3) Using the middle mouse button to drag the Java class file, drag and drop it anywhere inside the Editor view. Actual Results: The selected file disappears from the Navigator view and a new editor opens up with the name of the file as the title, but with the message, "Resource /AJava/HelloWorld.java does not exist." The file also no longer exists in the file system! Expected Results: The file should have opened normally within the Editor view and not been deleted or otherwise modified. Build Date & Platform: Build 200303192032 on Sun Solaris 8
It appears that the best environment in which to reproduce this is using a mouse that does not have three mouse buttons. As the middle mouse button is required in order to drag and drop in Solaris, a left-right combination is needed to simulate a middle mouse button click. The ideal method for causing the reported behaviour is to first right-click on a file in the Navigator view, then while holding down the right button, click and hold the left button. The mouse arrow cursor should then change into a drag-and-drop cursor (shaped like a document icon). With both buttons now held down, drag the file over to the Editor view and release both buttons to drop.
Knut, any idea what's going on here? Sounds like the OS deletes the file under us because it thinks it's doing a move.
This is a known problem on Solaris. As a work around you should be able to hold down Ctrl to ensure a drag copy. *** This bug has been marked as a duplicate of 34648 ***
Is the problem described in the readme for Solaris?