Summary: | [formatter] Exclude particular lines from auto-format | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | bug r. naut <buggernaut> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | VERIFIED DUPLICATE | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | amj87.iitr, jarthana, Olivier_Thomann, waav_zoungla-eclipsebugzilla |
Version: | 3.5 | ||
Target Milestone: | 3.6 M6 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
bug r. naut
2009-07-01 13:18:07 EDT
Yes, this is a major functionality for me, especially in enumerations. Although the semantic structure argument is totally valid, I am more interested in simple readability of Java files. Sample code: public enum MsgId { // // keys for messages in the messages.properties file MSG_ASSOC_MANDATORY ("association.is.mandatory"), MSG_DEFAULT_ERROR_MSG ("default.error.msg"), MSG_FIELD_MANDATORY ("field.is.mandatory"), MSG_FILE_FIELD_MANDATORY ("file.field.label.mandatory"), MSG_FILL_MANDATORY_FIELDS ("fill.mandatory.fields"), MSG_INTEGRITY_VIOLATION ("integrity.violation"), ... } To this date, any formatting of this class will make the enum look garbage. A tag, directive, keyword, annotation, etc. anything that would prevent formatting of a portion of code would be fine for me. Verified for 3.6M6 using build I20100305-1011. Verified. |