Bug 22336 - formatter doesn't indent correctly static block
Summary: formatter doesn't indent correctly static block
Status: RESOLVED DUPLICATE of bug 17349
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 98
: P3 normal (vote)
Target Milestone: 2.1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-11 07:30 EDT by jean-louis willems CLA
Modified: 2002-11-05 16:52 EST (History)
0 users

See Also:


Attachments
Proposal to correct this bug. Including some previous/next lines (1.14 KB, text/plain)
2002-08-11 13:31 EDT, jean-louis willems CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jean-louis willems CLA 2002-08-11 07:30:13 EDT
The begin-block mark '{' of the static block isn't vertical align with the end-
block mark '}'.

 Preferences  : Java -> Code Formatter -> New Lines 
 --------------------------------------------------
   active  :  insert a line before an opening brace
   active  :  insert new lines in control statements
 inactive  :  Clear all blank lines
 inactive  :  insert new line between 'else-if'
   active  :  insert a new line inside an empty block

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
public class StaticProblem
{
	static {
		// ...
	}
	void myFunction()
	{
		if ( true )
		{
			// ...
		}
	}
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Comment 1 jean-louis willems CLA 2002-08-11 13:31:43 EDT
Created attachment 1828 [details]
Proposal to correct this bug. Including some previous/next lines
Comment 2 Olivier Thomann CLA 2002-10-11 09:32:50 EDT
Thanks for the proposal. Right now we are revisiting the whole implementation of
the code formatter. So for now we don't plan to apply bug fixes in the current
implementation.
Comment 3 Olivier Thomann CLA 2002-11-05 16:52:31 EST

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