Hey Ivan!<br><br>You&#39;re correct, the JDT probably doesn&#39;t have a convenient method for this (it doesn&#39;t have much that is convenient,) but what are your proposed changes? <br><br>~Lincoln<br><br><div class="gmail_quote">
On Sat, Jul 21, 2012 at 4:04 PM, Ivan St. Ivanov <span dir="ltr">&lt;<a href="mailto:ivan.st.ivanov@gmail.com" target="_blank">ivan.st.ivanov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi folks,<div><br></div><div>I wonder is it possible to add a field to a JavaClass and to set an array as its type. The setType(String) method does not support arrays yet and I don&#39;t want to use the other two variants of this method (taking Class and JavaResource parameters).</div>

<div><br></div><div>I looked at the mentioned method (setType(String)). And found a suitable place where I could add the support for arrays. However, I&#39;m afraid that JDT&#39;s AST class does not have a convenient newArray....() method.</div>

<div><br></div><div>Or maybe I&#39;m missing something?</div><div><br></div><div>Cheers,</div><div>Ivan</div>
<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><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;<br>