Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 108339 - copy/paste doesn't work
Summary: copy/paste doesn't work
Status: CLOSED DUPLICATE of bug 105912
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows 2000
: P3 blocker with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Amy Wu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 05:28 EDT by MH CLA
Modified: 2005-12-07 16:20 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 MH CLA 2005-08-30 05:28:53 EDT
I updated WST to the latest release 0.7 and noticed that the editor shows some 
strange warnings that are not correct. But what makes it unusable is that 
copy&paste doesn't work. I tried keyboard shortcuts STRG+C/STRG+V and also 
popup menu items "copy"/"paste". WHen pasting, only a tab is inserted (or 4 
spaces if configured for tabs) ... :-(
Comment 1 MH CLA 2005-08-30 05:31:35 EDT
I noticed that it works if you just copy/paste a few characters within a line 
but when you copy a whole line or multiple lines, it just pastes a tab.
Comment 2 Nitin Dahyabhai CLA 2005-08-30 12:07:14 EDT
Which editor?
Comment 3 MH CLA 2005-08-30 14:34:43 EDT
The JSP Editor. I can workaround this by selecting multiple lines by not 
selecting the first line completely but just from the first non-white space (as 
most code lines all have some white space characters as trailing chars).
Comment 4 Andrew Premdas CLA 2005-09-08 05:28:22 EDT
I have experienced this bug also, but it is affecting the java editor also.
Platform is XP SP2 JDK1.5-04. This happens with 3.1 and 3.2m1 both with wtp0.7.
Problem is horrible, particularly as its intermittent. 

Also have noticed both the pasting a tab and the relation to blocks of text,
i.e. quite often when you can't cut and paste a block of text you can cut and
paste smaller bits of the text
Comment 5 David Williams CLA 2005-09-19 10:55:07 EDT
Amy, sound like anything you've worked on? May be unrelated, but since it
contained all the right key words (e.g. tab, paste :) was hoping you could 
at least read and help narrow possibilities. Is this a case of where we should
not have mimiced the Java Editors techniques? :)

Comment 6 Amy Wu CLA 2005-09-19 11:09:03 EDT
sounds similar to bug 105912 which was fixed a little while ago (but post 
0.7).  when you said you updated wst to the latest release 0.7,  do you mean 
the 0.7 released 7/29/2005?  or do you mean a recent wtp build (like an i 
build)
Comment 7 David Williams CLA 2005-09-19 23:12:26 EDT
I've been unable to reproduce this (on 0.7.1, or M8) , so suspect its "thread"
or workload related. Also, can you give some idea (or, better, attach a sample)
of what your typical source looks like. Also, might help if you attached
configuration file and .log (both available from the "about" dialog. 

Amy, I don't think its bug 105912 that is being described, I think he's
discribing  literally that a whole bunch of text is replaced with a single tab
(or spaces reppresenting tabs). I called to your attention, since I think you
mentioned following their pattern for "tab replacement" on paste, so .. I
thought if both editors exhibit the problem, maybe its the common part of the
technique?
Comment 8 Amy Wu CLA 2005-09-20 10:23:46 EDT
Actually, I really do think this is a dup of bug 105912.  If you read comment 
#3, "I can workaround this by selecting multiple lines by not 
selecting the first line completely but *just from the first non-white space*"

And if you look in comment #1 in bug 105912, I pointed out that the bug is if 
you copy/paste text that begins with a tab character, all text will be 
replaced by just a tab character or spaces.

As for our technique versus Java Editor.  We are actually pretty different.  
Our spaces for tabs function is mainly in an autoedit strategy versus Java 
editor just has their own way of doing things.  So I don't think our problems 
are that similar.
Comment 9 David Williams CLA 2005-09-20 10:41:26 EDT
ok, thanks Amy. I'd missed that comment. 
So ... from what I can tell, the fix for bug 105912 
was not put in 0.7.1. Was it? Could it be? 

Comment 10 Amy Wu CLA 2005-09-20 10:55:33 EDT
I honestly don't know if the fix was put in for 0.7.1 or not.  But if it 
wasn't you could probably take the patches from bug 105912 and apply them to 
the 0.7 version of code since the bug would discovered shortly after 0.7.
Comment 11 David Williams CLA 2005-09-20 11:22:22 EDT

*** This bug has been marked as a duplicate of 105912 ***
Comment 12 Phillip Avery CLA 2005-12-07 16:20:15 EST
verified 20051208, closing.