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

Bug 511138

Summary: Some preference customizations are ignored
Product: [Eclipse Project] Equinox Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: ComponentsAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: sptaszkiewicz, sxenos, tjwatson
Version: 4.7.0 Oxygen   
Target Milestone: Oxygen M6   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/89635
https://git.eclipse.org/r/89637
https://bugs.eclipse.org/bugs/show_bug.cgi?id=387898
https://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=23f9b744c1083eb4fcba8e45da70fa10d2670dd3
https://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=ad0e8c85475d4df04dd3aa0068923cfac2ad3e87
Whiteboard:

Description Sergey Prigogin CLA 2017-01-26 16:20:33 EST
To reproduce:
1. Install CDT.
2. Create /tmp/plugin_customization.ini file containing the following line:
org.eclipse.cdt.core/org.eclipse.cdt.core.code_formatter=my_formatter
3. Modify config.ini file and add the line eclipse.pluginCustomization=/tmp/plugin_customization.ini
4. Start Eclipse with the modified config.ini file with "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" flags on the command line
5. In a separate Eclipse instance open a workspace containing CDT code and put a break point on CustomCodeFormatterBlock.java line 69.
6. Start a debugging session and attach to port 8000.
7. In the Eclipse instance being debugged open C/C++ > Code Style > Formatter preference page
8. When the breakpoint in CustomCodeFormatterBlock.java line 69 is hit, inspect the value of the fDefaultFormatterId field. The field is set to "org.eclipse.cdt.core.defaultCodeFormatter" instead of "my_formatter", which was specified in plugin_customization.ini.

This is a regression from Neon caused by the fix for bug 387898.
Comment 1 Eclipse Genie CLA 2017-01-26 16:29:50 EST
New Gerrit change created: https://git.eclipse.org/r/89635
Comment 2 Eclipse Genie CLA 2017-01-26 16:32:03 EST
New Gerrit change created: https://git.eclipse.org/r/89637