Bug 107507 - [typing] support for member grouping inside document
Summary: [typing] support for member grouping inside document
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-20 01:28 EDT by Missing name CLA
Modified: 2005-08-23 03:35 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 Missing name CLA 2005-08-20 01:28:35 EDT
Hi,

Presently java code formating has the option to leave n blank lines or none in
between mtd, vars and classes.

Can we enhance this to allow single empty comments for inter method,var,class
spacing.

With color coding this formating makes the code easy to read on the screen.

pkg adfasdf;
//
mtd1()
{
}
//
mtd2()
{
}


Please consider this
Cheers
Comment 1 Dani Megert CLA 2005-08-22 05:18:13 EDT
>to allow single empty comments
You mean to insert those?
Comment 2 Missing name CLA 2005-08-22 20:58:29 EDT
(In reply to comment #1)
> >to allow single empty comments
> You mean to insert those?

Yes please. And other variations. Some people might want 
 
/*************** ${mtd_name} ****************/ 

inserted before each method. Where mtd_name is generated already etc.
we just want a  // as shown in the sample above.

Comment 3 Missing name CLA 2005-08-22 21:02:13 EDT
How about grouping ? For instance all methods that implement ActionListener must
be grouped and formatted as

/////////////////////// Implements ${InterfaceName} //////////////////////////

actual mtds listed under here.

Also flds and corresponding get/set methods groupd together etc.

This makes easy to read a code printout.
Comment 4 Dani Megert CLA 2005-08-23 03:34:28 EDT
This request is not about formatting since formatting in general only affects
whitespace. What would be needed is
- smart typing that auto-inserts the method (or member) separator
- a command that adds those upon request to an open file and a set of resources

Re grouping: the better approach is to wait and use the upcoming @category tag.

Note that there's a feature request for a member separator (no grouping though).