<div dir="ltr">Hi George,<div><br></div><div>Thanks! But this is if you implement an addon that generates code.</div><div><br></div><div>What if you are just using Forge. Could you somehow configure the tool with your own formatter XML to be used for example in the entities or JAX-RS resources generation?</div><div><br></div><div>Thanks,</div><div>Ivan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 26, 2015 at 3:43 PM, George Gastaldi <span dir="ltr"><<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you call Roaster.format() passing as an argument the Eclipse formatter profile XML it should format as you wish. You could implement it as a ResourceListener and monitor new resources using the ResourceMonitor feature, or after every command execution using a CommandExecutionListener.<br>
<br>
<br>
<br>
> Em 26/01/2015, às 10:04, Ivan St. Ivanov <<a href="mailto:ivan.st.ivanov@gmail.com">ivan.st.ivanov@gmail.com</a>> escreveu:<br>
<div><div class="h5">><br>
> Hi folks,<br>
><br>
> During my recent Forge talk for the Barcelona JUG I was asked whether it is possible to change the formatter that is currently used by Forge for the generated classes. At the moment the generated code is with 3 spaces indentation and with opening braces on the next line. Which is not what everybody uses.<br>
><br>
> So, how can we change that configuration?<br>
><br>
> Thanks,<br>
> Ivan<br>
</div></div>> _______________________________________________<br>
> forge-dev mailing list<br>
> <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a></blockquote></div><br></div>