Actually, i've just noticed that the ArrayHelper in the AjaxLoader
module provides the same functionality. Question though, when calling
the fromArray() method from within a JSNI method, what's the parameter
signature that should be used? I'm not having any luck with fromArray
(Lcom/google/gwt/core/client/JavaScriptObject;).

I want to transform the following:
public final native void setProperties(JsArray<Property> properties) /
*-{
    this.setProperties(
      properties
    );
}-*/;

Into the following:

public final native void setProperties(Property[] properties) /*-{
    this.setProperties(
      @net.ltgt.gwt.jscollections.client.JsArrays::fromArray(Lcom/
google/gwt/core/client/JavaScriptObject;)(properties)
    );
}-*/;

But GWT complains about not being able to find the method with that
signature. Also, why are the ellipsis used? Do they have a special
purpose in GWT?

Bobby

On Jun 24, 5:17 am, Thomas Broyer <[email protected]> wrote:
> On 24 juin, 05:18, Bobby <[email protected]> wrote:
>
> > Nice. Is the JsCollections module your own or are you referencing it
> > externally from somewhere? I'd like to add it via svn:externals.
>
> It is my own, under Apache License 2.0 (same as GWT). You'll find a
> gwt-jscollections.jar in the ZIP from the Downloads tab, containing
> only the JsCollections module. It hasn't changed on SVN since then,
> and it probably won't change unless it has a bug. So I'd rather
> recommend using the JAR instead of svn:externals.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to