| 
| code formatter behaviour has changed from Luna to Mars [message #1704932] | Mon, 10 August 2015 16:44  |  | 
| Eclipse User  |  |  |  |  | I'm getting different formatting outputs when defining Enum types with annotations between Luna and Mars. I work with my own code style formatter template, but even with Eclipse default templates (Eclipse built-in or Java Conventions) behaviour is different between Luna and Mars. 
 Sample code in Luna:
 
 public enum TestFormatterEnum {
 
 @Translate("Element Type One")
 ElementTypeOne,
 
 @Translate("Element Type Two")
 ElementTypeTwo,
 
 @Translate("Element Type Three")
 ElementTypeThree;
 
 }
 
 
 Same code in Mars after formatting:
 
 public enum TestFormatterEnum {
 
 @Translate("Element Type One") ElementTypeOne,
 
 @Translate("Element Type Two") ElementTypeTwo,
 
 @Translate("Element Type Three") ElementTypeThree;
 
 }
 
 I'm not able to find an option to customize this with the template editor...
 
 Any advice (different than using comment // at the end of line or disable formatter) appreciated.
 
 Cheers,
 
 
 
 
 |  |  |  | 
|  | 
Powered by 
FUDForum. Page generated in 0.03935 seconds