Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 40092 invoked from network); 19 Mar 2006 13:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Mar 2006 13:46:24 -0000 Received: (qmail 23788 invoked by uid 500); 19 Mar 2006 13:46:20 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 23725 invoked by uid 500); 19 Mar 2006 13:46:20 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 23710 invoked by uid 99); 19 Mar 2006 13:46:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 05:46:20 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 64.74.244.71 is neither permitted nor denied by domain of geir@pobox.com) Received: from [64.74.244.71] (HELO chi.mobile-health-diary.com) (64.74.244.71) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 19 Mar 2006 05:46:19 -0800 Received: (qmail 10469 invoked from network); 19 Mar 2006 13:45:55 -0000 Received: from ool-43560634.dyn.optonline.net (HELO ?192.168.1.100?) (geir@67.86.6.52) by b014.internal.mobile-health-diary.com with SMTP; 19 Mar 2006 13:45:55 -0000 Message-ID: <441D6041.3000203@pobox.com> Date: Sun, 19 Mar 2006 08:44:33 -0500 From: Geir Magnusson Jr Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: reformatting in Eclipse References: <44191A1F.5050608@gmail.com> <441936AF.8040002@googlemail.com> <4419AA3B.6050708@apache.org> <441A8334.4050305@googlemail.com> <441AE45B.6040604@apache.org> <441B13A8.8010405@gmail.com> In-Reply-To: <441B13A8.8010405@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N just don't svn commit after that :) Tim Ellison wrote: > (at the risk of encouraging him...) > > You can also reformat entire projects in a single click. > Select the project, then Source->Format menu option. > > Enjoy, > Tim > > Stefano Mazzocchi wrote: >> Oliver Deakin wrote: >>> Stefano Mazzocchi wrote: >>>> Oliver Deakin wrote: >>>>> Hi Richard, >>>>> >>>>> If you go to Window->Preferences, then look in >>>>> General->Compare/Patch there is a tick box that says "Ignore white >>>>> space". Ticking this may solve some of your problems. However >>>>> formatting that splits a single line into multiple lines (where the >>>>> line length is determined to be too long) will still appear as diffs. >>>> Oliver, >>>> >>>> I strongly doubt subclipse reacts to that preference, the problem is >>>> not showing the diffs in eclipse, is sending them over the wire to svn. >>>> >>> yes, you're right Stefano - any patch generated will not take notice >>> of this option. I had hoped that extra options were passed to the svn >>> diff to ignore whitespace, but sadly not. >> I have found a way to turn tabs off from eclipse java editor!!! yey!! >> >> [note: for those who knew this already, please tolerate my previous >> ignorance and my current excitement] >> >> Here we go: >> >> Windows -> Preferences -> Java -> Code Style -> Formatter >> >> Any other "editing" section does *NOT* influence the java code formatter >> (for whatever reason). >> >> You can modify the formatter (by clicking on "Show...) or I've attached >> the profile that I use for code generation, you can import it into your >> code formatter (by clicking on "Import") >> >> Then, after you have changed your formatter, in any java window, you can >> type: >> >> ctrl-A -> selects all >> ctrl-I -> reformats everything using the new formatting rules >> >> NOTE: if you don't like the formatting preferences and wish to change >> them remember "svn revert" is your friend. >> >> NOTE2: use apple-A and apple-I on mac >> >> Hope this helps. >> >> >> ------------------------------------------------------------------------ >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >