Bug 12004 - Formater
Summary: Formater
Status: RESOLVED DUPLICATE of bug 3327
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-21 05:07 EST by Xavier Méhaut CLA
Modified: 2002-07-30 13:53 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 Xavier Méhaut CLA 2002-03-21 05:07:41 EST
Hello,
I would suggest a little improvement to the formating capability.
The formater could eliminate blank lines ,except maybe one , between methods 
description. If there is no blank line betwwen two methods, the formater could 
also add one automatically.
It could beautify the whole file contents.
regards
Xavier

Examples :

	/**
	 * Constructor for PropertyParameterEntity.
	 */
	public PropertyParameterEntity() {
		super();
	}
//blank
//blank
//blank
//blank
	/**
	 * Constructor for PropertyParameterEntity.
	 * @param aName
	 */
	public PropertyParameterEntity(String aName) {
         ...
would become
	/**
	 * Constructor for PropertyParameterEntity.
	 */
	public PropertyParameterEntity() {
		super();
	}
//blank
	/**
	 * Constructor for PropertyParameterEntity.
	 * @param aName
	 */
	public PropertyParameterEntity(String aName) {
        /...
Comment 1 Xavier Méhaut CLA 2002-03-21 05:10:35 EST
Sorry..I've checked on an old version.. It runs on the last one..
Closed
Regards
Xavier
Comment 2 Erich Gamma CLA 2002-03-21 05:25:37 EST
closed by request of reporter
Comment 3 Xavier Méhaut CLA 2002-03-21 05:32:02 EST
Sorry again...
There is still a case where it is not running ;
Example :
	/**
	 * OperationEntity constructor comment.
	 */
	public OperationEntity() {
		super();
	}// NO BLANK LINE BETWEEN METHODS OR ATTRIBUTES
	/**
	 * OperationEntity constructor comment.
	 */
	public OperationEntity(String unNom) {
		super();
		name = unNom;
	}
should give :
	/**
	 * OperationEntity constructor comment.
	 */
	public OperationEntity() {
		super();
	}
//Blank line
	/**
	 * OperationEntity constructor comment.
	 */
	public OperationEntity(String unNom) {
		super();
		name = unNom;
	}
Comment 4 Philipe Mulet CLA 2002-03-22 07:03:51 EST
Formatter only reduces blank lines, it does not insert some in between methods.
Will consider post 2.0
Comment 5 Philipe Mulet CLA 2002-07-25 06:30:39 EDT
Resurrecting formatter issues in 2.1 stream.
Comment 6 Philipe Mulet CLA 2002-07-25 06:32:32 EDT
Clearing resolution
Comment 7 Olivier Thomann CLA 2002-07-30 13:53:37 EDT

*** This bug has been marked as a duplicate of 3327 ***