Bug 82275

Summary: [prefs] build-in Java Conventions Formatter profile not initialized probably
Product: [Eclipse Project] JDT Reporter: Kit Lo <kitlo>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, markus.kell.r, vivek.pandey
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kit Lo CLA 2005-01-05 14:31:40 EST
build: eclipse-SDK-I20050104-1600-win32

The "Use tab character" preference is not initialized probably.

testcase:
- start Eclispe with a new workspace
- open a Java file in the Java Editor
- format the Java file
- tabs are used for indentations although the build-in Java Conventions 
  Formatter profile has the "Use tab character" preference unchecked
- switch to the "Eclipse 2.1" Formatter profile and switch back to the "Java 
  Conventions" Formatter profile
- format the Java file again
- now spaces are used for indentations
Comment 1 Dirk Baeumer CLA 2005-01-06 05:30:12 EST
Moving to JDT/Core first since the user didn't change the settings and the
profiles are built-in profiles provided by JDT/Core.
Comment 2 Olivier Thomann CLA 2005-02-10 16:18:00 EST
*** Bug 84297 has been marked as a duplicate of this bug. ***
Comment 3 Olivier Thomann CLA 2005-02-10 16:19:30 EST
Frédéric,

Have a look at at the comment in bug 84297 comment 7. It explains why we have a
difference between the code preferences and the UI settings.
Comment 4 Tom Hofmann CLA 2005-02-11 04:07:27 EST
Note that if you get rid of those two lines (as suggested in bug 84297 comment
7) the default values will be changed, which will not only affect fresh
installs, put possibly also people with formatter settings that happen to set
the tab width value to the same as the default!
Comment 5 Frederic Fusier CLA 2005-03-16 11:06:25 EST
Unfortunately, defer post 3.1
Comment 6 Frederic Fusier CLA 2005-03-31 10:44:07 EST
Reopen as it seems to be necessary to fix this issue for 3.1
Comment 7 Olivier Thomann CLA 2005-03-31 13:17:43 EST

*** This bug has been marked as a duplicate of 89739 ***
Comment 8 Kit Lo CLA 2006-11-16 11:26:30 EST
closing resolved bug