Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 57026 - The context in java file can not be copied into a simple text file
Summary: The context in java file can not be copied into a simple text file
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 05:30 EST by leading CLA
Modified: 2004-04-22 05:32 EDT (History)
0 users

See Also:


Attachments
Select "Copy" in Package View (110.29 KB, image/jpeg)
2004-04-20 07:50 EDT, leading CLA
no flags Details
Select "Paste" in simple *.txt file (80.25 KB, image/jpeg)
2004-04-20 07:55 EDT, leading CLA
no flags Details
Only the java file name be copied,not context (65.90 KB, image/jpeg)
2004-04-20 07:57 EDT, leading CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description leading CLA 2004-04-01 05:30:46 EST
Reporter: Brook Zhang
OS: windows 2003
Language: CHS/CHT/Korean
Build level: 200403261517    
JDK Version: IBM JDK 1.4.2 Beta
Test case #:    
Summary: DBCS:The context in java file can not be copied into a simple text file

Description:
Steps to recreate problem:

1-Create a java project with DBCS project name
2-Add "new class" in the java project .
3-Switch over to the packages view and expand the java file 
4-Right click on the java file name and select "COPY" from the context menu 
5-Open the simple text file with the DBCS name if it isn’t already
6-Bring up a context menu within the file itself by right clicking anywhere in 
the editor that has a white color
7-Select "COPY" from the context menu 
 
<<Error>>   
     The name of java file have been copied, But the context haven't been 
copied            
<<Expected Result>>
     The context of java file can be copied into a simple text file correctly
Comment 1 Dani Megert CLA 2004-04-01 06:08:37 EST

*** This bug has been marked as a duplicate of 57003 ***
Comment 2 leading CLA 2004-04-01 20:46:12 EST
#57003's problem seems font problem. but #57026 maybe is not font problem.
In #57026, we try to copy the java file context, the result is that the java 
file name is copied on M8. It works well on  Eclipse 2.1.2.
After we change the default font on M8 build, #57003 problem was resolved, but
#57026 problem was still exist.
Comment 3 Dani Megert CLA 2004-04-02 02:12:14 EST
please reopen if you still see this after bug 57003 has been fixed.

*** This bug has been marked as a duplicate of 57003 ***
Comment 4 leading CLA 2004-04-05 05:10:49 EDT
This problem aslo exist on RHEL WS-3.0 Korean.
Comment 5 leading CLA 2004-04-09 05:02:11 EDT
This defect also occured on wswb-I20040407-200404081318 build.
Comment 6 Dani Megert CLA 2004-04-12 13:13:15 EDT
see comment 3.
Comment 7 leading CLA 2004-04-16 05:04:25 EDT
The 57003 is fixed but This defect is also exist on wswb-I20040413-200404151406 
build.
Comment 8 Dani Megert CLA 2004-04-20 06:15:55 EDT
Isn't there some <PASTE> step missing in the scenario?
Comment 9 leading CLA 2004-04-20 07:50:41 EDT
Created attachment 9693 [details]
Select "Copy" in Package View

Select "Copy" in Package View
Comment 10 leading CLA 2004-04-20 07:55:48 EDT
Created attachment 9695 [details]
Select "Paste" in simple *.txt file

Select "Paste" in simple *.txt file
Comment 11 leading CLA 2004-04-20 07:57:55 EDT
Created attachment 9696 [details]
Only the java file name be copied,not context

Only the java file name be copied,not context
Comment 12 Dani Megert CLA 2004-04-20 09:06:13 EDT
Aah - DBCS tag confused me: this has nothing to do with DBCS: we copy the name
to the text clipboard by design. If you copy an element and then paste it into a
container (not text drop target) we paste the full element.
Comment 13 leading CLA 2004-04-21 22:35:24 EDT
I performed this test on new build wswb-I20040413-200404191247,The JDT build id 
is 200404131323.This problem is also exist.I tried to perform this on Eclipse 
2.1.2 but this function works well.The JDT build id is 200311030802 on Eclipse 
2.1.2.So I think this defect is not fixed .Sorry to reopen it. 
Comment 14 Dani Megert CLA 2004-04-22 04:01:23 EDT
This is not a bug but works as designed (for 3.0). I know that - like many other
things in 3.0 - it behaves differently than in 2.x: we changed this on purpose
to  be consistent with other selections in the Package Explorer and Navigator.
You can still copy & paste the an element if the drop target accepts it.

Please do not reopen this bug if you disagree - file a new one and explain why
you want the old behavior back ;-)
Comment 15 leading CLA 2004-04-22 05:32:09 EDT
It sounds reasonable, I think it's the design change about "copy & paste" .It 
have diffrences between eclipse2.1 and 3.0 .So I closed this defect.