google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

This adds an AOSP formatter to the Eclipse plugin.

Open bryanschofield opened this issue 6 years ago • 8 comments

This is achieved by creating two different Eclipse Java Formatter implementations that are selectable in the Java Code Style > Formatter preferences. The google-java-format acts just the same. A new aosp-java-format enables AOSP options.

Internally this is achieved by giving the SnippetFormatter the ability to accept JavaFormatterOptions.

This addresses: https://github.com/google/google-java-format/issues/179

bryanschofield avatar Feb 06 '18 02:02 bryanschofield

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

googlebot avatar Feb 06 '18 02:02 googlebot

go go googlebot

bryanschofield avatar Feb 06 '18 03:02 bryanschofield

CLAs look good, thanks!

googlebot avatar Feb 06 '18 03:02 googlebot

Thanks for the quick feedback! @Stephan202

bryanschofield avatar Feb 06 '18 13:02 bryanschofield

Hi, we just switched our open source project(s) to Google AOSP and a release with this PR merged would be awesome :-)

aaime avatar May 01 '18 07:05 aaime

Any help needed to make this merged?

ava1ar avatar Oct 11 '18 21:10 ava1ar

The branch currently has conflicts.

  • @bryanschofield do you think you can resolve them?
  • Any feedback from the Google team on whether this change is viable would be appreciated.

(GJF is a tremendous time saver; it'd be great to see this tool adopted as widely as possible. Changes such as these definitely help achieve that.)

Stephan202 avatar Jan 27 '19 12:01 Stephan202

Any update on this?

brunoborges avatar Jun 09 '23 17:06 brunoborges