Re: Simple JSNI code snippet: Not able to invoke a method on a static variable ......

2011-08-16 Thread Karthik Reddy
This has been bugging me for a while now. Any thoughts or pointers would be much appreciated. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/x

Simple JSNI code snippet: Not able to invoke a method on a static variable ......

2011-08-16 Thread Karthik Reddy
public native void myJSNITest() /*-{ var stringLength =@mypkg.MyClass::myStaticStringVariable.length()(); alert(stringLength); }-*/; As I run the above code, I get the following error: * com.google.gwt.core.client.JavaScriptException: (TypeError): __static[1310776].length is not a function*

Re: code snippet

2011-04-08 Thread maticpetek
I'm using CodeBox for Mac (available in Mac App Store). Because it has code formatting and it does not "shrink" your sample sometimes, like Evernote. Regards, Matic -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this gro

Re: code snippet

2011-04-08 Thread Jens
Eclipse code templates can help if you configure custom templates. You find them under Preferences -> Java -> Editor -> Templates -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@goog

code snippet

2011-04-07 Thread dadada
hi all, is there any available code snippet tool that I can use on google web toolkit? what are you guys using to avoid typing chuck of code? thanks! bryan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this g

Re: Need help understanding code snippet

2009-04-15 Thread Lothar Kimmeringer
Yellow Jersey schrieb: > I cannot in particular understand the line marked "THIS LINE". > > int removedIndex = stocks.indexOf(symbol); // <- THIS LINE List.indexOf(Object) looks for the position of a given object. So without checking the actual source the implementiation in e.g. ArrayList s

Re: Need help understanding code snippet

2009-04-15 Thread Paul Robinson
Yellow Jersey wrote: > Hi, > > If someone could help me understand this code snippet from > StockWatcher app. > I cannot in particular understand the line marked "THIS LINE". > > > Button removeStock = new Button("x"); > removeStock.addClickListener(

Need help understanding code snippet

2009-04-14 Thread Yellow Jersey
Hi, If someone could help me understand this code snippet from StockWatcher app. I cannot in particular understand the line marked "THIS LINE". Button removeStock = new Button("x"); removeStock.addClickListener(new ClickListener(){ public void onClick(Widget sende