I use an IDEA plugin "eclipse-code-formatter". It seems to respect most, if not all, of the eclipse stuff. We can always try. I also get into the habit of only format selected text not entire file unless the file is written by me. 

----- Original Message -----

> From: "Sean Flanigan" <notifications@github.com>
> To: "zanata/zanata-server" <zanata-server@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Monday, July 8, 2013 3:27:33 PM
> Subject: Re: [zanata-server] Refactor FilterConstraints (#28)

> In
> zanata-war/src/main/java/org/zanata/webtrans/shared/rpc/GetTransUnitList.java:
> > -      this.count = count;
> > -      this.phrase = phrase;
> > -      this.filterTranslated = filterTranslated;
> > -      this.filterNeedReview = filterNeedReview;
> > -      this.filterUntranslated = filterUntranslated;
> > -      this.filterApproved = filterApproved;
> > -      this.filterRejected = filterRejected;
> > -      this.filterHasError = filterHasError;
> > -      this.targetTransUnitId = targetTransUnitId;
> > -      this.validationIds = validationIds;
> > -
> > +      documentId = context.getDocument().getId();
> > +      offset = context.getOffset();
> > +      count = context.getCount();
> > +      phrase = context.getFindMessage();
> > +      filterStates = ActiveStates.builder()
> I have a modified version of the Seam formatter for Eclipse with "Never join
> already wrapped lines". Can IDEA use Eclipse formatter definitions?
> …
> On 2013-07-08 14:57, David Mason wrote: In
> zanata-war/src/main/java/org/zanata/webtrans/shared/rpc/GetTransUnitList.java:
> > - this.count = count; > - this.phrase = phrase; > - this.filterTranslated
> = filterTranslated; > - this.filterNeedReview = filterNeedReview; > -
> this.filterUntranslated = filterUntranslated; > - this.filterApproved =
> filterApproved; > - this.filterRejected = filterRejected; > -
> this.filterHasError = filterHasError; > - this.targetTransUnitId =
> targetTransUnitId; > - this.validationIds = validationIds; > - > +
> documentId = context.getDocument().getId(); > + offset =
> context.getOffset(); > + count = context.getCount(); > + phrase =
> context.getFindMessage(); > + filterStates = ActiveStates.builder() I have
> added some protective comments, but I also I think we should update our
> standard formatter so that it doesn't mess with wrapped builder lines by
> default. — Reply to this email directly or view it on GitHub <
> https://github.com/zanata/zanata-server/pull/28/files#r5057428 >.

> -- Sean Flanigan Senior Software Engineer Engineering - Internationalisation
> Red Hat

> —
> Reply to this email directly or view it on GitHub .