Eclipse settings:
Basic settings:
Text file encoding UTF-8 (General > Workspace)
Set SUN JRE 6 as the default JRE (Java > Installed JREs)
Compiler compliance level 1.6 (Java > Compiler)
Import eclipse code templates:
Get code template from Content Facotry code template, using (Java->Code Style -> Code Templates to import code template), after import, you will see
License info will be added to Java files by default;
Get code formatter from Content factory code format , using (Java ->Code Style -> Formatter to import the formatting template), after import, you will see
Max line width to 100 (Java > Code Style > Formatter > Edit > Line Wrapping)
Comment max line width to 100 (Java > Code Style > Formatter > Edit > Comments)
Basic settings:
Text file encoding UTF-8 (General > Workspace)
Set SUN JRE 6 as the default JRE (Java > Installed JREs)
Compiler compliance level 1.6 (Java > Compiler)
Import eclipse code templates:
Get code template from Content Facotry code template, using (Java->Code Style -> Code Templates to import code template), after import, you will see
License info will be added to Java files by default;
Get code formatter from Content factory code format , using (Java ->Code Style -> Formatter to import the formatting template), after import, you will see
Max line width to 100 (Java > Code Style > Formatter > Edit > Line Wrapping)
Comment max line width to 100 (Java > Code Style > Formatter > Edit > Comments)