camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Re: Code formatter - Eclipse / checkstyle
Date Tue, 28 Apr 2009 08:25:14 GMT
Hi Gert,

I propose to reorganize the content of /etc/eclipse like structure proposed
hereunder otherwise this is not really trivial for a non-initiated to
understand where files must be imported in Eclipse (+ wiki page probably)

1) /etc/eclipse/templates/codeformat (= Eclipse / Preferences / Java / Code
Style / Formatter)

codetemplates.xml

2) /etc/eclipse/templates/java (= Eclipse / Preferences / Java / Editor /
Templates)

camel_java_templates.xml

3) /etc/eclipse/templates/java (= Eclipse / Preferences / XML / XML Files /
Editor / Templates)

camel_xml_templates.xml

4) /etc/eclipse/checkstyle (= Plugin CheckStyle)

template.checkstyle-config.xml
org.eclipse.jdt.core.prefs

Remark : I propose also to remove unnecessary files like
ActiveMQCodeFormatter.xml, ...

Regards,

Charles

On Tue, Apr 28, 2009 at 9:54 AM, Gert Vanthienen
<gert.vanthienen@gmail.com>wrote:

> Charles,
>
> I think you are looking for the files in etc/eclipse.
> I guess we should configure the maven-eclipse-plugin to generate the
> correct formatter description in the project settings while doing a
> mvn eclipse:eclipse, so these settings happen automatically.
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> 2009/4/28 Charles Moulliard <cmoulliard@gmail.com>:
> > Hi Claus,
> >
> > I already have a look to the files : camel-eclipse-*** but the content of
> > these files is completely different from what we have in the eclipse 3.4
> > templates :
> >
> > <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> > <templates>
> >    <template autoinsert="false" context="java" deleted="false"
> > description="non-externalized string marker" enabled="true"
> > id="org.eclipse.jdt.ui.templates.non-nls"
> > name="nls">//$$NON-NLS-${N}$$</template>
> >
> > So I don't know how such files are used, for which version of Eclipse,
> ....
> > ???
> >
> > Regards,
> >
> > Charles
> >
> > On Tue, Apr 28, 2009 at 9:26 AM, Claus Ibsen <claus.ibsen@gmail.com>
> wrote:
> >
> >> Hi
> >>
> >> Take a look in the camel source. There should be some checkstyle files
> >> that Eclipse can use.
> >>
> >> In this folder
> >> /buildingtools/src/main/resources$
> >>
> >>
> >>
> >> On Tue, Apr 28, 2009 at 9:19 AM, Charles Moulliard <
> cmoulliard@gmail.com>
> >> wrote:
> >> > Hi,
> >> >
> >> > I'm looking for a template that I can use in Eclipse Ganymede 3.4
> >> allowing
> >> > to format my code according to checkstyle rules which are supported by
> >> > Apache Camel community.
> >> >
> >> > Is such template existing ?
> >> >
> >> > Regards,
> >> >
> >> > Charles Moulliard
> >> > Senior Enterprise Architect
> >> > Apache Camel Committer
> >> >
> >> > ****************************************
> >> > blog http://cmoulliard.blogspot.com
> >> >
> >>
> >>
> >>
> >> --
> >> Claus Ibsen
> >> Apache Camel Committer
> >>
> >> Open Source Integration: http://fusesource.com
> >> Blog: http://davsclaus.blogspot.com/
> >> Twitter: http://twitter.com/davsclaus
> >> Apache Camel Reference Card:
> >> http://refcardz.dzone.com/refcardz/enterprise-integration
> >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message