Re: Where can I find gwt-servlet.jar source jar?

2013-03-20 Thread Frank Hossfeld
If you only want to see the code, take a look here:

http://grepcode.com/file/repo1.maven.org/maven2/com.google.gwt/gwt-servlet/2.5.0/com/google/gwt/place/shared/PlaceController.java


Am Dienstag, 19. März 2013 22:41:39 UTC+1 schrieb Michael Prentice:

 The source is included with gwt-dev.jar and gwt-user.jar and likely some 
 others. But it is not included with gwt-servlet.jar. I've done a number of 
 Google searches and searched here on Google Groups. But I haven't found an 
 answer to this specific issue.

 Specifically, I am trying to get at the JavaDoc for 
 com.google.gwt.place.shared.PlaceController.Delegate atm.

 Thank you.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Compiler exception after upgrade to 2.5.1

2013-03-20 Thread Thomas Broyer
Delete the gwt-unitCache and try again.

On Wednesday, March 20, 2013 3:27:16 AM UTC+1, mdwarne wrote:

 Hi,

 My project compiles and runs OK with GWT 2.5.0.
 After upgrading to version 2.5.1 Compiling the project causes an exception 
 (see below)

 This is using Java EE 6 (Mac OSX)

 Any ideas?
 Thanks,
 Mike


[ERROR] Unexpected internal compiler error
 java.lang.RuntimeException: Unexpected IOException on in-memory stream
 at 
 com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:360)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:670)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:983)
 at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:531)
 at 
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:637)
 at 
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
 at com.google.gwt.dev.Compiler.run(Compiler.java:232)
 at com.google.gwt.dev.Compiler.run(Compiler.java:198)
 at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
 at 
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
 at 
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
 at com.google.gwt.dev.Compiler.main(Compiler.java:177)
 Caused by: java.io.InvalidClassException: 
 com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream 
 classdesc serialVersionUID = -1052417216019896795, local class 
 serialVersionUID = -8155793964565947646
 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560)
 at 
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at 
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at java.util.ArrayList.readObject(ArrayList.java:593)
 at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
 at 
 java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1852)
 at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at 
 com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:203)
 at 
 com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:358)
 ... 14 more
  


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Where can I find gwt-servlet.jar source jar?

2013-03-20 Thread Jens
gwt-servlet.jar is a subset of gwt-user.jar and as along as you have 
gwt-user.jar in your classpath you don't need to have gwt-servlet.jar in 
your classpath (although it needs to be deployed). So you can either 
exclude gwt-servlet.jar in Eclipse or you make sure that gwt-user.jar is 
before gwt-servlet.jar in your classpath. That way you will see 
sources/JavaDoc in your IDE (provided from gwt-user.jar).

If you use maven you can simple download the sources through maven. They 
can also be found 
here: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22gwt-servlet%22

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: PopupPanel.center() not centering content?

2013-03-20 Thread Thomas Broyer
This is strange, I'd swear it used to work…
It must then be a lower-level change, as I don't see anything suspicious in 
the latest changes to PopupPanel or any ancestor class.

On Tuesday, March 19, 2013 9:09:33 PM UTC+1, Ed wrote:

 An example:
 Attacheded:  the FF (19,02), Chrome (24), IE (10) screenshot (I hope the 
 attachment work).
 Code:
 ---
 final PopupPanel popup = new PopupPanel(true);
  popup.setWidget(getEnsureLogin());
 popup.center();
 

 I am not sure if it's the browsers that changed anything.
 I remember that this was like this in the past also. In my own ModalPanel 
 class that shows a glasspanel and some other popup  (animtation) stuff, I 
 always center in a deferred command, other wise I couldn't get it to center 
 correctly..

 What's your experience?
 - Ed


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: PopupPanel.center() not centering content?

2013-03-20 Thread Jens


 This is strange, I'd swear it used to work…
 It must then be a lower-level change, as I don't see anything suspicious 
 in the latest changes to PopupPanel or any ancestor class.


We use PopupPanel.center() for showing wizards. Also we calculate optimal 
wizard sizes before first showing the wizard and also inside 
Window.addResizeHandler() and finally calling center() after the new wizard 
size has been calculated and applied to the PopupPanel (setPixelSize()). We 
do all this without a deferred command and haven't had an issue with it.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: PopupPanel.center() not centering content?

2013-03-20 Thread Thomas Broyer
I suppose Ed does not set the popup size explicitly and relies on the 
intrinsic size of the content. And strangely getOffsetWidth() returns 0 so 
the top-left corner is positioned at the center of the viewport (and then 
only the popup gets its actual intrinsic dimensions, but it's too late; 
but getOffsetWidth should have triggered a reflow AFAICT, this is why I 
don't understand why it doesn't work)

On Wednesday, March 20, 2013 10:50:42 AM UTC+1, Jens wrote:


 This is strange, I'd swear it used to work…
 It must then be a lower-level change, as I don't see anything suspicious 
 in the latest changes to PopupPanel or any ancestor class.


 We use PopupPanel.center() for showing wizards. Also we calculate optimal 
 wizard sizes before first showing the wizard and also inside 
 Window.addResizeHandler() and finally calling center() after the new wizard 
 size has been calculated and applied to the PopupPanel (setPixelSize()). We 
 do all this without a deferred command and haven't had an issue with it.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: PopupPanel.center() not centering content?

2013-03-20 Thread Ed Bras
 This is strange, I'd swear it used to work…
Could you please try this and see if you have the same result as me?

 I suppose Ed does not set the popup size explicitly and relies on the
intrinsic size of the content.
Yes, exactly, I don't calculate anything (just like the code shows). I
don't even see why/how I want to do this

Also we calculate optimal wizard sizes before first showing the wizard
@Jens: what do you exactly mean by this? (how/why)
Doesn't CSS contain the w/h value's,  or doesn't this depend on your
content w/h.. (the intrinsic dimensions like Thomas mention)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: PopupPanel.center() not centering content?

2013-03-20 Thread Jens
I just changed my code a bit and removed any explicit sizes on the 
PopupPanel itself. Now when adding a Label without any size or something 
else with explicit sizes everything still works as expected without using 
any deferred command.

@Ed: We use LayoutPanel inside PopupPanel so either the PopupPanel or the 
LayoutPanel needs an explicit size. We choose to give the PopupPanel an 
explicit size. The size itself is in pixel (small wizards, large wizards, 
etc.) and because we want the wizard to always stay at the center of the 
screen and the wizard should always fit inside the visible browser window 
during window resizes we have to recalculate its pixel size and then 
calling center() again. 
We mainly did that for iPad compatibility so that the wizard does not have 
an odd position/size when you rotate the iPad from landscape to portrait or 
vice versa while the wizard is visible.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: XMLParser Problems

2013-03-20 Thread skippy
Thanks for the response.  I have one more question.

I am reusing assets from a XSLT Translation application in a GWT
application.
I want to reuse the XML Page layouts and XML Data payloads.

My question is, can I use a more Xpath like parsing?
Like first parse the Filter/column nodes.
Then parse the heading/column nodes.
Then parce the list/column nodes.

This would allow me o control what parts of the xml layout go into
what part to the GWT Flextable.

Thanks for your help.

On Mar 18, 12:40 am, Andy King andyk...@greatlogic.com wrote:
 First, it appears that your XML is invalid ... your last child element has
 a beginning tag of ACCT005 and an ending tag of vlst.  Assuming that
 this isn't your only problem, I think you are just not getting the child
 nodes of the item element, but instead you are getting the child nodes of
 the document (which would be the item element node).  This is how I'd
 fulfill your requirements:

   final Document doc = XMLParser.parse(item);
   final Element itemElement =
 (Element)doc.getElementsByTagName(item).item(0);
   Node node = itemElement.getFirstChild();
   while (node != null) {
     if (node.getNodeType() == Node.ELEMENT_NODE) {
       // node is an account element
     }
     node = node.getNextSibling();
   }

 Note that not all child nodes will necessarily be Element nodes ... hence
 the check for NodeType == Node.ELEMENT_NODE.

 Andy



 On Thursday, March 14, 2013 6:02:13 AM UTC-7, skippy wrote:

  I am trying to load this xml file into a hashmap or list using XMLParser.
  What ever I try, I keep getting a node list of 1 with all the nodes in it.

  Here is an example of the xml file:
  ...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Detecting Drag and Drop on a RichTextArea

2013-03-20 Thread kim . mertens
I found a solution adopting 
http://stackoverflow.com/questions/10317644/how-to-make-gwts-richtextarea-detect-content-pasting-and-cutting-events

IFrameElement iFrame = IFrameElement.as(richTextArea.getElement());


 //listen for paste event
 addDropHandler(iFrame);

 /**
  * Add a listener for the paste event
  * @param iframe
  */
 private native void addDropHandler(IFrameElement iframe)
 /*-{
 if(iframe == null)
 return;

 var _this = this;

 var pasteFunction = function(e)
 {
 _this.@com.yourpackagepath.YourClass::handleDrop()();
 }
 if (iframe.contentWindow)
 iframe.contentWindow.addEventListener('drop', pasteFunction, true);

 }-*/;

 public void handleDrop() {
 Window.alert(Drop!);
 }



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Where can I find gwt-servlet.jar source jar?

2013-03-20 Thread Michael Prentice
OK, thank you. I verified that I do not have swt-servlet.jar in my 
classpath. I also verified that I have gwt-user.jar in my classpath and 
that it is set to point to itself for sources. I don't use Maven. It seems 
like Eclipse figured things out now as I'm getting JavaDoc and can browse 
to source.


On Wednesday, March 20, 2013 5:23:45 AM UTC-4, Jens wrote:

 gwt-servlet.jar is a subset of gwt-user.jar and as along as you have 
 gwt-user.jar in your classpath you don't need to have gwt-servlet.jar in 
 your classpath (although it needs to be deployed). So you can either 
 exclude gwt-servlet.jar in Eclipse or you make sure that gwt-user.jar is 
 before gwt-servlet.jar in your classpath. That way you will see 
 sources/JavaDoc in your IDE (provided from gwt-user.jar).

 If you use maven you can simple download the sources through maven. They 
 can also be found here: 
 http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22gwt-servlet%22

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Not able to store JSON data in offline mode( SQLLite + MGWT)

2013-03-20 Thread Michael Prentice
How big is your database? i.e. how much data did you put in there before 
this call failed?


On Monday, March 18, 2013 10:51:52 AM UTC-4, rahul@darkhorseboa.com 
wrote:

 I am using Mgwt and SQLLite for andriod development. I am not able to 
 store the JSON Data in offline mode. I am getting following error.

 As I m new to Mgwt Plz Help.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Saving results from GWT-RPC call on client

2013-03-20 Thread Xi
Hi, 

I've made a framework to do the serialization/deserialization of object 
in client side. Just like monkeyboy's solution, it is based on GWT RPC's 
serialization/deserialization. *But the difference is*, my framework is 
more like *an extension of localStorage/sessionStorage*, that provides the 
possibility of *put/get an object item **directly into/from 
localStorage/sessionSotrage*.

You can find it here : *http://code.google.com/p/gwt-storage/ *

This solution is already used in our applications in production. So, if 
you have any question (performance, serialization/deserialization timing, 
...), I would be very pleased to exchange with you. 

Hope this helps.
Best regards.

 Xi

Le mercredi 10 octobre 2012 07:13:20 UTC+2, JeanV a écrit :

 I was wondering if there's anyway to save the returned results from an RPC 
 call to an HTML5 enabled browser. Basically the only way I have found would 
 be to convert the results into strings and use LocalStorage to save them to 
 the browser. I guess my question then would be how can IsSerializable java 
 objects be converted to a string and back.
 Any help would be appreciated.

 Jean



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Code splittingmysteries

2013-03-20 Thread Ashton Thomas
I would also be interested in any updates to this as I am currently working 
on the async aspect or my app. (I wouldn't even know how to 
identify anomalies due to a lack of experience here)

I also remembrer having the same questions with soyc

-at 


On Wednesday, March 20, 2013 7:53:11 AM UTC-4, Ed wrote:

 After upgrading from 2.5.0 to 2.5.1 all of a sudden my code splitting 
 result is different:
 + Code fragments are bundles together which weren't before.
 + I have a left over fragment, which was 0 (see attachment).

 What changed concerning code splitting? Can't find any in the release 
 notes.

 A few observations:
 1) All my components have a singleton facade that contains a method to 
 create the package protected  controller implementation that is called 
 through split point (GWT.runAsync()).
 In this way I have a LoginControllerDefault that is present in the left 
 over, but this package protected controller ONLY appears in the LoginFacade.
 In the same way I have SubscribeControllerControllerDefault that appears 
 only in SubscribeControllerFacade...
 What suprised me is that they appear both in the same code split, namely 
 #30 (see screenshot attachment).

 No idea why.
 I moved the creation of  LoginControllerDefault  from the Facade 
 directly (see below for code snippets) in to the runAsync, but that had 
 no effect.
 I also removed the LoginControllerDefault completely which had little 
 effect on the left-over

 When I read the soyc report (automatically build during maven nightly 
 build), It doesn't really help me. This page is hard to understand, like 
 this page:
soycReport/compile-report/leftoverStatus-0.html

 Even worse,  from this page you can go deeper  to see why a class is in a 
 certain split point but that results in a page not found (404).
 That is, the following page isn't present. BTW: the page also resulted in 
 a 404 in previous GWT releases.
  soycReport/compile-report/methodDependencies-total-0.html
 Why?

 I played with the nr of fragmentCount, but that has little effect, see 
 the attached screenshots:
 + fragmentCount = 6: screenshot with 4 splits points.
 + fragmentCount = 8: screenshot with 6 splits points.
 + fragmentCount = 10: screenshot with 7 splits points.

 Below a code snippet that shows how I create the controllers in split 
 point #30 (see screenshot). It concerns the creation of the 
 LoginControllerDefault and SubscribeInfoControllerDefault.
 Note: I don't find it the most elegant code solution, but before I passed 
 in a Creator interface that was used in GWT.runAsync(), but that didn't 
 work (big left over). I posted that in the forum and it was mentioned that 
 it could be that it is because the code removal is run after the split 
 point code, and that is probably why it doesn't work and that Ray still 
 have a look in to code split code that need to be optimized.

 How to solve/analyze these issues?
 What are your experiences?
 Any suggestions are more then welcome as I am out of ideas and find it 
 hard to solve this, but it frustrates me ;)


 Loading and creating the the Login and SubscribeInfo controller:
 -
 The code snippet that is called by the LoginControllerBuilder to load the 
 Login controller:
 public void create(final AsyncCallbackLoginController callback) {
 getLazyLoader().createInCodeSplitGeneral30(LoginController.class, 
 callback);
 }


 The controller loading code (in other class):
 public T void createInCodeSplitGeneral30(final ClassT type, final 
 AsyncCallbackT callback, final SimpleMediator mediator) {
 GWT.runAsync(new RunAsyncCallback() {
 public void onSuccess() {
 callback.onSuccess(createCodeSplitGeneral30(type, mediator));
 }

 public void onFailure(final Throwable reason) {
 callback.onFailure(reason);
 }
 });
 }

 @SuppressWarnings(unchecked)
 private T T createCodeSplitGeneral30(final ClassT type, final 
 SimpleMediator mediator) {
 if (isType(type, LoginController.class)) {
 return (T) LoginFacade.getInstance().createController();
 }
 else if (isType(type, SubscribeController.class)) {
 return (T) SubscribeFacade.getInstance().createController();
 }
 else {
 throw GenExpClass.createExceptionVarMsg(getClass(), ERR_ID + Gn30, type);
 }
 }




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Reed xml file inside my project (src)

2013-03-20 Thread Crease
Hi,

I have 2 doubt about gwt:

- I´m developing a app and it have to read a xml file that it´s inside 
project, but I put this: 

Document doc = docBuilder.parse(new File(stringPath));

Document doc = docBuilder.parse(new File(stringPath));
being stringPath:

URL path = 
nameClase.class.getProtectionDomain().getCodeSource().getLocation();
String stringPath = path.toString();
stringPath = stringPath.substring(5);
int num = stringPath.indexOf(classes);
stringPath = stringPath.substring(0, num + 8);
stringPath += namePackage/nameFile.xml;

With this I get the route where It´s xml file. If I do this in my local 
machine is ok, but when I do a .war file only I select src folder and after 
with ant file I create my .war file, then when I deploy my gwt project in 
tomcat I don´t get do it ok, because the route that catch is:

machine/war/WEB-INF/classes/package/nameFile.xml

But when I do war file I don´t obtain the war/WEB-INF folder because I do a 
.jar the src folder.

How can I get the route the xml file? This xml file is inside src folder.

 - Other doubt that I have is how do I create a log file? somebody have a 
example where I can see it

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to change the locale at runtime

2013-03-20 Thread Honza Rames
Hi, you can't do it in runtime since each locale will produce different 
permutations, but what you can do is set the locale parameter of the URL. 
You can use UrlBuilder like this:

UrlBuilder url = Window.Location.createUrlBuilder();
url.setParameter(locale, locale);
Window.Location.replace(url.buildString());

If you need true runtime switching you will need to implement more complex 
approach.

On Monday, March 18, 2013 9:53:31 AM UTC+1, sahli@gmail.com wrote:

 Hi, i'm beginner in gwt, how can i  change the locale language at runtime 
 like the 
 http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCheckBox, 

 thank you, 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: RequestFactoryEditorDriver (or any type of Editor) and ValueChangedEvent

2013-03-20 Thread El Mentecato Mayor
I think you can do what you want with ValueAwareEditor:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/editor/client/ValueAwareEditor.html

On Thursday, March 14, 2013 12:34:09 PM UTC-4, Jonathan Jones wrote:

 Hi all,

 I am new to GWT 2.5 so please forgive me.

 I have successfully managed to bind my Editor (RequestFactoryEditorDriver) 
 to my Proxy objects and am saving away etc all very well.

 However, I would really like to listen for change events (on the proxy or 
 any of the fields in my delegate). This would allow me to check the 
 driver.isDirty()  and subsequently enable or disable my save button.

 I have played with HasValueChangeHandlers,ValueChangeHandler... added 
 ValueChangedEvent to my event bus but I'm not having any joy.

 Any ideas would be greatfully appreciated.

 Thanks in advance.

 JJ


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Styling a custom CellList

2013-03-20 Thread Carl
(replied for those who find this old post)

in your css file add a line before the css definition for X:
@external X;

This tells GWT not to obfuscate the style name (where X is the style name)
Don't include the dot prefix and end the line with a semi-colon.

e.g., 

@external header;
.header {background:purple;}


On Wednesday, 1 February 2012 08:02:50 UTC, Olivier Scherler wrote:

 Hello everybody, 

 I am having a tough time wrapping my mind around CSS resources. I have a 
 subclass of AbstractCell that I want to style depending on its selected 
 state. I found that I can subclass (or rather 
 subinterface) CellList.Resources, define a CSS file 
 with @Source(MyCellListResources.css) and use the .cellListSelectedItem 
 selector in that file.

 However, when I do this, the cellListSelectedItem becomes obfuscated, so I 
 cannot use it in my main stylesheet linked in the host HTML file, and 
 modifying MyCellListResources.css requires rebuilding the project. That 
 won’t do: styling is done by designers, not programmers; it must not 
 require building the project and modifications should be applied with a 
 simple page refresh.

 Any hint on how I can achieve this?

 Regards,
 Olivier


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: XMLParser Problems

2013-03-20 Thread Andy King


I don't know of any way to use XPath against the GWT XML library, but 
that's not to say that you can't do so.  In my work with it I just walk 
through the Document object and extract the elements and attributes into my 
own structure.  If you know the structure of your XML ahead of time then 
this is really very easy.

Andy

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't deploy my project anymore

2013-03-20 Thread Juan Carlos Aranda
Do you fix the problem???  I have the same problem and not find the 
solution.

I install Eclipse, Gwt plugin and Designer.

Now my app not deploy.

Saludos.

Thanks.

El lunes, 18 de marzo de 2013 14:38:02 UTC-6, JoyaleXandre escribió:

 Hi everybody,

 Since friday I can't deploy my project anymore. 

 Went I start the war generation with the deploy button I instantly get an 
 error *message saying*:
 Designer error occured.
 Select Details  for more information.
 See the Error Log for more information.

 Reason:
 Parse error or internal Designer error,

 *The stack trace is this: *
 Plug-in Provider: Google
 Plug-in Name: 
 Plug-in ID: org.eclipse

 java.lang.NoClassDefFoundError: 
 org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
 at 
 org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

 Full stack trace (to see full context):
 java.lang.reflect.InvocationTargetException
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:114)
 at 
 org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
 Caused by: java.lang.NoClassDefFoundError: 
 org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
 at 
 com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
 ... 1 more
 

 I completely uninstalled the Google Plugin and reinstalled it. I still get 
 this error.

 My last chance is probably to reinstall Eclipse from scratch, but I would 
 like to avoid reinstalling and configuring all my dev envirronnement.

 Can somebody help me please. Am I the only one who got this problem since 
 I tried to update the Google Plugin?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't deploy my project anymore

2013-03-20 Thread Juan Pablo Gardella
Did you remove gwt-cache directories?


2013/3/20 Juan Carlos Aranda aranda...@gmail.com

 Do you fix the problem???  I have the same problem and not find the
 solution.

 I install Eclipse, Gwt plugin and Designer.

 Now my app not deploy.

 Saludos.

 Thanks.

 El lunes, 18 de marzo de 2013 14:38:02 UTC-6, JoyaleXandre escribió:

 Hi everybody,

 Since friday I can't deploy my project anymore.

 Went I start the war generation with the deploy button I instantly get an
 error *message saying*:
 Designer error occured.
 Select Details  for more information.
 See the Error Log for more information.

 Reason:
 Parse error or internal Designer error,

 *The stack trace is this: *
 Plug-in Provider: Google
 Plug-in Name:
 Plug-in ID: org.eclipse

 java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
 IJavaLaunchConfigurationConsta**nts
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**getGWTProjectClasspath(**
 DeployModuleAction.java:364)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.access$1(**DeployModuleAction.java:131)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction$1.run(**DeployModuleAction.java:103)
 at org.eclipse.jface.operation.**ModalContext$**
 ModalContextThread.run(**ModalContext.java:121)

 Full stack trace (to see full context):
 java.lang.reflect.**InvocationTargetException
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction$1.run(**DeployModuleAction.java:114)
 at org.eclipse.jface.operation.**ModalContext$**
 ModalContextThread.run(**ModalContext.java:121)
 Caused by: java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
 IJavaLaunchConfigurationConsta**nts
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**getGWTProjectClasspath(**
 DeployModuleAction.java:364)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.access$1(**DeployModuleAction.java:131)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction$1.run(**DeployModuleAction.java:103)
 ... 1 more
 

 I completely uninstalled the Google Plugin and reinstalled it. I still
 get this error.

 My last chance is probably to reinstall Eclipse from scratch, but I would
 like to avoid reinstalling and configuring all my dev envirronnement.

 Can somebody help me please. Am I the only one who got this problem since
 I tried to update the Google Plugin?

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't deploy my project anymore

2013-03-20 Thread JoyaleXandre
Yes, I removed the gwt-cache folder. I managed to compile my war file by 
executing the build.xml ant file manually. But I liked more when the deploy 
button was generating the xml for me. Now, I need to update it manually.

Le mercredi 20 mars 2013 13:06:24 UTC-4, Juan Pablo Gardella a écrit :

 Did you remove gwt-cache directories?


 2013/3/20 Juan Carlos Aranda aran...@gmail.com javascript:

 Do you fix the problem???  I have the same problem and not find the 
 solution.

 I install Eclipse, Gwt plugin and Designer.

 Now my app not deploy.

 Saludos.

 Thanks.

 El lunes, 18 de marzo de 2013 14:38:02 UTC-6, JoyaleXandre escribió:

 Hi everybody,

 Since friday I can't deploy my project anymore. 

 Went I start the war generation with the deploy button I instantly get 
 an error *message saying*:
 Designer error occured.
 Select Details  for more information.
 See the Error Log for more information.

 Reason:
 Parse error or internal Designer error,

 *The stack trace is this: *
 Plug-in Provider: Google
 Plug-in Name: 
 Plug-in ID: org.eclipse

 java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
 IJavaLaunchConfigurationConsta**nts
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**getGWTProjectClasspath(**
 DeployModuleAction.java:364)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.access$1(**DeployModuleAction.java:131)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction$1.run(**DeployModuleAction.java:103)
 at org.eclipse.jface.operation.**ModalContext$**
 ModalContextThread.run(**ModalContext.java:121)

 Full stack trace (to see full context):
 java.lang.reflect.**InvocationTargetException
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction$1.run(**DeployModuleAction.java:114)
 at org.eclipse.jface.operation.**ModalContext$**
 ModalContextThread.run(**ModalContext.java:121)
 Caused by: java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/*
 *IJavaLaunchConfigurationConsta**nts
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**getGWTProjectClasspath(**
 DeployModuleAction.java:364)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction.access$1(**DeployModuleAction.java:131)
 at com.google.gdt.eclipse.**designer.actions.deploy.**
 DeployModuleAction$1.run(**DeployModuleAction.java:103)
 ... 1 more
 

 I completely uninstalled the Google Plugin and reinstalled it. I still 
 get this error.

 My last chance is probably to reinstall Eclipse from scratch, but I 
 would like to avoid reinstalling and configuring all my dev envirronnement.

 Can somebody help me please. Am I the only one who got this problem 
 since I tried to update the Google Plugin?

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 Visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Compiler exception after upgrade to 2.5.1

2013-03-20 Thread mdwarne
Thanks,
I'm using the Netbeans plugin for GWT can anyone point me to where the 
gwt-unitCache folder would be?
Thanks,
Mike.

On Tuesday, March 19, 2013 11:11:14 PM UTC-10, Thomas Broyer wrote:

 Delete the gwt-unitCache and try again.

 On Wednesday, March 20, 2013 3:27:16 AM UTC+1, mdwarne wrote:

 Hi,

 My project compiles and runs OK with GWT 2.5.0.
 After upgrading to version 2.5.1 Compiling the project causes an 
 exception (see below)

 This is using Java EE 6 (Mac OSX)

 Any ideas?
 Thanks,
 Mike


[ERROR] Unexpected internal compiler error
 java.lang.RuntimeException: Unexpected IOException on in-memory stream
 at 
 com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:360)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:670)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:983)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:531)
 at 
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:637)
 at 
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
 at com.google.gwt.dev.Compiler.run(Compiler.java:232)
 at com.google.gwt.dev.Compiler.run(Compiler.java:198)
 at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
 at 
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
 at 
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
 at com.google.gwt.dev.Compiler.main(Compiler.java:177)
 Caused by: java.io.InvalidClassException: 
 com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream 
 classdesc serialVersionUID = -1052417216019896795, local class 
 serialVersionUID = -8155793964565947646
 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560)
 at 
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
 at 
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at 
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
 at 
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at java.util.ArrayList.readObject(ArrayList.java:593)
 at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
 at 
 java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1852)
 at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at 
 com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:203)
 at 
 com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:358)
 ... 14 more
  



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Gwt validation

2013-03-20 Thread ravi kumar
Hi All,
 
im trying to execute validation sample which is in gwt sdk itself...When i 
start the jetty server using maven like mvn jetty:run the server is 
displaying only welcom file..
 
Actual output it should ask username and validate nameIs anyone knows 
the answer please help me...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: problem with gwt designer in myeclipse for spring 10.6

2013-03-20 Thread Sh Darambazar
me too the same problem. Please help me
my ubuntu is 12.10
java when 
java -version
java version 1.7.0_15
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10.1)
OpenJDK Server VM (build 23.7-b01, mixed mod
and oracle java the same error.


On Saturday, March 9, 2013 7:07:53 AM UTC+8, Mansouri Brahim wrote:

 hello
 when i create new gwt project i can't see the design of my apps and 
 myeclipse  give me that eror so some one can help please??
 Could not open the editor: The editor class could not be instantiated. 
 This usually indicates a missing no-arg constructor or that the editor's 
 class name was mistyped in plugin.xml.

 and
 java.lang.ClassNotFoundException: 
 org.eclipse.wb.internal.core.editor.multi.DesignerEditor
 at 
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
 at 
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
 at 
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
 at 
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at 
 org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
 at 
 org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
 at 
 org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
 at 
 org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
 at 
 org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
 at 
 org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
 at 
 org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
 at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:268)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 at 
 org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:264)
 at 
 org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
 at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:875)
 at 
 org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
 at 
 org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
 at 
 org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
 at 
 org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
 at 
 org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
 at 
 org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
 at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
 at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 at 
 org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
 at 
 org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
 at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331)
 at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:179)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
 at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
 at 
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 at 
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at 
 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
 at 
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
 at 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 at 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 at 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
 at 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at 

Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml.

2013-03-20 Thread Sh Darambazar
hi
i am using ubuntu 12.10
eclipse 3.7 Indigo

but gwt designer can't open error
Could not open the editor: The editor class could not be instantiated. This 
usually indicates a missing no-arg constructor or that the editor's class 
name was mistyped in plugin.xml.

java.lang.ClassNotFoundException: 
org.eclipse.wb.internal.core.editor.multi.DesignerEditor
at 
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at 
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
at 
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at 
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at 
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:268)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at 
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:264)
at 
org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:875)
at 
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
at 
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at 
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at 
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
at 
org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459)
at 
org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972)
at 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
at 
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at 
org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
at 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an 

Re: Compiler exception after upgrade to 2.5.1

2013-03-20 Thread Sang Hero
Why don't you try searching this folder with that name?

2013/3/21 mdwarne mike.wa...@gmail.com

 Thanks,
 I'm using the Netbeans plugin for GWT can anyone point me to where the
 gwt-unitCache folder would be?
 Thanks,
 Mike.


 On Tuesday, March 19, 2013 11:11:14 PM UTC-10, Thomas Broyer wrote:

 Delete the gwt-unitCache and try again.

 On Wednesday, March 20, 2013 3:27:16 AM UTC+1, mdwarne wrote:

 Hi,

 My project compiles and runs OK with GWT 2.5.0.
 After upgrading to version 2.5.1 Compiling the project causes an
 exception (see below)

 This is using Java EE 6 (Mac OSX)

 Any ideas?
 Thanks,
 Mike


[ERROR] Unexpected internal compiler error
 java.lang.RuntimeException: Unexpected IOException on in-memory stream
 at com.google.gwt.dev.javac.**CompilationUnit.getTypes(**
 CompilationUnit.java:360)
 at com.google.gwt.dev.jjs.impl.**UnifyAst.assimilateUnit(**
 UnifyAst.java:670)
 at com.google.gwt.dev.jjs.impl.**UnifyAst.**searchForTypeBySource(**
 UnifyAst.java:983)
 at com.google.gwt.dev.jjs.impl.**UnifyAst.addRootTypes(**
 UnifyAst.java:531)
 at com.google.gwt.dev.jjs.**JavaToJavaScriptCompiler.**precompile(**
 JavaToJavaScriptCompiler.java:**637)
 at com.google.gwt.dev.jjs.**JavaScriptCompiler.precompile(**
 JavaScriptCompiler.java:33)
 at com.google.gwt.dev.Precompile.**precompile(Precompile.java:**278)
 at com.google.gwt.dev.Precompile.**precompile(Precompile.java:**229)
 at com.google.gwt.dev.Precompile.**precompile(Precompile.java:**141)
 at com.google.gwt.dev.Compiler.**run(Compiler.java:232)
 at com.google.gwt.dev.Compiler.**run(Compiler.java:198)
 at com.google.gwt.dev.Compiler$1.**run(Compiler.java:170)
 at com.google.gwt.dev.**CompileTaskRunner.doRun(**
 CompileTaskRunner.java:88)
 at com.google.gwt.dev.**CompileTaskRunner.**
 runWithAppropriateLogger(**CompileTaskRunner.java:82)
 at com.google.gwt.dev.Compiler.**main(Compiler.java:177)
 Caused by: java.io.InvalidClassException: 
 com.google.gwt.dev.jjs.ast.**JDeclaredType;
 local class incompatible: stream classdesc serialVersionUID =
 -1052417216019896795, local class serialVersionUID = -8155793964565947646
 at java.io.ObjectStreamClass.**initNonProxy(**
 ObjectStreamClass.java:560)
 at java.io.ObjectInputStream.**readNonProxyDesc(**
 ObjectInputStream.java:1580)
 at java.io.ObjectInputStream.**readClassDesc(**
 ObjectInputStream.java:1493)
 at java.io.ObjectInputStream.**readNonProxyDesc(**
 ObjectInputStream.java:1580)
 at java.io.ObjectInputStream.**readClassDesc(**
 ObjectInputStream.java:1493)
 at java.io.ObjectInputStream.**readOrdinaryObject(**
 ObjectInputStream.java:1729)
 at java.io.ObjectInputStream.**readObject0(ObjectInputStream.**
 java:1326)
 at java.io.ObjectInputStream.**readObject(ObjectInputStream.**
 java:348)
 at java.util.ArrayList.**readObject(ArrayList.java:593)
 at sun.reflect.**GeneratedMethodAccessor19.**invoke(Unknown Source)
 at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
 DelegatingMethodAccessorImpl.**java:25)
 at java.lang.reflect.Method.**invoke(Method.java:597)
 at java.io.ObjectStreamClass.**invokeReadObject(**
 ObjectStreamClass.java:969)
 at java.io.ObjectInputStream.**readSerialData(**
 ObjectInputStream.java:1852)
 at java.io.ObjectInputStream.**readOrdinaryObject(**
 ObjectInputStream.java:1756)
 at java.io.ObjectInputStream.**readObject0(ObjectInputStream.**
 java:1326)
 at java.io.ObjectInputStream.**readObject(ObjectInputStream.**
 java:348)
 at com.google.gwt.dev.jjs.ast.**JProgram.deserializeTypes(**
 JProgram.java:203)
 at com.google.gwt.dev.javac.**CompilationUnit.getTypes(**
 CompilationUnit.java:358)
 ... 14 more


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Sporadic errors during compilation, Checking type argument 0 of type 'java.util.Arrays.ArrayList, no default constructor.

2013-03-20 Thread MarDeMar
ERRATA CORRIGE

The solution for me is more trivial than it seemed.
I had this error using bean with a list property not initialized.
For example:

public class Order implements Serializable {
  private ListItem items;
  ...
}

Simply initializing the list property the error disappears:

public class Order implements Serializable {
  private ListItem items = *new ArrayListItem()*;
  ...
}

For you I believe the problem is that you initialize the property always 
with a generic and this maybe causes confusion for the generator.

Regards
Marcello De Marco



Il giorno martedì 6 marzo 2012 14:42:30 UTC+1, Dan ha scritto:

 Sorry for the delay in thanking you for your reply. I understand that 
 Objects cannot be serialized, which is why I can't understand the error 
 message.

 Some more information:

 DeviceConfiguration is has a generic type, T, which extends DeviceProperty 
 which is an interface. The definition of the field 'properties' is as 
 follows:

 private MapT, Serializable properties = new HashMapT, 
 Serializable();

 So how does the compiler *sometimes* get from HashMapT, Serializable to 
 TreeMapK,V - Serializable - Object?

 Thanks again, 
 Dan.

 On Monday, 27 February 2012 13:59:02 UTC, Thomas Broyer wrote:



 On Sunday, February 26, 2012 2:22:47 AM UTC+1, Dan wrote:


 [WARN] Checking all subtypes of Object which qualify for serialization 


 This is your problem.

 See 
 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
  



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Drag and drop (and Internet Explorer)

2013-03-20 Thread Helen
Hello all,
 
I've created a test project to experiment with native drag and drop 
(2.5.1).  It works in fine Firefox and Chrome, but in Internet Explorer 
the dropItem events don't fire.
 
Here is the code:
 
 public void onModuleLoad() {
  
  final TextBox textBox = new TextBox();
  
  final HTML dragItem = new HTML(pDrag this/p);
  dragItem.getElement().setDraggable(Element.DRAGGABLE_TRUE);
  dragItem.addDragStartHandler(new DragStartHandler()
  {
@Override
public void onDragStart(DragStartEvent event)
{
  event.setData(text, id);
  event.getDataTransfer().setDragImage(dragItem.getElement(), 10, 10);
}
  });  
  
  
  final HTML dropItem = new HTML(pDrop onto this/p);
  dropItem.addDomHandler(new DragOverHandler() {
public void onDragOver(DragOverEvent event) {
 textBox.setText(Dragging over dropItem);
}
  }, DragOverEvent.getType());
  
  dropItem.addDomHandler(new DragLeaveHandler()
  {
  @Override
  public void onDragLeave(DragLeaveEvent event)
  {
   textBox.setText();
  }
  }, DragLeaveEvent.getType());
  
  dropItem.addDomHandler(new DropHandler() {
public void onDrop(DropEvent event) {
  event.preventDefault();
  Window.alert(Dropped!);
}
  }, DropEvent.getType());
  
  FlowPanel fp = new FlowPanel();
  
  fp.add(dragItem);
  fp.add(dropItem);
  fp.add(textBox);
  
  RootLayoutPanel.get().add(fp);  
  
 }
 
Does anyone have any ideas?
 
Many thanks,
 
Helen
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Event handler in capture phase

2013-03-20 Thread qinyc
How could I add an event handler to an element during the capture phase not 
the bubbling phase?
The problem is the same as how to convert js code addEventHandler('click', 
element, true). The addDomHandler seems working in the bubbling phase.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Compiler exception after upgrade to 2.5.1

2013-03-20 Thread Michael Prentice
I thought that it might be the temp folder in user/applocal/temp, but 
that didn't fix it.

The fix came when I deleted the /gwt-unitCache dir within the root 
directory of my project.

Thank you! I hit this today after upgrading to 2.5.1 yesterday.


On Wednesday, March 20, 2013 2:14:22 PM UTC-4, mdwarne wrote:

 Thanks,
 I'm using the Netbeans plugin for GWT can anyone point me to where the 
 gwt-unitCache folder would be?
 Thanks,
 Mike.

 On Tuesday, March 19, 2013 11:11:14 PM UTC-10, Thomas Broyer wrote:

 Delete the gwt-unitCache and try again.

 On Wednesday, March 20, 2013 3:27:16 AM UTC+1, mdwarne wrote:

 Hi,

 My project compiles and runs OK with GWT 2.5.0.
 After upgrading to version 2.5.1 Compiling the project causes an 
 exception (see below)

 This is using Java EE 6 (Mac OSX)

 Any ideas?
 Thanks,
 Mike


[ERROR] Unexpected internal compiler error
 java.lang.RuntimeException: Unexpected IOException on in-memory stream
 at 
 com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:360)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:670)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:983)
 at 
 com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:531)
 at 
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:637)
 at 
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
 at com.google.gwt.dev.Compiler.run(Compiler.java:232)
 at com.google.gwt.dev.Compiler.run(Compiler.java:198)
 at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
 at 
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
 at 
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
 at com.google.gwt.dev.Compiler.main(Compiler.java:177)
 Caused by: java.io.InvalidClassException: 
 com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream 
 classdesc serialVersionUID = -1052417216019896795, local class 
 serialVersionUID = -8155793964565947646
 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560)
 at 
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
 at 
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at 
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
 at 
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
 at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at java.util.ArrayList.readObject(ArrayList.java:593)
 at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
 at 
 java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1852)
 at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at 
 com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:203)
 at 
 com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:358)
 ... 14 more
  



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to change the locale at runtime

2013-03-20 Thread sahli . sabrina


Le lundi 18 mars 2013 09:53:31 UTC+1, sahli@gmail.com a écrit :

 Hi, i'm beginner in gwt, how can i  change the locale language at runtime 
 like the 
 http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCheckBox, 

 thank you, 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to change the locale at runtime

2013-03-20 Thread sahli . sabrina
thank you for the reply, this is what i did and it works now :)

Le lundi 18 mars 2013 09:53:31 UTC+1, sahli@gmail.com a écrit :

 Hi, i'm beginner in gwt, how can i  change the locale language at runtime 
 like the 
 http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCheckBox, 

 thank you, 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Drag and drop (and Internet Explorer)

2013-03-20 Thread Andrea Boscolo
Reading [1] seems like IE9 supports dataTransfer object only on images, 
links, and text. Starting from IE10 it supports dd on any element (using 
the draggable attribute), and the file attribute to the dataTransfer object.

On IE9 try to use an hyperlink/image as a draggable.

[1] http://msdn.microsoft.com/en-us/library/ie/hh673539%28v=vs.85%29.aspx

On Wednesday, March 20, 2013 6:12:46 PM UTC+1, Helen wrote:

 Hello all,
  
 I've created a test project to experiment with native drag and drop 
 (2.5.1).  It works in fine Firefox and Chrome, but in Internet Explorer 
 the dropItem events don't fire.
  
 Here is the code:
  
  public void onModuleLoad() {
   
   final TextBox textBox = new TextBox();
   
   final HTML dragItem = new HTML(pDrag this/p);
   dragItem.getElement().setDraggable(Element.DRAGGABLE_TRUE);
   dragItem.addDragStartHandler(new DragStartHandler()
   {
 @Override
 public void onDragStart(DragStartEvent event)
 {
   event.setData(text, id);
   event.getDataTransfer().setDragImage(dragItem.getElement(), 10, 10);
 }
   });  
   
   
   final HTML dropItem = new HTML(pDrop onto this/p);
   dropItem.addDomHandler(new DragOverHandler() {
 public void onDragOver(DragOverEvent event) {
  textBox.setText(Dragging over dropItem);
 }
   }, DragOverEvent.getType());
   
   dropItem.addDomHandler(new DragLeaveHandler()
   {
   @Override
   public void onDragLeave(DragLeaveEvent event)
   {
textBox.setText();
   }
   }, DragLeaveEvent.getType());
   
   dropItem.addDomHandler(new DropHandler() {
 public void onDrop(DropEvent event) {
   event.preventDefault();
   Window.alert(Dropped!);
 }
   }, DropEvent.getType());
   
   FlowPanel fp = new FlowPanel();
   
   fp.add(dragItem);
   fp.add(dropItem);
   fp.add(textBox);
   
   RootLayoutPanel.get().add(fp);  
   
  }
  
 Does anyone have any ideas?
  
 Many thanks,
  
 Helen
  
  


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [gwt-contrib] Re: gwt rebranding

2013-03-20 Thread Kerry Wilson
I would leave gorgeous out of it.  I would just consider it a recursive
acronym like PHP.

GWT: Web Toolkit

kw


On Wed, Mar 20, 2013 at 5:28 AM, Jens jens.nehlme...@gmail.com wrote:


 On the note of @Gorgeous Web Toolkit@, my $.02 is nice but isn't quite
 Gorgeous isn't geeky enough. The self referential thing is an option and
 flows nicely when said out loud Gwit Web Toolkit but isn't necessarily
 very descriptive.


 Hehe yeah Gorgeous doesn't really convince me either (feels too
 self-regarding to me). Just treat it as a slogan that can be added to the
 logo. May it be Gorgeous Web Toolkit or a totally different slogan like
 type safe web development. Just having icon + GWT feels a bit too less
 when using the logo at larger dimensions.
 At small dimensions its totally fine to just have icon + GWT like shown
 in my second example.

 -- J.


  --
 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 ---
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit 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://www.allthingswilson.com

-- 
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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] Re: Issue 7890 : ListBox: allow CSS class for options (issue1897803)

2013-03-20 Thread tuckerpmt

On 2013/03/19 15:40:06, tbroyer wrote:

I agree, returning the OptionElement seems like a better idea.

http://gwt-code-reviews.appspot.com/1897803/

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Issue 6256: getAbsoluteTop/getScrollTop returns wrong values...

2013-03-20 Thread Thomas Broyer

Thomas Broyer has posted comments on this change.

Change subject: Issue 6256: getAbsoluteTop/getScrollTop returns wrong  
values for IE9 when body has been scrolled * Moved methods that are  
specific to WebKit/Safari from DOMImplStandardBase to DOMImplWebkit so that  
they don't affect DOMImplIE9 (which currently extends DOM

..


Patch Set 1:

(6 comments)


Commit Message
Line 8: * Moved methods that are specific to WebKit/Safari from  
DOMImplStandardBase to DOMImplWebkit so that they don't affect DOMImplIE9  
(which currently extends DOMImplStandardBase). There might be other methods  
in DOMImplStandardBase that are specific to WebKit/Safari; I moved only  
those methods that had comments specifying Safari.
Add a blank line above to please Git  
(one-line-summary\n\nmultiline-description)




File user/src/com/google/gwt/dom/client/DOMImplWebkit.java
Line 71:   public native ButtonElement createButtonElement(Document doc,  
String type) /*-{

We no longer enforce it but can you please sort the methods by name?


Line 78:* Safari 2 does not support {@link  
ScriptElement#setText(String)}.
I don't think we still support Safari 2: we removed an old hack in  
DOMImplWebKit last June, and we removed support in History more than 3  
years ago!


http://gwt-code-reviews.appspot.com/29803 said I also ditched the  
no-longer-supported Safari 2 history implementation (note that it's  
specific to history though, as it never really worked); unfortunately  
Safari 2 is still mentioned in the javadoc despite the code its refererring  
to is long gone.



Line 89: // Safari always applies document scrolling to the body  
element, even in
BTW is this true of Chrome too? I suppose it's more a WebKit thing  
independent of its various ports, so it'd be the appropriate time to  
s/Safari/WebKit/ in those comments.



Line 98: return doc.getBody().getScrollTop();
As we're at it, we might want to revisit this, in light of issue 5836


Line 102:   public native int getTabIndex(Element elem) /*-{
nit: trailing space


--
To view, visit https://gwt-review.googlesource.com/2260
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8eb89528e534b3b474c60e002ea9d775ca04a796
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Marius Dumitru Florea mariusdumitru.flo...@xwiki.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: Yes

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Changes StackTraceDeobfuscator to abstract and provide vario...

2013-03-20 Thread Thomas Broyer

Thomas Broyer has posted comments on this change.

Change subject: Changes StackTraceDeobfuscator to abstract and provide  
various factory methods.

..


Patch Set 3: Code-Review+1

--
To view, visit https://gwt-review.googlesource.com/2270
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I562e052caef8da7f3434319cf11b8984bc347fe5
Gerrit-PatchSet: 3
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: No

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Refactors c.g.gwt.junit to use common SerializableThrowable ...

2013-03-20 Thread Goktug Gokdogan

Goktug Gokdogan has uploaded a new change for review.

  https://gwt-review.googlesource.com/2290


Change subject: Refactors c.g.gwt.junit to use common SerializableThrowable  
 StacktraceDeobfuscator.

..

Refactors c.g.gwt.junit to use common SerializableThrowable   
StacktraceDeobfuscator.


- Gets rid of dublicate code in junit for deobfuscation of stack traces
- Improves the messaging of unserializable exceptions
- Minor improvements to the reporting of test infra failures

Change-Id: I1e1021bc99ac88ea6d9d47c3d23c83e79a896213
---
M user/src/com/google/gwt/core/client/JavaScriptException.java
M user/src/com/google/gwt/junit/JUnitMessageQueue.java
M user/src/com/google/gwt/junit/JUnitShell.java
D user/src/com/google/gwt/junit/client/impl/ExceptionWrapper.java
M user/src/com/google/gwt/junit/client/impl/JUnitResult.java
M user/src/com/google/gwt/junit/rebind/GWTRunnerProxyGenerator.java
M user/src/com/google/gwt/junit/server/JUnitHostImpl.java
M  
user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/impl/GWTRunner.java

A user/test/com/google/gwt/junit/DefaultExceptionAsserter.java
M user/test/com/google/gwt/junit/GwtTestSuiteWithExpectedFailures.java
M user/test/com/google/gwt/junit/JUnitSuite.java
M user/test/com/google/gwt/junit/TestResultWithExpectedFailures.java
M user/test/com/google/gwt/junit/TestSuiteWithOrder.java
A user/test/com/google/gwt/junit/client/ExceptionAsserter.java
R user/test/com/google/gwt/junit/client/ExpectedFailure.java
M user/test/com/google/gwt/junit/client/GWTTestCaseAsyncTest.java
M user/test/com/google/gwt/junit/client/GWTTestCaseSetupTearDownTest.java
A user/test/com/google/gwt/junit/client/GWTTestCaseStackTraceTest.java
M user/test/com/google/gwt/junit/client/GWTTestCaseTest.java
M  
user/test/com/google/gwt/junit/client/GWTTestCaseUncaughtExceptionHandlerTest.java

20 files changed, 365 insertions(+), 280 deletions(-)



diff --git a/user/src/com/google/gwt/core/client/JavaScriptException.java  
b/user/src/com/google/gwt/core/client/JavaScriptException.java

index 5c44f48..8f15edd 100644
--- a/user/src/com/google/gwt/core/client/JavaScriptException.java
+++ b/user/src/com/google/gwt/core/client/JavaScriptException.java
@@ -128,7 +128,7 @@
   StackTraceCreator.createStackTrace(this);
 }
   }
-
+
   public JavaScriptException(String name, String description) {
 this.message = JavaScript  + name +  exception:  + description;
 this.name = name;
@@ -137,10 +137,8 @@
   }

   /**
-   * Used for server-side instantiation during JUnit runs. Exceptions are
-   * manually marshaled through
-   * codecom.google.gwt.junit.client.impl.ExceptionWrapper/code  
objects.

-   *
+   * Used for testing instantiations.
+   *
* @param message the detail message
*/
   protected JavaScriptException(String message) {
diff --git a/user/src/com/google/gwt/junit/JUnitMessageQueue.java  
b/user/src/com/google/gwt/junit/JUnitMessageQueue.java

index e2c4bf7..c03a03a 100644
--- a/user/src/com/google/gwt/junit/JUnitMessageQueue.java
+++ b/user/src/com/google/gwt/junit/JUnitMessageQueue.java
@@ -15,11 +15,12 @@
  */
 package com.google.gwt.junit;

+import com.google.gwt.core.shared.SerializableThrowable;
 import com.google.gwt.junit.client.TimeoutException;
-import com.google.gwt.junit.client.impl.JUnitResult;
 import com.google.gwt.junit.client.impl.JUnitHost.ClientInfo;
 import com.google.gwt.junit.client.impl.JUnitHost.TestBlock;
 import com.google.gwt.junit.client.impl.JUnitHost.TestInfo;
+import com.google.gwt.junit.client.impl.JUnitResult;

 import java.util.ArrayList;
 import java.util.HashMap;
@@ -27,8 +28,8 @@
 import java.util.IdentityHashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
 import java.util.Map.Entry;
+import java.util.Set;

 /**
  * A message queue to pass data between {@link JUnitShell} and
@@ -463,12 +464,21 @@
   if (result == null) {
 return true;
   }
-  Throwable exception = result.getException();
-  if (exception != null  !isMember(exception,  
THROWABLES_NOT_RETRIED)) {

+
+  Class? thrown = getExceptionClass(result.getException());
+  if (thrown != null  !isMember(thrown, THROWABLES_NOT_RETRIED)) {
 return true;
   }
 }
 return false;
+  }
+
+  private Class? getExceptionClass(SerializableThrowable throwable) {
+try {
+  return throwable == null ? null :  
Class.forName(throwable.getDesignatedType());

+} catch (Exception e) {
+  return null;
+}
   }

   void removeResults(TestInfo testInfo) {
@@ -521,10 +531,10 @@
 return results;
   }

-  private boolean isMember(Throwable exception,
+  private boolean isMember(Class? throwableClass,
   SetClass? extends Throwable throwableSet) {
 for (Class? extends Throwable throwable : throwableSet) {
-  if (throwable.isInstance(exception)) {
+  if (throwable.isAssignableFrom(throwableClass)) {
 

Re: [gwt-contrib] Re: gwt rebranding

2013-03-20 Thread David
Not that I have anything of authority here, but why not adopt Guice instead
of all the gwt.xml trickery and call it the Guicy Web ToolKit

David

On Wed, Mar 20, 2013 at 1:44 PM, Kerry Wilson ke...@allthingswilson.comwrote:

 I would leave gorgeous out of it.  I would just consider it a recursive
 acronym like PHP.

 GWT: Web Toolkit

 kw


 On Wed, Mar 20, 2013 at 5:28 AM, Jens jens.nehlme...@gmail.com wrote:


 On the note of @Gorgeous Web Toolkit@, my $.02 is nice but isn't quite
 Gorgeous isn't geeky enough. The self referential thing is an option and
 flows nicely when said out loud Gwit Web Toolkit but isn't necessarily
 very descriptive.


 Hehe yeah Gorgeous doesn't really convince me either (feels too
 self-regarding to me). Just treat it as a slogan that can be added to the
 logo. May it be Gorgeous Web Toolkit or a totally different slogan like
 type safe web development. Just having icon + GWT feels a bit too less
 when using the logo at larger dimensions.
 At small dimensions its totally fine to just have icon + GWT like shown
 in my second example.

 -- J.


  --
 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 ---
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit 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://www.allthingswilson.com

 --
 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 ---
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit 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 
Google Web Toolkit 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] Change in gwt[master]: Moves GWTTestCase to Impl#setUncaughtExceptionHandlerForTest.

2013-03-20 Thread Goktug Gokdogan

Hello Brian Slesinsky,

I'd like you to reexamine a change.  Please visit

https://gwt-review.googlesource.com/2190

to look at the new patch set (#3).

Change subject: Moves GWTTestCase to  
Impl#setUncaughtExceptionHandlerForTest.

..

Moves GWTTestCase to Impl#setUncaughtExceptionHandlerForTest.

This will prevent the competition between the test and production uncaught  
exception handlers.
This change also introduces GWTTestCase#reportUncaughtException to enable  
test cases to change the behavior in order to test uncaught exceptions.


Fixes issue 5016

Change-Id: I8d32c6f4ff4cbcd55f238116b8bcc4c8685d6f35
Review-Link: https://gwt-review.googlesource.com/#/c/2190/
---
M user/src/com/google/gwt/core/client/impl/Impl.java
M user/src/com/google/gwt/junit/client/GWTTestCase.java
M  
user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/GWTTestCase.java

M user/test/com/google/gwt/dev/jjs/test/RunAsyncTest.java
M  
user/test/com/google/gwt/junit/client/GWTTestCaseUncaughtExceptionHandlerTest.java

M user/test/com/google/gwt/user/client/CommandExecutorTest.java
M user/test/com/google/gwt/user/client/ui/DOMTest.java
M  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryExceptionPropagationTest.java
M  
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryExceptionPropagationJreTest.java

9 files changed, 248 insertions(+), 305 deletions(-)


--
To view, visit https://gwt-review.googlesource.com/2190
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I8d32c6f4ff4cbcd55f238116b8bcc4c8685d6f35
Gerrit-PatchSet: 3
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Moves GWTTestCase to Impl#setUncaughtExceptionHandlerForTest.

2013-03-20 Thread Brian Slesinsky

Brian Slesinsky has posted comments on this change.

Change subject: Moves GWTTestCase to  
Impl#setUncaughtExceptionHandlerForTest.

..


Patch Set 3: Code-Review+1

(5 comments)

Looking good. Some javadoc tweaks.


File user/src/com/google/gwt/junit/client/GWTTestCase.java
Line 350:* This method is called by the test framework to report  
uncaught exceptions. The default
to report uncaught exceptions - to report uncaught exceptions thrown by  
callbacks.



Line 351:* implementation causes test case to be reported as 'failed'  
however in some rare situations

...causes the test case to be reported as 'failed.' However, in...


Line 352:* where an uncaught exception is expected then test case may  
choose to alter the behavior by

... is expected, a test case...


Line 362:* if (t instanceof ExpectedUmbrellaException) {
...instanceof ExpectedTestException...


Line 373:* already finished before this method is called, the behavior  
is undefined.
Maybe replace the behavior is undefined with The reported exception is  
currently ignored, but this may change in a future version of GWT.


Maybe add another paragraph.

If reportUncaughtException() is called multiple times during a test  
method, only the first one will be reported. If it's called during a test  
method that also throws an exception, the reported  exception takes  
priority over the thrown exception.



--
To view, visit https://gwt-review.googlesource.com/2190
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8d32c6f4ff4cbcd55f238116b8bcc4c8685d6f35
Gerrit-PatchSet: 3
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: Yes

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Moves GWTTestCase to Impl#setUncaughtExceptionHandlerForTest.

2013-03-20 Thread Goktug Gokdogan

Hello Brian Slesinsky,

I'd like you to reexamine a change.  Please visit

https://gwt-review.googlesource.com/2190

to look at the new patch set (#4).

Change subject: Moves GWTTestCase to  
Impl#setUncaughtExceptionHandlerForTest.

..

Moves GWTTestCase to Impl#setUncaughtExceptionHandlerForTest.

This will prevent the competition between the test and production uncaught  
exception handlers.
This change also introduces GWTTestCase#reportUncaughtException to enable  
test cases to change the behavior in order to test uncaught exceptions.


Fixes issue 5016

Change-Id: I8d32c6f4ff4cbcd55f238116b8bcc4c8685d6f35
Review-Link: https://gwt-review.googlesource.com/#/c/2190/
---
M user/src/com/google/gwt/core/client/impl/Impl.java
M user/src/com/google/gwt/junit/client/GWTTestCase.java
M  
user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/GWTTestCase.java

M user/test/com/google/gwt/dev/jjs/test/RunAsyncTest.java
M  
user/test/com/google/gwt/junit/client/GWTTestCaseUncaughtExceptionHandlerTest.java

M user/test/com/google/gwt/user/client/CommandExecutorTest.java
M user/test/com/google/gwt/user/client/ui/DOMTest.java
M  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryExceptionPropagationTest.java
M  
user/test/com/google/web/bindery/requestfactory/server/RequestFactoryExceptionPropagationJreTest.java

9 files changed, 252 insertions(+), 305 deletions(-)


--
To view, visit https://gwt-review.googlesource.com/2190
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I8d32c6f4ff4cbcd55f238116b8bcc4c8685d6f35
Gerrit-PatchSet: 4
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Moves GWTTestCase to Impl#setUncaughtExceptionHandlerForTest.

2013-03-20 Thread Goktug Gokdogan

Goktug Gokdogan has posted comments on this change.

Change subject: Moves GWTTestCase to  
Impl#setUncaughtExceptionHandlerForTest.

..


Patch Set 3:

(5 comments)


File user/src/com/google/gwt/junit/client/GWTTestCase.java
Line 350:* This method is called by the test framework to report  
uncaught exceptions. The default
I think we should not try specify how uncaught exception are generated  
here. I added a @see below for someone who needs to read more about it.



Line 351:* implementation causes test case to be reported as 'failed'  
however in some rare situations

Done


Line 352:* where an uncaught exception is expected then test case may  
choose to alter the behavior by

Done


Line 362:* if (t instanceof ExpectedUmbrellaException) {
Done


Line 373:* already finished before this method is called, the behavior  
is undefined.

Done.

About the additional paragraph: I put more info various places to cover  
more aspects, but I think we should not over specify as it makes it harder  
to read and ends up confusing the developer.



--
To view, visit https://gwt-review.googlesource.com/2190
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8d32c6f4ff4cbcd55f238116b8bcc4c8685d6f35
Gerrit-PatchSet: 3
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: Yes

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Moves GWTTestCase to Impl#setUncaughtExceptionHandlerForTest.

2013-03-20 Thread Brian Slesinsky

Brian Slesinsky has posted comments on this change.

Change subject: Moves GWTTestCase to  
Impl#setUncaughtExceptionHandlerForTest.

..


Patch Set 4: Code-Review+1

--
To view, visit https://gwt-review.googlesource.com/2190
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8d32c6f4ff4cbcd55f238116b8bcc4c8685d6f35
Gerrit-PatchSet: 4
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: No

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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] Change in gwt[master]: Moves c.g.gwt.logging to common StackTraceDeobfuscator.

2013-03-20 Thread Goktug Gokdogan

Goktug Gokdogan has uploaded a new change for review.

  https://gwt-review.googlesource.com/2300


Change subject: Moves c.g.gwt.logging to common StackTraceDeobfuscator.
..

Moves c.g.gwt.logging to common StackTraceDeobfuscator.

Change-Id: I44bee6a3abdf550831f6f9263a8c6e3c807ca063
---
M user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java
M user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java
M user/src/com/google/web/bindery/requestfactory/server/Logging.java
M user/test/com/google/gwt/user/client/rpc/LoggingRPCTest.java
M user/test/com/google/gwt/user/server/rpc/LoggingRPCTestServiceImpl.java
5 files changed, 42 insertions(+), 91 deletions(-)



diff --git  
a/user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java  
b/user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java

index ac85b0a..15cc374 100644
--- a/user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java
+++ b/user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java
@@ -16,6 +16,7 @@

 package com.google.gwt.logging.server;

+import com.google.gwt.core.server.impl.StackTraceDeobfuscator;
 import  
com.google.gwt.logging.server.RemoteLoggingServiceUtil.RemoteLoggingException;

 import com.google.gwt.logging.shared.RemoteLoggingService;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;
@@ -27,16 +28,14 @@
 /**
  * Server side code for the remote log handler.
  */
-public class RemoteLoggingServiceImpl extends RemoteServiceServlet  
implements

-RemoteLoggingService {
-  // No deobfuscator by default
-  private static StackTraceDeobfuscator deobfuscator = null;
+public class RemoteLoggingServiceImpl extends RemoteServiceServlet  
implements RemoteLoggingService {


-  private static Logger logger =
-Logger.getLogger(RemoteServiceServlet.class.getName());
-
-  private static String loggerNameOverride = null;
-
+  private static Logger logger =  
Logger.getLogger(RemoteServiceServlet.class.getName());

+
+  // No deobfuscator by default
+  private StackTraceDeobfuscator deobfuscator = null;
+  private String loggerNameOverride = null;
+
   /**
* Logs a Log Record which has been serialized using GWT RPC on the  
server.

* @return either an error message, or null if logging is successful.
@@ -67,13 +66,8 @@
* By default, this service does not do any deobfuscation. In order to do
* server side deobfuscation, you must copy the symbolMaps files to a
* directory visible to the server and set the directory using this  
method.

-   * @param symbolMapsDir
*/
   public void setSymbolMapsDirectory(String symbolMapsDir) {
-if (deobfuscator == null) {
-  deobfuscator = new StackTraceDeobfuscator(symbolMapsDir);
-} else {
-  deobfuscator.setSymbolMapsDirectory(symbolMapsDir);
-}
+deobfuscator = StackTraceDeobfuscator.fromFileSystem(symbolMapsDir);
   }
 }
diff --git  
a/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java  
b/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java

index 2b0b6dc..940cc95 100644
--- a/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java
+++ b/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java
@@ -16,6 +16,8 @@

 package com.google.gwt.logging.server;

+import com.google.gwt.core.server.impl.StackTraceDeobfuscator;
+
 import java.util.logging.LogRecord;
 import java.util.logging.Logger;

@@ -53,7 +55,7 @@
   StackTraceDeobfuscator deobfuscator, String loggerNameOverride)  
throws

   RemoteLoggingException {
 if (deobfuscator != null) {
-  lr = deobfuscator.deobfuscateLogRecord(lr, strongName);
+  lr = deobfuscateLogRecord(deobfuscator, lr, strongName);
 }
 String loggerName = loggerNameOverride == null ? lr.getLoggerName() :
   loggerNameOverride;
@@ -61,13 +63,19 @@
 logger.log(lr);
   }

+  public static LogRecord deobfuscateLogRecord(
+  StackTraceDeobfuscator deobfuscator, LogRecord lr, String  
strongName) {

+if (lr.getThrown() != null  strongName != null) {
+  deobfuscator.deobfuscateStackTrace(lr.getThrown(), strongName);
+}
+return lr;
+  }
+
   public static void logOnServer(String serializedLogRecordJson,
   String strongName, StackTraceDeobfuscator deobfuscator,
   String loggerNameOverride) throws RemoteLoggingException {
-LogRecord lr;
 try {
-  lr = JsonLogRecordServerUtil.logRecordFromJson(
-  serializedLogRecordJson);
+  LogRecord lr =  
JsonLogRecordServerUtil.logRecordFromJson(serializedLogRecordJson);

   logOnServer(lr, strongName, deobfuscator, loggerNameOverride);
 } catch (Exception e) {
   // We don't want to import the JsonException, which will require the  
json
diff --git  
a/user/src/com/google/web/bindery/requestfactory/server/Logging.java  
b/user/src/com/google/web/bindery/requestfactory/server/Logging.java

index 

[gwt-contrib] Change in gwt[master]: Attempt to continue after the JDT compiler aborts.

2013-03-20 Thread Matthew Dempsky

Matthew Dempsky has posted comments on this change.

Change subject: Attempt to continue after the JDT compiler aborts.
..


Patch Set 1: Code-Review+1

--
To view, visit https://gwt-review.googlesource.com/2271
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia94d998c6b4e56d880570c726aa09f004a4f552c
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Matthew Dempsky mdemp...@google.com
Gerrit-HasComments: No

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit 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: gwt rebranding

2013-03-20 Thread Matthew Dempsky
On Wed, Mar 20, 2013 at 12:25 PM, David david.no...@gmail.com wrote:

 Not that I have anything of authority here, but why not adopt Guice
 instead of all the gwt.xml trickery and call it the Guicy Web ToolKit


I don't believe Guice can 100% replicate the functionality provided by
.gwt.xml files, though reducing how often developers need to manually write
.gwt.xml files is something we're interested in.

Having a separate config file for managing how GWT builds work is also
likely going to be important to optimizing GWT compile time.  If the config
format were something turing complete like Java source code, then improving
the GWT compiler becomes a lot more difficult.

-- 
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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.