| Summary: | [Navigator] Copy and Paste a file actually does cut and paste | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Martin Möbius <m.moebius> |
| Component: | UI | Assignee: | Knut Radloff <knut_radloff> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | nyap |
| Version: | 2.0 | ||
| Target Milestone: | 2.1 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 98 | ||
| Whiteboard: | |||
| Bug Depends on: | 22926 | ||
| Bug Blocks: | |||
Cannot reproduce in R2.0 (20020627). I'm selecting file A.java in package a.b, press ctrl+c (or select copy menu item), go to a different directory in Windows Explorer and select paste. The file is copied to the new location and remains in the workspace when I refresh package a.b Please correct if these are not the right steps to reproduce. Do you see the same problem when using drag and drop to copy the file? I tried again and it is similar as yesterday. I copy from navigator/package view and paste into Window Explorer and the file is gone in the workspace. Similarly, when I *cut* from Window Explorer and paste into the navigator/package view, the file is still it Window Explorer. Entered bug 22666 for cutting from Windows Explorer to Eclipse. The answer may be that this should not be supported to begin with. The only way I get files to disappear in Eclipse is when I drag move to the Explorer. This is expected. I still have no luck reproducing this with a copy operation. Please provide details about your platform (Win NT, 2000, ?) and the Eclipse build you are using. Do you also see this problem when you follow the exact steps I outlined above? Do you see it when doing a drag copy (hold down ctrl and drag with the mouse). Added Ning to the cc list. Ning, please read the note I added earlier today, when you were not on the cc list yet. I tried again just now, and it is still the same. However I tried on my home pc yesterday, and it was fine. Anyway the platform that produce the problem is as follow: Microsoft Windows 98 Second Edition 4.10.2222 A Hard disk controllers: Intel 82371AB/EB PCI Bus Master IDE Controller Primary IDE controller (dual fifo) Secondary IDE controller (dual fifo) I wonder whether the harkdisk controller got something to do with it or not. My steps (better to much information than to less) open eclipse ( 200206271827) package view, java perspective select a class in package view press ctrl+c open an explorer windows (i did start|execute|c:\java) press ctrl+v no the file is copied, the resource is still to see in package view select the project node press F5 no the resource is disappeared (I can do the same with the Copy from context menu) comments (my be absurd) german winnt4.0,service pack 6a, the workspace directory and the location where to copy to is on the same drive (c)|partition, partition is ntfs, keyboard layout is german the workspace location is 2 level up from the eclipse binaries When we can't reproduce a problem we like to have as much information as possible about your setup. However, I'm pretty confident that this isn't related to the HDD controller. Ning, do you have Windows 98 at home as well? Are you running with the same build at home (I assume R2.0)? Can you think of what's different about your Eclipse setup at home? Is your workspace different? Is it in a different location? I tried my procedure on win2k with the same eclipse build all does work correct. Perhaps a winnt problem? No real idea. I am using Win98SE at home also, which works fine on eclipse. I just don't know why my office pc is not working as fine as my home pc on eclipse. I have this problem (copy paste), and another problem which I already filed a bug report 16009 previously (some 'most' of the toolbar buttons' icon image is in black and upside down. Funny thing is, the buttons showed beautifully, once in a bluemoon) Maybe, I need to request for another pc. (which is mostly out of question at this moment) Martin, Which file system do you use on NT, where you did see this problem? FAT, NTFS, other? Which service pack do you have installed on your NT box? Ning has seen this on one Win98 machine but not another. I tried reproducing the problem on one Win NT machine with FAT (32?) and on my home NT with NTFS. No luck here. Must be related to the machine configuration. Ning, do you use the same file system type for both your home and work Win98? Martin, ignore me. You already provided all the info. I run on NTFS partitions and with SP 6 at home. Not sure which service pack I have at work, should be 6a. I was able to reproduce this on my home Win98 machine with R2.0. German Windows 98 SE 4.10.2222 A (same version number as Ning's) with FAT file system. When I ctrl+c, ctrl+v or context menu copy and paste from Eclipse package view or navigator to Windows explorer the resource disappears in Eclipse when I do a refresh. This does not happen when using drag and drop to copy. Opened SWT bug 22926 with a test case. For some reason Windows 98 moves the source file when we place it on the clipboard. Win2k and NT (my NT machines anyway) do a copy. Not sure what we need to do to tell Win98 to copy and not move. This is occurring on my machine also. I'm running WINNT 4.0 SP6, NTFS, Eclipse Build 200206271827. Drag and drop works properly (drag moves the file with Package Explorer display updated automatically, CTRL-drag copies the file) but "copying" the file by choosing Copy from either the edit menu or the right-mouse popup menu or by pressing CTRL-C and then pasting into Windows Explorer causes the selected file to be moved rather than copied and the Package Explorer display is not updated until it is manually refreshed. The same happens in the Navigator view. Verified the SWT fix on Windows 98. Martin, can you verify that copy/paste now works as expected on NT as well? The fix is in build 20020911 and higher. verified on 20020913/Nt4.0 both drag&drop and ctrl+c&ctrl+v do work (What is closing practice of bugs? Do you close as resolved?) Only component owners or bug assignees close bugs and also mark them with the milestone that contains the fix. Thanks for your help in tracking this down. |
Form the newgroup Subject: file deleted from package view when copy and paste to window explorer From: nyap) Newsgroups: eclipse.tools Date: Aug 20 2002 08:15:33 >I don't know you guys have this problem before or is it just a feature >in eclipse. The case is, whenever I copy (or CTRL+C) any file from >package or navigator view and paste it into the window explorer, the file >will be deleted from the package and navigator view. I tried with the same result. In fact its evil. I would expect it to copy, the view does show me the file I copied. Now a refresh and the file is gone. 'Major' as its easy loose resources. build 200206271827