| Summary: | [preferences] Comment formatter prefs: Header can be non-Javadoc comment | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> | ||||||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | benno.baumgartner, markus.kell.r | ||||||||
| Version: | 3.3 | ||||||||||
| Target Milestone: | 3.3 M5 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Dani Megert
Just checked: you can enable comment formatting (in the Javadoc section) and then disable all general options and then, the header will be formatted as I would expect since header formatting is treated by the formatter as a main option. This is the logic at the moment: Javadoc headers are formatted iff Javadoc and header is enabled Block headers are formatted iff Block and header is enabled What we want is: Headers are formatted iff Header formatting is enabled (no matter what the other settings are, no matter if it is a block or a javadoc header) I'll provide two UI fixes: 1. Fix the UI such that it reflects the logic as it is at the moment (ugly UI) 2. UI as we want it Created attachment 58435 [details]
first fix
Created attachment 58436 [details]
second fix
Core? Would it be possible to change the behavior to what we want for M5? What exactly are you expecting from us? If I well understood your comment 2, you expect the header formatting to be independent from the block comment and the javadoc comment sections. (In reply to comment #7) > If I well understood your comment 2, you expect the header formatting to be > independent from the block comment and the javadoc comment sections. > Exactly. 'Format Header Comment' is then a top level setting. Move to JDT/UI. Right now the UI knows when a header is formatted. Created attachment 58454 [details]
fix
fixed > I20070206-0010 See Bug 173289 for core issue Verified in I20070208-0010. |