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

Bug 476670

Summary: Preferences/Java/Code Style/Formatter/White Space/Declarations
Product: [Eclipse Project] JDT Reporter: Jorge Campos <campos.jorge>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mateusz.matela
Version: 4.5   
Target Milestone: 4.5.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Custom formatter configurations none

Description Jorge Campos CLA 2015-09-04 13:52:44 EDT
When creating a New code style to my project I've noticed that the code style does not have an option of add an white space after extends class declaration that with a Typed parameter between the typed parameter and the implements keyword:

If I have the following line:

class Test extends Blah implements X {

It works fine

But if I write:

class Test extends Blah<T> implements X<T> {

The formatter will change it to

class Test extends Blah<T>implements X<T> {

And there is no option to add an empty space after the type parameter of an extended class and before the implements keyword.

Note that to the formatter works I've set it on Java/Editor/Save Actions and marked the option "Format source code" with "Format All lines" option selected.
Comment 1 Jorge Campos CLA 2015-09-04 13:56:52 EDT
Created attachment 256395 [details]
Custom formatter configurations

I've exported my custom-Formatter so you can test it.
Comment 2 Mateusz Matela CLA 2015-09-05 07:20:06 EDT

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