Correct, you can use the Ant formatter, or if you get the Web Tools code,
there's first-class XML editor that has its own formatting policies as well.

-Nathan

> -----Original Message-----
> From: Ivan Popov [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 6:22 AM
> To: harmony-dev@incubator.apache.org
> Subject: Re: svn commit: r394890 - in
> /incubator/harmony/enhanced/classlib/trunk/modules: applet/make/common/
> archive/make/common/ auth/make/common/ awt/make/common/ beans/make/common/
> crypto/make/common/ jndi/make/common/ logging/make/common/ luni/make/commo
> 
> By default Eclipse uses its own "Eclipse [built-in]" formatter for
> Java code, which inserts tabs for indentations\. However, it's
> possible to configure it to use spaces, or just choose "Java
> convetions [built-in]" formatter, which uses spaces by default. Just
> go "Window->Preferences->Java->Code Style->Formatter" page, select
> desired formatter, press "Show" button and set appropriate indentation
> policy and tab size. I think there is no need for a special formatter.
> 
> AFAIK, for XML sources Eclipse uses Ant editor by default, which also
> uses tabs for indentation. It is possible to configure it to use
> spaces, just go to "Window->Preferences->Ant->Editor->Formatter" page
> and uncheck box "Use tab character insted of spaces".
> 
> The problem might be that the new formatter settings will be applied
> only to the newly typed text. To apply it to existing sources one need
> to reformat text using "Format" or "Correct indentation" commands in
> editor view.
> 
> Thanks.
> Ivan Popov
> Intel Middleware Products Division
> 
> -------------
> 
> On 4/19/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote:
> > What does a "formatter profile" do? (I tend to use IDEA more than
> > Eclipse - comes from being a Mac user for so many years, where Eclipse
> > was utterly unusable until recently...)  I assume the same-ish as a code
> > style in IDEA?
> >
> > In IDEA, by default "use tabs" is unchecked in the global code style of
> > the project code style with a tab size of 4. (IOW, tab key turns into 4
> > chars...)
> >
> > geir
> >
> >
> > Nathan Beyer wrote:
> > > For those who use Eclipse, this is fairly trivial to do with the Java
> > > editor. I've created a Formatter Profile (and tried to attach it),
> that can
> > > be imported and should setup this style of formatting.
> > >
> > > If you have the Web Tools, a similar format can be created for XML
> files as
> > > well.
> > >
> > > -Nathan
> > >
> > >> -----Original Message-----
> > >> From: Geir Magnusson Jr [mailto:[EMAIL PROTECTED]
> > >> Sent: Tuesday, April 18, 2006 7:01 AM
> > >> To: harmony-dev@incubator.apache.org
> > >> Subject: Re: svn commit: r394890 - in
> > >> /incubator/harmony/enhanced/classlib/trunk/modules:
> applet/make/common/
> > >> archive/make/common/ auth/make/common/ awt/make/common/
> beans/make/common/
> > >> crypto/make/common/ jndi/make/common/ logging/make/common/
> luni/make/commo
> > >>
> > >>
> > >>
> > >> Richard Liang wrote:
> > >>> Geir Magnusson Jr wrote:
> > >>>> Wait - no tabs!  no tabs!  PLEASE!
> > >>> +1. But are there any way to release our pain from TABs? :-)
> > >> Yes - most editors will convert tabs to spaces.  I suppose if we
> agree
> > >> on a "no tabs" rule, and find files w/ tabs, lets do a conversion,
> and
> > >> check it in w/o any other mods, with the commit log entry of
> "changing
> > >> tabs to spaces" or such....
> > >>
> > >> geir
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> ---
> > >>
> > >> ---------------------------------------------------------------------
> > >> Terms of use : http://incubator.apache.org/harmony/mailing.html
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: harmony-dev-
> [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to