Bug 117896 - [code formatter] ability to align arguments vertically in a row
Summary: [code formatter] ability to align arguments vertically in a row
Status: VERIFIED DUPLICATE of bug 264112
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.6 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 07:31 EST by Timo Nentwig CLA
Modified: 2010-10-26 05:38 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Nentwig CLA 2005-11-24 07:31:43 EST
Code Formatter ought to be able to align method argument vertically like this:

method("param1",
       2,
       obj.three(),
       new Long(4));
Comment 1 Olivier Thomann CLA 2005-11-24 11:53:51 EST
This should already be doable. What are your code formatter settings?
Comment 2 Timo Nentwig CLA 2005-11-25 04:31:56 EST
Line Wrapping > Function Calls > *: Wrap all element, except frist element if not neccessary and Indent on column. This formats as:

while( r.next() )
	prioritizedIds.add( new CacheInvalidationServer( r.getLong( "PRIORITY" ), r.getLong( "CACHEINVALIDATION_ID" ), r
			.getTimestamp( "STARTED" ), r.getTimestamp( "FINISHED" ) ) );


and should


while( r.next() )
	prioritizedIds.add( new CacheInvalidationServer( r.getLong( "PRIORITY" ), 
                                                         r.getLong( "CACHEINVALIDATION_ID" ), 
                                                         r.getTimestamp( "STARTED" ), 
                                                         r.getTimestamp( "FINISHED" ) ) );

Comment 3 Olivier Thomann CLA 2007-06-21 13:12:15 EDT

*** This bug has been marked as a duplicate of bug 59891 ***
Comment 4 Frederic Fusier CLA 2010-04-14 07:05:09 EDT
It was in fact more a duplicate of bug 264112, hence it's fixed since 3.6M5.

*** This bug has been marked as a duplicate of bug 264112 ***
Comment 5 Ayushman Jain CLA 2010-04-27 05:00:51 EDT
Verified for 3.6M7 using build I20100426-0852.