Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 227670

Summary: [ccp] Copy/Paste files does not use file buffer.
Product: [Eclipse Project] JDT Reporter: Darko Marinov <marinov>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: emoffatt, martinae
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Darko Marinov CLA 2008-04-17 17:47:10 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. Create a new Java project "someProj" with class file "someClass" that has "private int x = 2;":

public class someClass {
		private int x = 2;
}

2. Save "someClass"
3. create new Java project "otherProj"
4. add "private int y = 3;" to "someClass":

public class someClass {
		private int x = 2;
		private int y = 3;
}

5. In the package manager, right-click "someClass.java" in the "someProj" project and select copy
6. right click and select paste on the "src" folder of "otherProj"
7. opening the "someClass" that was just pasted reveals that the line "private int y = 3;" does not exist

More information:
It seems that Eclipse copies/pastes files between projects from the actual file rather than the file buffer.
Comment 1 Eclipse Genie CLA 2019-11-15 11:32:44 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.