Community
Participate
Working Groups
When I set up my workspace I choose the "Java Conventions [built-in]" profile in Window => Preferences => Java => Code Style => Formatter. When I examine the result (using Show => Indentation) I notice that "Tab size" is set to 4. Testing this, I notice that code containing tabs according to the Java Code Conventions is not displayed correctly (tabs are shown as corresponding to 4 spaces instead of 8). Changing "Tab size" (creating a new profile) and the code displays correctly.
Indeed, DefaultCodeFormatterOptions.setJavaConventionsSettings sets a tab width of 4, while the java conventions specify one of 8. Moving to core.
This was due to the fact that this could not be changed as long as the Java conventions was the default. Now that we have a new default profile, we can change this. Philippe, do you want it for 3.1.1 or I do it only in 3.2?
Will be fixed in HEAD only for now.
Fixed and released in HEAD. Regression tests have been updated.
Verified with I20050808-2000