Eclipse setting
[edit]
Conventions de codage
Neogia follow the ofbiz project coding convention. You can find it on ofbiz wiki project http://ofbizwiki.go-integral.com/Wiki.jsp?page=FAQ27
- Encodage des fichiers sources : UTF-8
- Format d'indentation : espaces
- Taille d'indentation : 4 pour java, 2 pour xml
- Langue utilisée pour les commentaires des codes sources : anglais
- Langue utilisée pour les messages de commits : anglais
- type de fichier cvs Ascii pour ftl et bsh
- mode texte cvs par defaut ko
Java specifics coding Conventions : Code Conventions for the JavaTM Programming Language
[edit]
Eclipse parameters
Dans le menu Window -> Preferences ...
- Ant -> Editor -> Formatter, Tab size = 2
- Ant -> Editor -> Formatter, décocher "use tab character instead of space"
- Java -> Code style -> Formatter, Sélectionner le profile "Eclipse", et sélection "space only"
- Web and XML -> CSS File -> CSS Source -> Sélectionner "Indent using spaces"
- Web and XML -> CSS File -> CSS Source -> Indentation size = 4
- Web and XML -> HTML File -> HTML Source -> Sélectionner "Indent using spaces"
- Web and XML -> HTML File -> HTML Source -> Indentation size = 2
- Web and XML -> XML File -> XML Source -> Sélectionner "Indent using spaces"
- Web and XML -> XML File -> XML Source -> Indentation size = 2
- team -> file content -> ajouter *.ftl et *.bsh en ascii
- team -> cvs - onglet(files and folder) -> Default text mode = ko
- General -> Editor -> File Associations -> Ajouter "*.bsh" dans "File Types" et "Java Editor" dans "Associated Editors"
- Chargement des DTD Néogia pour les fichiers XML :
Web and XML -> XML Catalog -> Advanced -> Import -> Sélectionner ".xmlcatalog"


