[gwt-contrib] IncrementalGenerator recommendations
Hello contributors, I've looked for some orientation on using IncrementalGenerator but I couldn't find anything enlightening. Generator documentation is a bit better than it was before, but I still have some insecurities with IncrementalGenerator. Does anyone have some recommendations to pass? How to properly versioning the generator? How exactly the generator affects others generators? (I have cases of generators declaring types which are also generated). I would appreciate examples, use cases, etc. Thanks. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/9caa48e7-f10e-4f01-8e76-041581e57bef%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] A little change on two http.client.Request modifiers
Ok, thanks. Em segunda-feira, 9 de fevereiro de 2015 10:03:24 UTC-3, Julien Dramaix escreveu: Hi Danilo, The best is to propose the change by submitting a CL in gerrit and start the discussion there. Julien On Mon Feb 09 2015 at 12:37:01 PM Danilo Reinert danilo...@gmail.com javascript: wrote: Currently I'm using the http.client.Request class without the RequestBuilder for a project I'm working on, and I need to change the access level of two members from package to public: L148 https://gwt.googlesource.com/gwt/+/master/user/src/com/google/gwt/http/client/Request.java#148 (Ctor accepting a XMLHttpRequest, a timeout and a callback) and L233 https://gwt.googlesource.com/gwt/+/master/user/src/com/google/gwt/http/client/Request.java#233 (method to be called when the XHR ready state changes to 4). So I don't have to override the class and relying on classpath tricks, considering I'm developing a public library, I wonder if there is any problem making this change in the original class. Thanks. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/ msgid/google-web-toolkit-contributors/3979ee78-9cee- 4ac3-bd36-7d93b72fce07%40googlegroups.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/3979ee78-9cee-4ac3-bd36-7d93b72fce07%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/cb7a292c-ec6e-4ee0-a30d-74608d238df7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] A little change on two http.client.Request modifiers
Currently I'm using the http.client.Request class without the RequestBuilder for a project I'm working on, and I need to change the access level of two members from package to public: L148 https://gwt.googlesource.com/gwt/+/master/user/src/com/google/gwt/http/client/Request.java#148 (Ctor accepting a XMLHttpRequest, a timeout and a callback) and L233 https://gwt.googlesource.com/gwt/+/master/user/src/com/google/gwt/http/client/Request.java#233 (method to be called when the XHR ready state changes to 4). So I don't have to override the class and relying on classpath tricks, considering I'm developing a public library, I wonder if there is any problem making this change in the original class. Thanks. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/3979ee78-9cee-4ac3-bd36-7d93b72fce07%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] Re: Getting rid of autoboxing?
What Jens put is very reasonable and I also believe that such impactful optimizations should be optional and documented that way. Em sexta-feira, 21 de novembro de 2014 18h48min45s UTC-3, Jens escreveu: It could be conditioned on jsinterop being switched on or not, in general though, more and more compiler switch modes I think encourage lazy/bad code practices in the ecosystem. Conditioned on jsinterop would really be bad, since all js wrapper libs will soon be based on jsinterop which makes that switch literally always on. IMHO any optimization that breaks java behavior should be optional and only explicit activated by a project's dev team because the dev team needs to know the implications of these optimizations. GWT needs to be very careful with such optimizations as most people choose GWT because they are not that familiar with JS and they expect that all java behaviors carry over to JS once the app is compiled and not just most of them. Back in the days I lost quite some time figuring out why a GWT-RPC request failed to serialize and it was because browsers had started using sub pixel coordinates and GWT has treated int, float, double the same which caused trouble in a serializer. In general I am fine with such optimizations but I would prefer if all such optimizations are turned off by default and there would be a chapter about optimizations in the documentation which describes the implications of such optimizations in more detail, especially for Java devs without lots of JS background knowledge. -- J. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/3127993c-2a3b-4236-b862-2afc0046a0eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Running TestCase from IDEA
I've already set-up the gwt project in Intellij, excluding the super sources, and I can compile with success. But some testcases I can run from the IDE without any problem. Others, there's a classpath problem. See this log: Tracing compile failure path for type 'org.hibernate.jsr303.tck.tests.constraints.application.ValidationRequirementGwtTest' [ERROR] Errors in 'file:/home/reinert/gwt/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/application/ValidationRequirementGwtTest.java' [ERROR] org.hibernate.jsr303.tck.tests.constraints.application.ValidationRequirementTest cannot be resolved to a type [ERROR] Errors in 'org/hibernate/jsr303/tck/tests/constraints/application/ValidationRequirementTest.java' [ERROR] Line 45: No source code is available for type org.jboss.testharness.AbstractTest; did you forget to inherit a required module? [ERROR] Line 59: No source code is available for type org.hibernate.jsr303.tck.util.TestUtil; did you forget to inherit a required module? com.google.gwt.junit.JUnitFatalLaunchException: The test class 'org.hibernate.jsr303.tck.tests.constraints.application.ValidationRequirementGwtTest' had compile errors; check log for details ... I've already tried many things to add these missing classes to the path of the running test, but I had no success. Has anyone solved a problem like that? -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/ae462ba7-fb22-4e47-9167-6cc74d5d4006%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] JavaScriptObject marker interface
I work essentially with JSOs and I prefer to user the Interface-Impl pair pattern. It happens that sometimes I cannot use my interfaces because some components requires JavaScriptObject extensions, like JsArray. I'm missing some IsJavaScriptObject marker interface. Does that sounds reasonable? Or am I missing something? -- D. Reinert -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: IntelliJ IDEA set-up
I tried importing from eclipse files but I`m still getting 8 errors: java: duplicate class: com.google.gwt.regexp.shared.RegExp java: duplicate class: com.google.gwt.regexp.shared.SplitResult java: duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator java: duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState java: duplicate class: com.google.gwt.regexp.shared.MatchResult java: duplicate class: com.google.gwt.validation.client.impl.GwtConfiguration GwtConfiguration.java java: com.google.gwt.validation.client.impl.GwtConfiguration is not abstract and does not override abstract method addMapping(java.lang.String) in javax.validation.Configuration java: method does not override or implement a method from a supertype I've configured GWT SDK to $gwt/trunk/build/staging/gwt-0.0.0. Any IDEAs? -- D. Reinert Em quarta-feira, 15 de janeiro de 2014 06h30min03s UTC-3, Julien Dramaix escreveu: IIRC, I've just imported the projects using the eclipse files and followed the instruction in README.txt file. On Wed, Jan 15, 2014 at 10:11 AM, Thomas Broyer t.br...@gmail.comjavascript: wrote: On Wednesday, January 15, 2014 5:52:54 AM UTC+1, Danilo Reinert wrote: Has anyone set-up gwt project in IDEA 12+ ? I know Ray Cromwell has, among others most probably. Maybe he can share some files somewhere? In the (near?) future, we'll migrate out of Ant to make it easier to auto-configure your IDE (either Eclipse or IntelliJ, possibly others). You can try out Ray's gradle-build branch: https://github.com/cromwellian/gwt-sandbox/tree/gradle-build I've been working on the Gradle build on my side, based on Ray's scripts and with the intent to first mimick the Ant build, but haven't tested the IntelliJ configuration (yet): https://github.com/tbroyer/gwt-sandbox/tree/gradle-build -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.comjavascript: . For more options, visit https://groups.google.com/groups/opt_out. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] Re: IntelliJ IDEA set-up
I'm unable to avoid java compiler confusion related to super classes. -- D. Reinert Em quarta-feira, 15 de janeiro de 2014 12h38min53s UTC-3, Danilo Reinert escreveu: I tried importing from eclipse files but I`m still getting 8 errors: java: duplicate class: com.google.gwt.regexp.shared.RegExp java: duplicate class: com.google.gwt.regexp.shared.SplitResult java: duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator java: duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState java: duplicate class: com.google.gwt.regexp.shared.MatchResult java: duplicate class: com.google.gwt.validation.client.impl.GwtConfiguration GwtConfiguration.java java: com.google.gwt.validation.client.impl.GwtConfiguration is not abstract and does not override abstract method addMapping(java.lang.String) in javax.validation.Configuration java: method does not override or implement a method from a supertype I've configured GWT SDK to $gwt/trunk/build/staging/gwt-0.0.0. Any IDEAs? -- D. Reinert Em quarta-feira, 15 de janeiro de 2014 06h30min03s UTC-3, Julien Dramaix escreveu: IIRC, I've just imported the projects using the eclipse files and followed the instruction in README.txt file. On Wed, Jan 15, 2014 at 10:11 AM, Thomas Broyer t.br...@gmail.comwrote: On Wednesday, January 15, 2014 5:52:54 AM UTC+1, Danilo Reinert wrote: Has anyone set-up gwt project in IDEA 12+ ? I know Ray Cromwell has, among others most probably. Maybe he can share some files somewhere? In the (near?) future, we'll migrate out of Ant to make it easier to auto-configure your IDE (either Eclipse or IntelliJ, possibly others). You can try out Ray's gradle-build branch: https://github.com/cromwellian/gwt-sandbox/tree/gradle-build I've been working on the Gradle build on my side, based on Ray's scripts and with the intent to first mimick the Ant build, but haven't tested the IntelliJ configuration (yet): https://github.com/tbroyer/gwt-sandbox/tree/gradle-build -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] Run single GWTTestSuite on trunk
How could I run a single TestSuite (or module) of gwt/trunk using ant? -- D. Reinert -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] IntelliJ IDEA set-up
Has anyone set-up gwt project in IDEA 12+ ? -- D. Reinert -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] JsArrayList - ListT implementation for OverlayTypes (wrapping JsArrayT)
Em sexta-feira, 22 de novembro de 2013 16h16min06s UTC-3, Goktug Gokdogan escreveu: On Thu, Nov 21, 2013 at 6:46 PM, Danilo Reinert danilo...@gmail.comjavascript: wrote: Hi all, Finally I've made an acceptable implementation of ListT for JavaScriptObjects. Thanks to T. Broyer's suggestion on this topichttps://groups.google.com/d/msg/google-web-toolkit/_8X9WPL6qwM/C8GfwAM0ItAJ I've achieved a performant solution for it. Can you give more details? Well, I've implemented all required methods of the List contract, performing over a JsArray instead of creating a new ArrayList and populating it. You can instantiate my JsArrayList implementation passing a JsArray as argument and it works as expected. My main test has been the CellTable widget. I'm using this JsArrayList into the ListDataProvider and everything is working ok. The only not supported methods yet are: addAll (both) removeAll retainAll For implementing the iterators I've based my implementation on public source of ArrayList. The main problem was the toArray() method. Using this classhttps://code.google.com/p/gwt-in-the-air/source/browse/trunk/src/net/ltgt/gwt/jscollections/client/JsArrays.java, It's possible to convert a JsArray to a Object[] without iterating over it. The contract of toArray requires copy. How do you exactly handle that? I'm using slice to produce a shallow copy of the array. I guess this approach meets the contract. What do you think? Now I finally can receive a json array from my RESTful backend application and throw it into a CellTable directly. In order to make it possible I had to use the above mentioned JsArrays class and an own extension of JsArray (used only as a internal of the JsArrayList). Would it be interesting for GWT core? -- D. Reinert -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.comjavascript: . For more options, visit https://groups.google.com/groups/opt_out. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.