Bug 136458 - [typing] smart paste a multiline comment into another one
Summary: [typing] smart paste a multiline comment into another one
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 16:19 EDT by Andrew Ferguson CLA
Modified: 2006-04-13 02:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Ferguson CLA 2006-04-12 16:19:36 EDT
hi,

 I'm wondering about the value of doing the following. If you have two comments

 /* 
  * foo
  */

 /*
  * bar
  */

and cut (ctrl-x) the foo comment, position the cursor at X 

 /*X
  * bar
  */

then it would be nice if the result was

 /*
  * foo
  * bar
  */

The exact positioning of the text and preserving of newlines within the comment is not very important. The important feature here would be that a comment pasted into another comment gives a new comment rather than a compile error e.g. the current behaviour will give something along the lines of

	/*/*
	 * foo
	 */
	 * bar
	 */

which I'd assert is no good to anyone :)

thanks,
Andrew