Version 6 (modified by 16 years ago) ( diff ) | ,
---|
Development Guidelines
How your code should look like
- make sure the code is Java 1.5 compatible: no missing
@Override
or@Deprecated
- make sure there is no trailing white space
- don't use multiple consecutive empty lines
Configuring Eclipse
Internationalization
- make sure you use use
tr(...)
for all localized stringsimport import static org.openstreetmap.josm.tools.I18n.tr; threw new Exception(tr("error message always in tr")); new JLable(tr("Lable always in tr")); // etc.
- never assemble localized messages with
+
. Use format placeholders instead.
DONT
new JLable(tr("My Label " + labelId));
DO
new JLable(tr("My Label {0}",labelId));
Attachments (4)
- ss1.png (142.2 KB ) - added by 16 years ago.
- ss2.png (55.2 KB ) - added by 16 years ago.
- ss3.png (68.2 KB ) - added by 16 years ago.
- styleguide_compiler_16.png (55.0 KB ) - added by 13 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.