-
Notifications
You must be signed in to change notification settings - Fork 73
Code Style
If you are using Eclipse for development, we have a number of files to help you maintain consistent project code styling.
All settings files can be checked out from the GitHub repository:
git://github.com/OneBusAway/onebusaway.git
Specifically:
https://github.com/OneBusAway/onebusaway/tree/master/eclipse
We will also provide direct links to files where applicable.
Project -> Properties -> Java Code Style -> Formatter -> Import...
eclipse/code-style/org.onebusaway-format.xml
Or download:
https://raw.github.com/OneBusAway/onebusaway/master/eclipse/code-style/org.onebusaway-format.xml
Unfortunately, you have to manually configure XML formatting under XML->XML Files->Editor:
Line width: 120 Indent using spaces Indentation size: 2
Project -> Properties -> Java Code Style -> Organize Imports -> Import...
eclipse/code-style/org.onebusaway.importorder
Or download:
https://raw.github.com/OneBusAway/onebusaway/master/eclipse/code-style/org.onebusaway.importorder