Bug 35721 - Using drag and drop from Navigator to Editor view to open files causes files to be deleted
Summary: Using drag and drop from Navigator to Editor view to open files causes files ...
Status: RESOLVED DUPLICATE of bug 34648
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: Sun Solaris
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-26 13:09 EST by Kevin Jiang CLA
Modified: 2003-03-28 11:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Jiang CLA 2003-03-26 13:09:32 EST
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
Comment 1 Kevin Jiang CLA 2003-03-26 15:16:54 EST
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.
Comment 2 Nick Edgar CLA 2003-03-28 11:05:32 EST
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.
Comment 3 Knut Radloff CLA 2003-03-28 11:20:47 EST
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 ***
Comment 4 Lynne Kues CLA 2003-03-28 11:33:38 EST
Is the problem described in the readme for Solaris?