Bug 156874 - [comments] More flexibility with handling trailing and/or leading comments needed.
Summary: [comments] More flexibility with handling trailing and/or leading comments ne...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-09-11 10:07 EDT by Daniel Stephan CLA
Modified: 2007-06-21 10:54 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 Daniel Stephan CLA 2006-09-11 10:07:33 EDT
My situation is the following: I am automatically processing a huge code base with the ASTRewriter, and in some cases I do not want that comments are deleted when the neighbouring statements are.

So, my wish would be to allow more flexibility. I don't really care how it is realized, but I would propose a strategy pattern, so that anybody can implement an own CommentMapping strategy object and influence the behaviour as needed. This way everybody can decide, which comments will move or delete together with the neighbouring node, and which comments stay in place.
Comment 1 Frederic Fusier CLA 2006-11-13 07:25:20 EST
Defer
Comment 2 Frederic Fusier CLA 2007-06-21 10:53:45 EDT
Reopen as LATER is deprecated...