Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Copy/Paste regression from 2.0->2.1
Copy/Paste regression from 2.0->2.1 [message #74814] Fri, 11 July 2003 12:07 Go to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

given:
class foo {
public void bar() {
//some method
}
}


If I select all lines corresponding to method bar(), move to somewhere in
the class, and paste, I get:

class foo {
public void bar() {
//some method
}
public void bar() {
//some method
}
}

Paste has mangled the whitespace. It inserted tabs when I didn't want them.
Eclipse 2.0 did not do this. Is there a preference somewhere that controls
this? Does this still occur in 3.0?

It happens in other scenarios too. I think simple if statements and for
loops causing problems too. (simple means no {braces})
Re: Copy/Paste regression from 2.0->2.1 [message #75672 is a reply to message #74814] Mon, 14 July 2003 12:26 Go to previous message
Eclipse UserFriend
Originally posted by: dcorbin.imperitek.com

Randy Hudson wrote:
> given:
> class foo {
> public void bar() {
> //some method
> }
> }
>
>
> If I select all lines corresponding to method bar(), move to somewhere in
> the class, and paste, I get:
>
> class foo {
> public void bar() {
> //some method
> }
> public void bar() {
> //some method
> }
> }
>
> Paste has mangled the whitespace. It inserted tabs when I didn't want them.
> Eclipse 2.0 did not do this. Is there a preference somewhere that controls
> this? Does this still occur in 3.0?
>
> It happens in other scenarios too. I think simple if statements and for
> loops causing problems too. (simple means no {braces})
>
>


Windows-Preferences-Java-Editor-Typing-Pasting for correct indentation,
I think.

David
Previous Topic:AST / parser problems
Next Topic:How can I create an eclipse project outside eclipse?
Goto Forum:
  


Current Time: Tue Jul 22 07:43:46 EDT 2025

Powered by FUDForum. Page generated in 0.24316 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top