Re: Debug library code in eclipse

2017-04-11 Thread Magnus
There is one big disadvantage when doing it like this: You cannot edit the library source code! Eclipse shows the library code as readonly, since it has taken it from lib-xxx-sources.jar. So when you debug into the library code and then want to make a change there, you have to open the "real" so

Re: Debug library code in eclipse

2017-04-11 Thread Magnus
Now Jens' solution works for me. I had to do Maven -> "Update Project" and "Refresh" several times until it worked #-) Thanks! Magnus -- 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: Debug library code in eclipse

2017-04-11 Thread Juan Pablo Gardella
Using eclipse you don't need do that. Simply include all the projects (including pom artifact if you have one) and configure by using "workspace resolution". Check https://books.sonatype.com/m2eclipse-book/reference/eclipse.html On Tue, 11 Apr 2017 at 14:06 Magnus wrote: > Hi Jens, > > I added t

Re: Debug library code in eclipse

2017-04-11 Thread Magnus
Hi Jens, I added the plugins to pom.xml and configured eclipse to download the sources. I did a mvn install for the lib and I can verify that the files *-sources.jar and *.-javadoc.jar are created. But when starting a debug session for the app in eclipse, I still get the message "Source not fou

Re: Compilation of a large GWT application?

2017-04-11 Thread Marcin Okraszewski
Good hint. In our case we don't use GWT-RPC, but AutoBeans for REST. Though looking into compile report, it seems it wasn't best choice either, as it seems to generate a lot of code too :-( Will need to look after a replacement. JsInterop would be best here ... I wish it supported collections..

Re: Trouble understanding JsInterop

2017-04-11 Thread Thomas Broyer
On Tuesday, April 11, 2017 at 4:53:24 PM UTC+2, Philipp Gloor wrote: > > Where do I use $wnd.test.JsOpClass()? It doesn't work within

Re: Compilation of a large GWT application?

2017-04-11 Thread Juan Pablo Gardella
Also check the classes that are used by GWT-RPC. For example if those classes are using List instead of ArrayList for example, will generate more JS output. On Tue, 11 Apr 2017 at 12:13 Jens wrote: > > Our optimized output with collapse all is 23 MB. Things are reused though, > which is visible

Re: Compilation of a large GWT application?

2017-04-11 Thread Jens
> Our optimized output with collapse all is 23 MB. Things are reused though, > which is visible in left-over taking 6 MB. > How large is a single permutation (= not using collapse-all)? Our app is roughly 300KLOC and results in roughly 6-7MB optimized JS for a single permutation when doing a

Re: Trouble understanding JsInterop

2017-04-11 Thread Vassilis Virvilis
It should work but you also have to make sure that GWT code is loaded. So after the crash - hit F12 go to console and try to reference $wnd.test.JsOpClass or put a console print inside onModuleLoad to see when GWT code is loaded: before or after the crash Vassilis On Tue, Apr 11, 2017 at 5:52

Re: Compilation of a large GWT application?

2017-04-11 Thread Marcin Okraszewski
Hi, Thanks. That sounds much more doable. Unfortunately we don't have such natural big logic to extract. Everything is very mych spread around across different views. The views are in fact pretty much separate, to the extent we can compile different set of views for development purposes (super d

Re: Trouble understanding JsInterop

2017-04-11 Thread Philipp Gloor
Where do I use $wnd.test.JsOpClass()? It doesn't work within

Re: Debug library code in eclipse

2017-04-11 Thread Magnus
Thanks, I'll try it out. But besides these two solutions: What about simply adding the library eclipse project as a dependent project to the application eclipse project? Magnus -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from t

Re: Clicks taking over entire window

2017-04-11 Thread Frank
I think you need to provide some extra information (like code). Because I don't really understand what is happening. -- 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: Trouble understanding JsInterop

2017-04-11 Thread Vassilis Virvilis
Hi, 1. With jsinterop you won't need any JSNI normally. 2. If you have older JSNI code that calls your new code (can't really happen) you can a) use new $wnd.test.JsOpClass(); with -generateJsInteropExports as Thomas suggested b) use the old syntax found here http://www.gwtproject.org/doc/late

Re: Trouble understanding JsInterop

2017-04-11 Thread Philipp Gloor
NB: I changed the namespace from test to pdf -> that's why it is now $wnd.pdf is undefined. On 11 April 2017 at 16:29, Philipp Gloor wrote: > Can I access Classes and Methods decorated with JsType/JsMethod from > anywhere within GWT granted I'm inside a JSNI block? Or is it restricted to > packa

Re: Trouble understanding JsInterop

2017-04-11 Thread Philipp Gloor
Can I access Classes and Methods decorated with JsType/JsMethod from anywhere within GWT granted I'm inside a JSNI block? Or is it restricted to packages? I added the -generateJsInteropExports to the run configuration arguments but when I try to create a new object JsOpClass() it tells me $wnd.pdf

Re: Slow debugging with SDM

2017-04-11 Thread Kirill Prazdnikov
The same issue we have in IDEA GWT debugger. Debugging GWT apps consumes 100% CPU all the time in Chrome. It is slightly faster using the latest Chrome Canary. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: Compilation of a large GWT application?

2017-04-11 Thread Kirill Prazdnikov
We have detached a complex script projectional editor with completion. The interface was very easy - to provide containing element, context for completion, the script itself and callbacks for saving the scripts. -- You received this message because you are subscribed to the Google Groups "GWT

Re: Trouble understanding JsInterop

2017-04-11 Thread Thomas Broyer
On Tuesday, April 11, 2017 at 10:43:06 AM UTC+2, Philipp wrote: > > If I have a java class and I mark it with @JsType I create a contract > between Java and Javascript that I can use this class with it's given Java > name in Javascript - is this correct? > > package com.test.workertest.shared;

Trouble understanding JsInterop

2017-04-11 Thread Philipp
If I have a java class and I mark it with @JsType I create a contract between Java and Javascript that I can use this class with it's given Java name in Javascript - is this correct? package com.test.workertest.shared; import com.google.gwt.core.shared.GWT; import jsinterop.annotations.*;