Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344432

Summary: Enhancement request to categorize the comments in codes
Product: [Eclipse Project] JDT Reporter: Ashish Sharma <Ashish.gsharma1>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ashish Sharma CLA 2011-05-02 06:57:31 EDT
Build Identifier: 20090920-1017

While development to check the states of objects or to get the stack trace in case of exception we use sysouts or e.printStackTrace() or else.. we may or may not want all these commands to get in our releasing build so we comment or remove them accordingly. And we again un-comment those when we start enhancing the old src. All I expect from Eclipse is to allow me to categorize my comments and let me comment and un-comment those in bulk. It can be like a breakpoints view or as you feel more user friendly. User can put category name at the start of comment like 
//Category:StackTraces
comments which don't have "Category:" as first element will be treated as normal comments as we have at the moment. :)
I hope I am making any sense..
Waiting for the feature.. :-)

Thanks & Best Regards,
Ashish Sharma, India
My email id : ashish.gsharma1@gmail.com
Mobile : +919881236474

Reproducible: Always
Comment 1 Markus Keller CLA 2011-05-04 11:23:56 EDT
That would amount to a pre-processor for Java. We're not going to implement that.

Please use the pattern recommended in the Java Language Specification:

    if (DEBUG) { ... }

If DEBUG is a compile-time constant and set to false, the compiler should eliminate all traces of that code block.