[
https://issues.apache.org/jira/browse/HBASE-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Spiegelberg updated HBASE-3678:
---------------------------------------
Attachment: eclipse_formatter_apache.xml
1. Go to Eclipse->Preferences...
2. In Preferences, Go to Java->Code Style->Formatter
3. Import... <eclipse_formatter_apache.xml>
4. Click Apply
5. Still in Preferences, Go to Java->Editor->Save Actions
6. Check the following:
a. Perform the selected actions on save
b. Format source code
c. Format edited lines
I don't know if we can make a file to import these preferences without
overwriting the user's other preferences, but that would be boss.
> Add Eclipse-based Apache Formatter to HBase Wiki
> ------------------------------------------------
>
> Key: HBASE-3678
> URL: https://issues.apache.org/jira/browse/HBASE-3678
> Project: HBase
> Issue Type: Improvement
> Reporter: Nicolas Spiegelberg
> Assignee: Nicolas Spiegelberg
> Priority: Trivial
> Attachments: eclipse_formatter_apache.xml
>
>
> Currently, on http://wiki.apache.org/hadoop/Hbase/HowToContribute , we tell
> the user to follow Sun's code conventions and then add a couple things. For
> lazy people like myself, it would be much easier to just tell us to import an
> Apache formatter into your Eclipse project and not worry about it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira