Re: native JsType with constants

2015-12-06 Thread 'Goktug Gokdogan' via GWT Users
I didn't see it was an interface, as you pointed they implicitly static and final hence requires initialization. As you suggested, you can use abstract class as well. Actually in this particular case (EventTarget,Node etc) as there are actual corresponding JavaScript types available, it is more ap

Re: native JsType with constants

2015-12-06 Thread Thomas Broyer
On Monday, December 7, 2015 at 2:47:03 AM UTC+1, Goktug Gokdogan wrote: > > You need to remove initialization as well because the field by Java; the > point is to link to the underlying javascript. > Actually, this isn't possible here as a field in an *interface* is necessarily a constant and

Re: native JsType with constants

2015-12-06 Thread 'Goktug Gokdogan' via GWT Users
On Sun, Dec 6, 2015 at 5:46 PM, Goktug Gokdogan wrote: > You need to remove initialization as well because the field by Java; the > point is to link to the underlying javascript. > > I was going to write "the field *is not owned* by Java" > (A field that is defined by a native JsType is "native

Re: native JsType with constants

2015-12-06 Thread 'Goktug Gokdogan' via GWT Users
You need to remove initialization as well because the field by Java; the point is to link to the underlying javascript. (A field that is defined by a native JsType is "native", meaning it is linked to underlying javascript and will generate code like 'canvas.nodeType == Node.ELEMENT_NODE') On Sun

Re: Mojo's maven-gwt-plugin or Thomas's maven-gwt-plugin?

2015-12-06 Thread 'kim young ill' via GWT Users
thanx, i got further with compile and true, but now got hit by guava18. (similar to this: https://groups.google.com/forum/m/#!topic/google-web-toolkit-contributors/VbokswmVz9w ), i'll see how to overcome this On Sun, Dec 6, 2015 at 10:14 PM, Thomas Broyer wrote: > I don't see the compile, is it

Re: Mojo's maven-gwt-plugin or Thomas's maven-gwt-plugin?

2015-12-06 Thread Thomas Broyer
I don't see the compile, is it in a pluginManagement somewhere or are you using gwt-app packaging? Anyway, there should be in each . -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it

Re: Mojo's maven-gwt-plugin or Thomas's maven-gwt-plugin?

2015-12-06 Thread 'kim young ill' via GWT Users
my project structure look like this: webapp-parent -webapp-client -weapp-shared -webapp-server -webapp-utils ...some other small non gwt-related modules i come up with this: (in webapp-client module) but gwt:compile still complaining : on project webapp-client: The parameters 'moduleNa

Re: Mojo's maven-gwt-plugin or Thomas's maven-gwt-plugin?

2015-12-06 Thread Thomas Broyer
You should be able to create several executions (for the same goal and phase, but different ids and configurations) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Mojo's maven-gwt-plugin or Thomas's maven-gwt-plugin?

2015-12-06 Thread 'kim young ill' via GWT Users
hi there, i'm considering moving to gwt2.8 for (mostly because of jdk8) and switching to Thomas's plugin, i have several separate gwt modules in webapp-client-module, in the mojo plugin i can put it like this: org.codehaus.mojo gwt-maven-plugin

Re: native JsType with constants

2015-12-06 Thread rhmoller
Just removing the final keyword does not work. It still complains about the initialization. I cannot remove the initialization because that is not valid Java. The @JsOverlay solution looks OK. This line of Java ctx.fillText("Canvas is an element node: " + (canvas.getNodeType() == Node.ELEMENT_