Summary: | The ImportRewriteAnalyzer does not honor a formatter setting | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Hüseyin Kartal <hk> | ||||||||||
Component: | Core | Assignee: | David Audel <david_audel> | ||||||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||||||
Severity: | normal | ||||||||||||
Priority: | P3 | CC: | daniel_megert, david.newcomb, frederic_fusier, Olivier_Thomann | ||||||||||
Version: | 3.4 | ||||||||||||
Target Milestone: | 3.5 M3 | ||||||||||||
Hardware: | All | ||||||||||||
OS: | All | ||||||||||||
Whiteboard: | |||||||||||||
Attachments: |
|
Description
Hüseyin Kartal
2008-10-04 19:25:09 EDT
Please provide example of what you mean as well as steps to reproduce. Thanks. Created attachment 114408 [details]
Cleanup Setttings
Created attachment 114409 [details]
Source Formatter Settings
Created attachment 114411 [details]
Screenshot
in the screenshot you can see the result of a cleanup process. even if you repeat the process several times there are the same differences in the import directives. you should be able to reproduce if you import the attached setting in your SourceFormatter and your CleanUp preferences. Moving to JDT/UI ImportRewriteAnalyzer.getResultingEdits(IProgressMonitor) does not honor the following code formatter setting: org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON Created attachment 116029 [details]
Proposed fix
Released for 3.5M3. Test added ImporRewriteTest#testAddImports4() Verified for 3.5M3 using I20081027-1800 *** Bug 257177 has been marked as a duplicate of this bug. *** |