Bug 153269 - [typing] Uncomment Java doc comments containing pre tags
Summary: [typing] Uncomment Java doc comments containing pre tags
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-08-09 06:51 EDT by Guenther Koegel CLA
Modified: 2007-06-22 10:02 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 Guenther Koegel CLA 2006-08-09 06:51:50 EDT
Please check product and component...

Using the Java code formatter (Control+Shift+F) to format java doc containing Java code snippets marked with <pre> tags changes encoding to XML style, e.g. double quotes to &quot; and less to &lt; which is correct.

It could be helpful if the removing the comment would be supported inclusive the deconding of the XML encoded characters by a simmilar edit command, e.g. "Remove JavaDoc Comment".

Use case: Comment out some functions and keep formatting human understandable. Using "//" to comment out is not helpful because the next activation of the Java code formatter will push all the the left side removing the indentation.

Example: How to uncomment the following routine?

/**
  * <pre>
  * public String toString(int value)
  * {
  *     if (value &gt; 0)
  *         return &quot;Yes&quot;;
  *     return &quot;No&quot;;
  * }
  * </pre>
  */
Comment 1 Dani Megert CLA 2006-08-09 09:35:57 EDT
Currently no plans to work on this but help would be accepted of course.
Comment 2 Dani Megert CLA 2007-06-22 09:59:30 EDT
Get rid of deprecated state.